Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
79fc76d7
提交
79fc76d7
编写于
8月 05, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务接口
上级
15a7098e
变更
23
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
23 个修改的文件
包含
459 行增加
和
31 行删除
+459
-31
config.xml
config.xml
+5
-5
Dockerfile
...urce-app/humanresource-app-pim/src/main/docker/Dockerfile
+1
-1
humanresource-app-pim.yaml
...source-app-pim/src/main/docker/humanresource-app-pim.yaml
+1
-17
HROrgAddress.java
.../ibizlab/humanresource/core/base/domain/HROrgAddress.java
+23
-0
HROrgContact.java
.../ibizlab/humanresource/core/base/domain/HROrgContact.java
+23
-0
HROrgAddressSearchContext.java
...nresource/core/base/filter/HROrgAddressSearchContext.java
+7
-0
HROrgContactSearchContext.java
...nresource/core/base/filter/HROrgContactSearchContext.java
+7
-0
HROrgAddressMapper.java
...ab/humanresource/core/base/mapper/HROrgAddressMapper.java
+2
-0
HROrgContactMapper.java
...ab/humanresource/core/base/mapper/HROrgContactMapper.java
+2
-0
IHROrgAddressService.java
...humanresource/core/base/service/IHROrgAddressService.java
+2
-0
IHROrgContactService.java
...humanresource/core/base/service/IHROrgContactService.java
+2
-0
HROrgAddressServiceImpl.java
...ource/core/base/service/impl/HROrgAddressServiceImpl.java
+13
-0
HROrgContactServiceImpl.java
...ource/core/base/service/impl/HROrgContactServiceImpl.java
+13
-0
HROrganizationServiceImpl.java
...rce/core/base/service/impl/HROrganizationServiceImpl.java
+6
-0
h2_table.xml
humanresource-core/src/main/resources/liquibase/h2_table.xml
+10
-0
HROrgAddressMapper.xml
...resources/mapper/base/hrorgaddress/HROrgAddressMapper.xml
+13
-3
HROrgContactMapper.xml
...resources/mapper/base/hrorgcontact/HROrgContactMapper.xml
+13
-3
Dockerfile
...r/humanresource-provider-hrapi/src/main/docker/Dockerfile
+1
-1
humanresource-provider-hrapi.yaml
...r-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
+17
-1
HROrgAddressDTO.java
...a/cn/ibizlab/humanresource/hrapi/dto/HROrgAddressDTO.java
+16
-0
HROrgContactDTO.java
...a/cn/ibizlab/humanresource/hrapi/dto/HROrgContactDTO.java
+16
-0
HROrgAddressResource.java
...bizlab/humanresource/hrapi/rest/HROrgAddressResource.java
+133
-0
HROrgContactResource.java
...bizlab/humanresource/hrapi/rest/HROrgContactResource.java
+133
-0
未找到文件。
config.xml
浏览文件 @
79fc76d7
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -P
pim
cd humanresource-
app/humanresource-app-pim
mvn -P
pim
docker:build
mvn -P
pim
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
app-pim.yaml iBizEE --with-registry-auth
mvn clean package -P
hrapi
cd humanresource-
provider/humanresource-provider-hrapi
mvn -P
hrapi
docker:build
mvn -P
hrapi
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
provider-hrapi.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
humanresource-app/humanresource-app-pim/src/main/docker/Dockerfile
浏览文件 @
79fc76d7
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE
10327
EXPOSE
8080
ADD
humanresource-app-pim.jar /humanresource-app-pim.jar
humanresource-app/humanresource-app-pim/src/main/docker/humanresource-app-pim.yaml
浏览文件 @
79fc76d7
...
...
@@ -3,25 +3,9 @@ services:
humanresource-app-pim
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports
:
-
"
10327:10327
"
-
"
8080:8080
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10327
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/domain/HROrgAddress.java
浏览文件 @
79fc76d7
...
...
@@ -117,6 +117,21 @@ public class HROrgAddress extends EntityMP implements Serializable {
@JSONField
(
name
=
"mainaddress"
)
@JsonProperty
(
"mainaddress"
)
private
Integer
mainaddress
;
/**
* 组织
*/
@TableField
(
value
=
"hrorganizationid"
)
@JSONField
(
name
=
"hrorganizationid"
)
@JsonProperty
(
"hrorganizationid"
)
private
String
hrorganizationid
;
/**
* 组织
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
hrorganization
;
...
...
@@ -160,6 +175,14 @@ public class HROrgAddress extends EntityMP implements Serializable {
this
.
modify
(
"mainaddress"
,
mainaddress
);
}
/**
* 设置 [组织]
*/
public
void
setHrorganizationid
(
String
hrorganizationid
){
this
.
hrorganizationid
=
hrorganizationid
;
this
.
modify
(
"hrorganizationid"
,
hrorganizationid
);
}
}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/domain/HROrgContact.java
浏览文件 @
79fc76d7
...
...
@@ -110,6 +110,21 @@ public class HROrgContact extends EntityMP implements Serializable {
@JSONField
(
name
=
"maincontact"
)
@JsonProperty
(
"maincontact"
)
private
Integer
maincontact
;
/**
* 组织
*/
@TableField
(
value
=
"hrorganizationid"
)
@JSONField
(
name
=
"hrorganizationid"
)
@JsonProperty
(
"hrorganizationid"
)
private
String
hrorganizationid
;
/**
* 组织
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
hrorganization
;
...
...
@@ -145,6 +160,14 @@ public class HROrgContact extends EntityMP implements Serializable {
this
.
modify
(
"maincontact"
,
maincontact
);
}
/**
* 设置 [组织]
*/
public
void
setHrorganizationid
(
String
hrorganizationid
){
this
.
hrorganizationid
=
hrorganizationid
;
this
.
modify
(
"hrorganizationid"
,
hrorganizationid
);
}
}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/filter/HROrgAddressSearchContext.java
浏览文件 @
79fc76d7
...
...
@@ -41,6 +41,13 @@ public class HROrgAddressSearchContext extends QueryWrapperContext<HROrgAddress>
this
.
getSearchCond
().
eq
(
"uses"
,
n_uses_eq
);
}
}
private
String
n_hrorganizationid_eq
;
//[组织]
public
void
setN_hrorganizationid_eq
(
String
n_hrorganizationid_eq
)
{
this
.
n_hrorganizationid_eq
=
n_hrorganizationid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_hrorganizationid_eq
)){
this
.
getSearchCond
().
eq
(
"hrorganizationid"
,
n_hrorganizationid_eq
);
}
}
/**
* 启用快速搜索
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/filter/HROrgContactSearchContext.java
浏览文件 @
79fc76d7
...
...
@@ -41,6 +41,13 @@ public class HROrgContactSearchContext extends QueryWrapperContext<HROrgContact>
this
.
getSearchCond
().
eq
(
"contacttype"
,
n_contacttype_eq
);
}
}
private
String
n_hrorganizationid_eq
;
//[组织]
public
void
setN_hrorganizationid_eq
(
String
n_hrorganizationid_eq
)
{
this
.
n_hrorganizationid_eq
=
n_hrorganizationid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_hrorganizationid_eq
)){
this
.
getSearchCond
().
eq
(
"hrorganizationid"
,
n_hrorganizationid_eq
);
}
}
/**
* 启用快速搜索
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/mapper/HROrgAddressMapper.java
浏览文件 @
79fc76d7
...
...
@@ -62,4 +62,6 @@ public interface HROrgAddressMapper extends BaseMapper<HROrgAddress>{
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
List
<
HROrgAddress
>
selectByHrorganizationid
(
@Param
(
"organizationid"
)
Serializable
organizationid
)
;
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/mapper/HROrgContactMapper.java
浏览文件 @
79fc76d7
...
...
@@ -62,4 +62,6 @@ public interface HROrgContactMapper extends BaseMapper<HROrgContact>{
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
List
<
HROrgContact
>
selectByHrorganizationid
(
@Param
(
"organizationid"
)
Serializable
organizationid
)
;
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/service/IHROrgAddressService.java
浏览文件 @
79fc76d7
...
...
@@ -37,6 +37,8 @@ public interface IHROrgAddressService extends IService<HROrgAddress>{
boolean
save
(
HROrgAddress
et
)
;
void
saveBatch
(
List
<
HROrgAddress
>
list
)
;
Page
<
HROrgAddress
>
searchDefault
(
HROrgAddressSearchContext
context
)
;
List
<
HROrgAddress
>
selectByHrorganizationid
(
String
organizationid
)
;
void
removeByHrorganizationid
(
String
organizationid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/service/IHROrgContactService.java
浏览文件 @
79fc76d7
...
...
@@ -37,6 +37,8 @@ public interface IHROrgContactService extends IService<HROrgContact>{
boolean
save
(
HROrgContact
et
)
;
void
saveBatch
(
List
<
HROrgContact
>
list
)
;
Page
<
HROrgContact
>
searchDefault
(
HROrgContactSearchContext
context
)
;
List
<
HROrgContact
>
selectByHrorganizationid
(
String
organizationid
)
;
void
removeByHrorganizationid
(
String
organizationid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/service/impl/HROrgAddressServiceImpl.java
浏览文件 @
79fc76d7
...
...
@@ -45,6 +45,9 @@ import org.springframework.util.StringUtils;
@Service
(
"HROrgAddressServiceImpl"
)
public
class
HROrgAddressServiceImpl
extends
ServiceImpl
<
HROrgAddressMapper
,
HROrgAddress
>
implements
IHROrgAddressService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROrganizationService
hrorganizationService
;
protected
int
batchSize
=
500
;
...
...
@@ -140,6 +143,16 @@ public class HROrgAddressServiceImpl extends ServiceImpl<HROrgAddressMapper, HRO
}
@Override
public
List
<
HROrgAddress
>
selectByHrorganizationid
(
String
organizationid
)
{
return
baseMapper
.
selectByHrorganizationid
(
organizationid
);
}
@Override
public
void
removeByHrorganizationid
(
String
organizationid
)
{
this
.
remove
(
new
QueryWrapper
<
HROrgAddress
>().
eq
(
"hrorganizationid"
,
organizationid
));
}
/**
* 查询集合 DEFAULT
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/service/impl/HROrgContactServiceImpl.java
浏览文件 @
79fc76d7
...
...
@@ -45,6 +45,9 @@ import org.springframework.util.StringUtils;
@Service
(
"HROrgContactServiceImpl"
)
public
class
HROrgContactServiceImpl
extends
ServiceImpl
<
HROrgContactMapper
,
HROrgContact
>
implements
IHROrgContactService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROrganizationService
hrorganizationService
;
protected
int
batchSize
=
500
;
...
...
@@ -140,6 +143,16 @@ public class HROrgContactServiceImpl extends ServiceImpl<HROrgContactMapper, HRO
}
@Override
public
List
<
HROrgContact
>
selectByHrorganizationid
(
String
organizationid
)
{
return
baseMapper
.
selectByHrorganizationid
(
organizationid
);
}
@Override
public
void
removeByHrorganizationid
(
String
organizationid
)
{
this
.
remove
(
new
QueryWrapper
<
HROrgContact
>().
eq
(
"hrorganizationid"
,
organizationid
));
}
/**
* 查询集合 DEFAULT
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/service/impl/HROrganizationServiceImpl.java
浏览文件 @
79fc76d7
...
...
@@ -50,6 +50,12 @@ public class HROrganizationServiceImpl extends ServiceImpl<HROrganizationMapper,
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHREmployeeService
hremployeeService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROrgAddressService
hrorgaddressService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROrgContactService
hrorgcontactService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROMHierarchyService
hromhierarchyService
;
protected
int
batchSize
=
500
;
...
...
humanresource-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
79fc76d7
...
...
@@ -225,6 +225,8 @@
</column>
<column
name=
"MAINADDRESS"
remarks=
""
type=
"INT"
>
</column>
<column
name=
"HRORGANIZATIONID"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
</createTable>
</changeSet>
...
...
@@ -251,6 +253,8 @@
</column>
<column
name=
"MAINCONTACT"
remarks=
""
type=
"INT"
>
</column>
<column
name=
"HRORGANIZATIONID"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
</createTable>
</changeSet>
...
...
@@ -313,7 +317,13 @@
</changeSet>
<!--输出实体[HROPERATIONUNIT]外键关系 -->
<!--输出实体[HRORGADDRESS]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgaddress-27-19"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRORGADDRESS"
constraintName=
"DER1N_HRORGADDRESS_HRORGANIZAT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRORGCONTACT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgcontact-23-20"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRORGCONTACT"
constraintName=
"DER1N_HRORGCONTACT_HRORGANIZAT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRORGANIZATION]外键关系 -->
</databaseChangeLog>
humanresource-core/src/main/resources/mapper/base/hrorgaddress/HROrgAddressMapper.xml
浏览文件 @
79fc76d7
...
...
@@ -5,16 +5,26 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"HROrgAddressResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`ADDRESS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGADDRESSID`, t1.`HRORGADDRESSNAME`, t1.`MAINADDRESS`, t1.`POSTCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`USES` FROM `T_HRORGADDRESS` t1 ) t1 where hrorgaddressid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ADDRESS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGADDRESSID`, t1.`HRORGADDRESSNAME`, t1.`
HRORGANIZATIONID`, t1.`
MAINADDRESS`, t1.`POSTCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`USES` FROM `T_HRORGADDRESS` t1 ) t1 where hrorgaddressid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"HROrgAddressResultMap"
type=
"cn.ibizlab.humanresource.core.base.domain.HROrgAddress"
autoMapping=
"true"
>
<id
property=
"hrorgaddressid"
column=
"hrorgaddressid"
/>
<!--主键字段映射-->
<result
property=
"hrorganizationid"
column=
"hrorganizationid"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"hrorganization"
javaType=
"cn.ibizlab.humanresource.core.base.domain.HROrganization"
column=
"hrorganizationid"
select=
"cn.ibizlab.humanresource.core.base.mapper.HROrganizationMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HRORGADDRESS_HRORGANIZATION_HRORGANIZATIONID_6BD9DC] -->
<select
id=
"selectByHrorganizationid"
resultMap=
"HROrgAddressResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where hrorganizationid=#{organizationid}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.humanresource.core.base.filter.HROrgAddressSearchContext"
resultMap=
"HROrgAddressResultMap"
>
...
...
@@ -27,12 +37,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ADDRESS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGADDRESSID`, t1.`HRORGADDRESSNAME`, t1.`MAINADDRESS`, t1.`POSTCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`USES` FROM `T_HRORGADDRESS` t1
<![CDATA[ SELECT t1.`ADDRESS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGADDRESSID`, t1.`HRORGADDRESSNAME`, t1.`
HRORGANIZATIONID`, t1.`
MAINADDRESS`, t1.`POSTCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`USES` FROM `T_HRORGADDRESS` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ADDRESS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGADDRESSID`, t1.`HRORGADDRESSNAME`, t1.`MAINADDRESS`, t1.`POSTCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`USES` FROM `T_HRORGADDRESS` t1
<![CDATA[ SELECT t1.`ADDRESS`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGADDRESSID`, t1.`HRORGADDRESSNAME`, t1.`
HRORGANIZATIONID`, t1.`
MAINADDRESS`, t1.`POSTCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`USES` FROM `T_HRORGADDRESS` t1
]]>
</sql>
</mapper>
...
...
humanresource-core/src/main/resources/mapper/base/hrorgcontact/HROrgContactMapper.xml
浏览文件 @
79fc76d7
...
...
@@ -5,16 +5,26 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"HROrgContactResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CONTACTINFO`, t1.`CONTACTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGCONTACTID`, t1.`HRORGCONTACTNAME`, t1.`MAINCONTACT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRORGCONTACT` t1 ) t1 where hrorgcontactid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CONTACTINFO`, t1.`CONTACTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORG
ANIZATIONID`, t1.`HRORG
CONTACTID`, t1.`HRORGCONTACTNAME`, t1.`MAINCONTACT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRORGCONTACT` t1 ) t1 where hrorgcontactid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"HROrgContactResultMap"
type=
"cn.ibizlab.humanresource.core.base.domain.HROrgContact"
autoMapping=
"true"
>
<id
property=
"hrorgcontactid"
column=
"hrorgcontactid"
/>
<!--主键字段映射-->
<result
property=
"hrorganizationid"
column=
"hrorganizationid"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"hrorganization"
javaType=
"cn.ibizlab.humanresource.core.base.domain.HROrganization"
column=
"hrorganizationid"
select=
"cn.ibizlab.humanresource.core.base.mapper.HROrganizationMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HRORGCONTACT_HRORGANIZATION_HRORGANIZATIONID_6BD9DC] -->
<select
id=
"selectByHrorganizationid"
resultMap=
"HROrgContactResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where hrorganizationid=#{organizationid}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.humanresource.core.base.filter.HROrgContactSearchContext"
resultMap=
"HROrgContactResultMap"
>
...
...
@@ -27,12 +37,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CONTACTINFO`, t1.`CONTACTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGCONTACTID`, t1.`HRORGCONTACTNAME`, t1.`MAINCONTACT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRORGCONTACT` t1
<![CDATA[ SELECT t1.`CONTACTINFO`, t1.`CONTACTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORG
ANIZATIONID`, t1.`HRORG
CONTACTID`, t1.`HRORGCONTACTNAME`, t1.`MAINCONTACT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRORGCONTACT` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CONTACTINFO`, t1.`CONTACTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORGCONTACTID`, t1.`HRORGCONTACTNAME`, t1.`MAINCONTACT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRORGCONTACT` t1
<![CDATA[ SELECT t1.`CONTACTINFO`, t1.`CONTACTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRORG
ANIZATIONID`, t1.`HRORG
CONTACTID`, t1.`HRORGCONTACTNAME`, t1.`MAINCONTACT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRORGCONTACT` t1
]]>
</sql>
</mapper>
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
79fc76d7
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
EXPOSE
8081
EXPOSE
10317
ADD
humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
humanresource-provider/humanresource-provider-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
浏览文件 @
79fc76d7
...
...
@@ -3,9 +3,25 @@ services:
humanresource-provider-hrapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports
:
-
"
8081:8081
"
-
"
10317:10317
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10317
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/dto/HROrgAddressDTO.java
浏览文件 @
79fc76d7
...
...
@@ -105,6 +105,14 @@ public class HROrgAddressDTO extends DTOBase implements Serializable {
@JsonProperty
(
"mainaddress"
)
private
Integer
mainaddress
;
/**
* 属性 [HRORGANIZATIONID]
*
*/
@JSONField
(
name
=
"hrorganizationid"
)
@JsonProperty
(
"hrorganizationid"
)
private
String
hrorganizationid
;
/**
* 设置 [HRORGADDRESSNAME]
...
...
@@ -146,6 +154,14 @@ public class HROrgAddressDTO extends DTOBase implements Serializable {
this
.
modify
(
"mainaddress"
,
mainaddress
);
}
/**
* 设置 [HRORGANIZATIONID]
*/
public
void
setHrorganizationid
(
String
hrorganizationid
){
this
.
hrorganizationid
=
hrorganizationid
;
this
.
modify
(
"hrorganizationid"
,
hrorganizationid
);
}
}
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/dto/HROrgContactDTO.java
浏览文件 @
79fc76d7
...
...
@@ -97,6 +97,14 @@ public class HROrgContactDTO extends DTOBase implements Serializable {
@JsonProperty
(
"maincontact"
)
private
Integer
maincontact
;
/**
* 属性 [HRORGANIZATIONID]
*
*/
@JSONField
(
name
=
"hrorganizationid"
)
@JsonProperty
(
"hrorganizationid"
)
private
String
hrorganizationid
;
/**
* 设置 [HRORGCONTACTNAME]
...
...
@@ -130,6 +138,14 @@ public class HROrgContactDTO extends DTOBase implements Serializable {
this
.
modify
(
"maincontact"
,
maincontact
);
}
/**
* 设置 [HRORGANIZATIONID]
*/
public
void
setHrorganizationid
(
String
hrorganizationid
){
this
.
hrorganizationid
=
hrorganizationid
;
this
.
modify
(
"hrorganizationid"
,
hrorganizationid
);
}
}
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/rest/HROrgAddressResource.java
浏览文件 @
79fc76d7
此差异已折叠。
点击以展开。
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/rest/HROrgContactResource.java
浏览文件 @
79fc76d7
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录