Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
7c799b07
提交
7c799b07
编写于
8月 07, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务接口
上级
6d227828
变更
19
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
1716 行增加
和
60 行删除
+1716
-60
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
HREmpState.java
...b/humanresource/core/humanresource/domain/HREmpState.java
+151
-0
HREmployee.java
...b/humanresource/core/humanresource/domain/HREmployee.java
+432
-2
HREmpStateSearchContext.java
...ce/core/humanresource/filter/HREmpStateSearchContext.java
+60
-0
HREmployeeSearchContext.java
...ce/core/humanresource/filter/HREmployeeSearchContext.java
+85
-1
HREmpStateMapper.java
...nresource/core/humanresource/mapper/HREmpStateMapper.java
+65
-0
HREmployeeMapper.java
...nresource/core/humanresource/mapper/HREmployeeMapper.java
+2
-0
IHREmpStateService.java
...source/core/humanresource/service/IHREmpStateService.java
+59
-0
IHREmployeeService.java
...source/core/humanresource/service/IHREmployeeService.java
+2
-0
HREmpStateServiceImpl.java
...ore/humanresource/service/impl/HREmpStateServiceImpl.java
+209
-0
HREmployeeServiceImpl.java
...ore/humanresource/service/impl/HREmployeeServiceImpl.java
+46
-0
h2_table.xml
humanresource-core/src/main/resources/liquibase/h2_table.xml
+109
-29
HREmployeeMapper.xml
...rces/mapper/humanresource/hremployee/HREmployeeMapper.xml
+13
-3
HREmpStateMapper.xml
...rces/mapper/humanresource/hrempstate/HREmpStateMapper.xml
+39
-0
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
HREmployeeDTO.java
...ava/cn/ibizlab/humanresource/hrapi/dto/HREmployeeDTO.java
+419
-0
未找到文件。
config.xml
浏览文件 @
7c799b07
...
...
@@ -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
浏览文件 @
7c799b07
...
...
@@ -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
浏览文件 @
7c799b07
...
...
@@ -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/humanresource/domain/HREmpState.java
0 → 100644
浏览文件 @
7c799b07
package
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.humanresource.util.domain.EntityBase
;
import
cn.ibizlab.humanresource.util.annotation.DEField
;
import
cn.ibizlab.humanresource.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.humanresource.util.enums.DEFieldDefaultValueType
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.humanresource.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.humanresource.util.domain.EntityMP
;
/**
* 实体[员工状态]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"T_HREMPSTATE"
,
resultMap
=
"HREmpStateResultMap"
)
public
class
HREmpState
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 员工状态标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"hrempstateid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"hrempstateid"
)
@JsonProperty
(
"hrempstateid"
)
private
String
hrempstateid
;
/**
* 员工状态名称
*/
@TableField
(
value
=
"hrempstatename"
)
@JSONField
(
name
=
"hrempstatename"
)
@JsonProperty
(
"hrempstatename"
)
private
String
hrempstatename
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 在岗状态
*/
@TableField
(
value
=
"jobstate"
)
@JSONField
(
name
=
"jobstate"
)
@JsonProperty
(
"jobstate"
)
private
String
jobstate
;
/**
* 排序号
*/
@TableField
(
value
=
"showorder"
)
@JSONField
(
name
=
"showorder"
)
@JsonProperty
(
"showorder"
)
private
BigInteger
showorder
;
/**
* 状态编码
*/
@TableField
(
value
=
"statecode"
)
@JSONField
(
name
=
"statecode"
)
@JsonProperty
(
"statecode"
)
private
String
statecode
;
/**
* 设置 [员工状态名称]
*/
public
void
setHrempstatename
(
String
hrempstatename
){
this
.
hrempstatename
=
hrempstatename
;
this
.
modify
(
"hrempstatename"
,
hrempstatename
);
}
/**
* 设置 [在岗状态]
*/
public
void
setJobstate
(
String
jobstate
){
this
.
jobstate
=
jobstate
;
this
.
modify
(
"jobstate"
,
jobstate
);
}
/**
* 设置 [排序号]
*/
public
void
setShoworder
(
BigInteger
showorder
){
this
.
showorder
=
showorder
;
this
.
modify
(
"showorder"
,
showorder
);
}
/**
* 设置 [状态编码]
*/
public
void
setStatecode
(
String
statecode
){
this
.
statecode
=
statecode
;
this
.
modify
(
"statecode"
,
statecode
);
}
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/domain/HREmployee.java
浏览文件 @
7c799b07
...
...
@@ -90,7 +90,7 @@ public class HREmployee extends EntityMP implements Serializable {
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 组织
* 组织
ID
*/
@TableField
(
value
=
"organizationid"
)
@JSONField
(
name
=
"organizationid"
)
...
...
@@ -132,6 +132,198 @@ public class HREmployee extends EntityMP implements Serializable {
@JSONField
(
name
=
"age"
)
@JsonProperty
(
"age"
)
private
String
age
;
/**
* 单位
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"organizationname"
)
@JsonProperty
(
"organizationname"
)
private
String
organizationname
;
/**
* 性别
*/
@TableField
(
value
=
"sex"
)
@JSONField
(
name
=
"sex"
)
@JsonProperty
(
"sex"
)
private
String
sex
;
/**
* 血型
*/
@TableField
(
value
=
"bloodtype"
)
@JSONField
(
name
=
"bloodtype"
)
@JsonProperty
(
"bloodtype"
)
private
String
bloodtype
;
/**
* 固定电话
*/
@TableField
(
value
=
"telephone"
)
@JSONField
(
name
=
"telephone"
)
@JsonProperty
(
"telephone"
)
private
String
telephone
;
/**
* 移动电话
*/
@TableField
(
value
=
"mobile"
)
@JSONField
(
name
=
"mobile"
)
@JsonProperty
(
"mobile"
)
private
String
mobile
;
/**
* 电子邮箱
*/
@TableField
(
value
=
"email"
)
@JSONField
(
name
=
"email"
)
@JsonProperty
(
"email"
)
private
String
email
;
/**
* 婚姻状况
*/
@TableField
(
value
=
"marriage"
)
@JSONField
(
name
=
"marriage"
)
@JsonProperty
(
"marriage"
)
private
String
marriage
;
/**
* 民族
*/
@TableField
(
value
=
"nation"
)
@JSONField
(
name
=
"nation"
)
@JsonProperty
(
"nation"
)
private
String
nation
;
/**
* 户口类型
*/
@TableField
(
value
=
"nativetype"
)
@JSONField
(
name
=
"nativetype"
)
@JsonProperty
(
"nativetype"
)
private
String
nativetype
;
/**
* 籍贯
*/
@TableField
(
value
=
"native"
)
@JSONField
(
name
=
"native"
)
@JsonProperty
(
"native"
)
private
String
native
;
/**
* 户籍地址
*/
@TableField
(
value
=
"nativeaddress"
)
@JSONField
(
name
=
"nativeaddress"
)
@JsonProperty
(
"nativeaddress"
)
private
String
nativeaddress
;
/**
* 出生地
*/
@TableField
(
value
=
"birthaddress"
)
@JSONField
(
name
=
"birthaddress"
)
@JsonProperty
(
"birthaddress"
)
private
String
birthaddress
;
/**
* 通讯地址
*/
@TableField
(
value
=
"postaladdress"
)
@JSONField
(
name
=
"postaladdress"
)
@JsonProperty
(
"postaladdress"
)
private
String
postaladdress
;
/**
* 爱好特长
*/
@TableField
(
value
=
"hobby"
)
@JSONField
(
name
=
"hobby"
)
@JsonProperty
(
"hobby"
)
private
String
hobby
;
/**
* 健康状况
*/
@TableField
(
value
=
"health"
)
@JSONField
(
name
=
"health"
)
@JsonProperty
(
"health"
)
private
String
health
;
/**
* 政治面貌
*/
@TableField
(
value
=
"political"
)
@JSONField
(
name
=
"political"
)
@JsonProperty
(
"political"
)
private
String
political
;
/**
* 参加工作时间
*/
@TableField
(
value
=
"startworktime"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"startworktime"
,
format
=
"yyyy-MM-dd"
)
@JsonProperty
(
"startworktime"
)
private
Timestamp
startworktime
;
/**
* 到本单位时间
*/
@TableField
(
value
=
"startorgtime"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"startorgtime"
,
format
=
"yyyy-MM-dd"
)
@JsonProperty
(
"startorgtime"
)
private
Timestamp
startorgtime
;
/**
* 照片
*/
@TableField
(
value
=
"photo"
)
@JSONField
(
name
=
"photo"
)
@JsonProperty
(
"photo"
)
private
String
photo
;
/**
* 第一学历
*/
@TableField
(
value
=
"firstdegree"
)
@JSONField
(
name
=
"firstdegree"
)
@JsonProperty
(
"firstdegree"
)
private
String
firstdegree
;
/**
* 最高学历
*/
@TableField
(
value
=
"highestdegree"
)
@JSONField
(
name
=
"highestdegree"
)
@JsonProperty
(
"highestdegree"
)
private
String
highestdegree
;
/**
* 技术职称
*/
@TableField
(
value
=
"technicaltitle"
)
@JSONField
(
name
=
"technicaltitle"
)
@JsonProperty
(
"technicaltitle"
)
private
String
technicaltitle
;
/**
* 执业证书
*/
@TableField
(
value
=
"certificates"
)
@JSONField
(
name
=
"certificates"
)
@JsonProperty
(
"certificates"
)
private
String
certificates
;
/**
* 入职渠道
*/
@TableField
(
value
=
"entrytype"
)
@JSONField
(
name
=
"entrytype"
)
@JsonProperty
(
"entrytype"
)
private
String
entrytype
;
/**
* 入党时间
*/
@TableField
(
value
=
"politicaltime"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"politicaltime"
,
format
=
"yyyy-MM-dd"
)
@JsonProperty
(
"politicaltime"
)
private
Timestamp
politicaltime
;
/**
* 员工状态
*/
@TableField
(
value
=
"empstate"
)
@JSONField
(
name
=
"empstate"
)
@JsonProperty
(
"empstate"
)
private
String
empstate
;
/**
* 在岗状态
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"jobstate"
)
@JsonProperty
(
"jobstate"
)
private
String
jobstate
;
/**
*
...
...
@@ -141,6 +333,14 @@ public class HREmployee extends EntityMP implements Serializable {
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
organization
;
/**
* 员工状态
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
domain
.
HREmpState
hrempstate
;
/**
...
...
@@ -152,7 +352,7 @@ public class HREmployee extends EntityMP implements Serializable {
}
/**
* 设置 [组织]
* 设置 [组织
ID
]
*/
public
void
setOrganizationid
(
String
organizationid
){
this
.
organizationid
=
organizationid
;
...
...
@@ -201,6 +401,236 @@ public class HREmployee extends EntityMP implements Serializable {
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
return
sdf
.
format
(
birthday
);
}
/**
* 设置 [性别]
*/
public
void
setSex
(
String
sex
){
this
.
sex
=
sex
;
this
.
modify
(
"sex"
,
sex
);
}
/**
* 设置 [血型]
*/
public
void
setBloodtype
(
String
bloodtype
){
this
.
bloodtype
=
bloodtype
;
this
.
modify
(
"bloodtype"
,
bloodtype
);
}
/**
* 设置 [固定电话]
*/
public
void
setTelephone
(
String
telephone
){
this
.
telephone
=
telephone
;
this
.
modify
(
"telephone"
,
telephone
);
}
/**
* 设置 [移动电话]
*/
public
void
setMobile
(
String
mobile
){
this
.
mobile
=
mobile
;
this
.
modify
(
"mobile"
,
mobile
);
}
/**
* 设置 [电子邮箱]
*/
public
void
setEmail
(
String
email
){
this
.
email
=
email
;
this
.
modify
(
"email"
,
email
);
}
/**
* 设置 [婚姻状况]
*/
public
void
setMarriage
(
String
marriage
){
this
.
marriage
=
marriage
;
this
.
modify
(
"marriage"
,
marriage
);
}
/**
* 设置 [民族]
*/
public
void
setNation
(
String
nation
){
this
.
nation
=
nation
;
this
.
modify
(
"nation"
,
nation
);
}
/**
* 设置 [户口类型]
*/
public
void
setNativetype
(
String
nativetype
){
this
.
nativetype
=
nativetype
;
this
.
modify
(
"nativetype"
,
nativetype
);
}
/**
* 设置 [籍贯]
*/
public
void
setNative
(
String
native
){
this
.
native
=
native
;
this
.
modify
(
"native"
,
native
);
}
/**
* 设置 [户籍地址]
*/
public
void
setNativeaddress
(
String
nativeaddress
){
this
.
nativeaddress
=
nativeaddress
;
this
.
modify
(
"nativeaddress"
,
nativeaddress
);
}
/**
* 设置 [出生地]
*/
public
void
setBirthaddress
(
String
birthaddress
){
this
.
birthaddress
=
birthaddress
;
this
.
modify
(
"birthaddress"
,
birthaddress
);
}
/**
* 设置 [通讯地址]
*/
public
void
setPostaladdress
(
String
postaladdress
){
this
.
postaladdress
=
postaladdress
;
this
.
modify
(
"postaladdress"
,
postaladdress
);
}
/**
* 设置 [爱好特长]
*/
public
void
setHobby
(
String
hobby
){
this
.
hobby
=
hobby
;
this
.
modify
(
"hobby"
,
hobby
);
}
/**
* 设置 [健康状况]
*/
public
void
setHealth
(
String
health
){
this
.
health
=
health
;
this
.
modify
(
"health"
,
health
);
}
/**
* 设置 [政治面貌]
*/
public
void
setPolitical
(
String
political
){
this
.
political
=
political
;
this
.
modify
(
"political"
,
political
);
}
/**
* 设置 [参加工作时间]
*/
public
void
setStartworktime
(
Timestamp
startworktime
){
this
.
startworktime
=
startworktime
;
this
.
modify
(
"startworktime"
,
startworktime
);
}
/**
* 格式化日期 [参加工作时间]
*/
public
String
formatStartworktime
(){
if
(
this
.
startworktime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
return
sdf
.
format
(
startworktime
);
}
/**
* 设置 [到本单位时间]
*/
public
void
setStartorgtime
(
Timestamp
startorgtime
){
this
.
startorgtime
=
startorgtime
;
this
.
modify
(
"startorgtime"
,
startorgtime
);
}
/**
* 格式化日期 [到本单位时间]
*/
public
String
formatStartorgtime
(){
if
(
this
.
startorgtime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
return
sdf
.
format
(
startorgtime
);
}
/**
* 设置 [照片]
*/
public
void
setPhoto
(
String
photo
){
this
.
photo
=
photo
;
this
.
modify
(
"photo"
,
photo
);
}
/**
* 设置 [第一学历]
*/
public
void
setFirstdegree
(
String
firstdegree
){
this
.
firstdegree
=
firstdegree
;
this
.
modify
(
"firstdegree"
,
firstdegree
);
}
/**
* 设置 [最高学历]
*/
public
void
setHighestdegree
(
String
highestdegree
){
this
.
highestdegree
=
highestdegree
;
this
.
modify
(
"highestdegree"
,
highestdegree
);
}
/**
* 设置 [技术职称]
*/
public
void
setTechnicaltitle
(
String
technicaltitle
){
this
.
technicaltitle
=
technicaltitle
;
this
.
modify
(
"technicaltitle"
,
technicaltitle
);
}
/**
* 设置 [执业证书]
*/
public
void
setCertificates
(
String
certificates
){
this
.
certificates
=
certificates
;
this
.
modify
(
"certificates"
,
certificates
);
}
/**
* 设置 [入职渠道]
*/
public
void
setEntrytype
(
String
entrytype
){
this
.
entrytype
=
entrytype
;
this
.
modify
(
"entrytype"
,
entrytype
);
}
/**
* 设置 [入党时间]
*/
public
void
setPoliticaltime
(
Timestamp
politicaltime
){
this
.
politicaltime
=
politicaltime
;
this
.
modify
(
"politicaltime"
,
politicaltime
);
}
/**
* 格式化日期 [入党时间]
*/
public
String
formatPoliticaltime
(){
if
(
this
.
politicaltime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
return
sdf
.
format
(
politicaltime
);
}
/**
* 设置 [员工状态]
*/
public
void
setEmpstate
(
String
empstate
){
this
.
empstate
=
empstate
;
this
.
modify
(
"empstate"
,
empstate
);
}
}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/filter/HREmpStateSearchContext.java
0 → 100644
浏览文件 @
7c799b07
package
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.humanresource.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.humanresource.core.humanresource.domain.HREmpState
;
/**
* 关系型数据实体[HREmpState] 查询条件对象
*/
@Slf4j
@Data
public
class
HREmpStateSearchContext
extends
QueryWrapperContext
<
HREmpState
>
{
private
String
n_hrempstatename_like
;
//[员工状态名称]
public
void
setN_hrempstatename_like
(
String
n_hrempstatename_like
)
{
this
.
n_hrempstatename_like
=
n_hrempstatename_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_hrempstatename_like
)){
this
.
getSearchCond
().
like
(
"hrempstatename"
,
n_hrempstatename_like
);
}
}
private
String
n_jobstate_eq
;
//[在岗状态]
public
void
setN_jobstate_eq
(
String
n_jobstate_eq
)
{
this
.
n_jobstate_eq
=
n_jobstate_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_jobstate_eq
)){
this
.
getSearchCond
().
eq
(
"jobstate"
,
n_jobstate_eq
);
}
}
/**
* 启用快速搜索
*/
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"hrempstatename"
,
query
)
);
}
}
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/filter/HREmployeeSearchContext.java
浏览文件 @
7c799b07
...
...
@@ -34,7 +34,7 @@ public class HREmployeeSearchContext extends QueryWrapperContext<HREmployee> {
this
.
getSearchCond
().
like
(
"employeename"
,
n_employeename_like
);
}
}
private
String
n_organizationid_eq
;
//[组织]
private
String
n_organizationid_eq
;
//[组织
ID
]
public
void
setN_organizationid_eq
(
String
n_organizationid_eq
)
{
this
.
n_organizationid_eq
=
n_organizationid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_organizationid_eq
)){
...
...
@@ -48,6 +48,90 @@ public class HREmployeeSearchContext extends QueryWrapperContext<HREmployee> {
this
.
getSearchCond
().
eq
(
"certtype"
,
n_certtype_eq
);
}
}
private
String
n_organizationname_eq
;
//[单位]
public
void
setN_organizationname_eq
(
String
n_organizationname_eq
)
{
this
.
n_organizationname_eq
=
n_organizationname_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_organizationname_eq
)){
this
.
getSearchCond
().
eq
(
"organizationname"
,
n_organizationname_eq
);
}
}
private
String
n_organizationname_like
;
//[单位]
public
void
setN_organizationname_like
(
String
n_organizationname_like
)
{
this
.
n_organizationname_like
=
n_organizationname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_organizationname_like
)){
this
.
getSearchCond
().
like
(
"organizationname"
,
n_organizationname_like
);
}
}
private
String
n_sex_eq
;
//[性别]
public
void
setN_sex_eq
(
String
n_sex_eq
)
{
this
.
n_sex_eq
=
n_sex_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_sex_eq
)){
this
.
getSearchCond
().
eq
(
"sex"
,
n_sex_eq
);
}
}
private
String
n_bloodtype_eq
;
//[血型]
public
void
setN_bloodtype_eq
(
String
n_bloodtype_eq
)
{
this
.
n_bloodtype_eq
=
n_bloodtype_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_bloodtype_eq
)){
this
.
getSearchCond
().
eq
(
"bloodtype"
,
n_bloodtype_eq
);
}
}
private
String
n_marriage_eq
;
//[婚姻状况]
public
void
setN_marriage_eq
(
String
n_marriage_eq
)
{
this
.
n_marriage_eq
=
n_marriage_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_marriage_eq
)){
this
.
getSearchCond
().
eq
(
"marriage"
,
n_marriage_eq
);
}
}
private
String
n_nation_eq
;
//[民族]
public
void
setN_nation_eq
(
String
n_nation_eq
)
{
this
.
n_nation_eq
=
n_nation_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_nation_eq
)){
this
.
getSearchCond
().
eq
(
"nation"
,
n_nation_eq
);
}
}
private
String
n_nativetype_eq
;
//[户口类型]
public
void
setN_nativetype_eq
(
String
n_nativetype_eq
)
{
this
.
n_nativetype_eq
=
n_nativetype_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_nativetype_eq
)){
this
.
getSearchCond
().
eq
(
"nativetype"
,
n_nativetype_eq
);
}
}
private
String
n_political_eq
;
//[政治面貌]
public
void
setN_political_eq
(
String
n_political_eq
)
{
this
.
n_political_eq
=
n_political_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_political_eq
)){
this
.
getSearchCond
().
eq
(
"political"
,
n_political_eq
);
}
}
private
String
n_firstdegree_eq
;
//[第一学历]
public
void
setN_firstdegree_eq
(
String
n_firstdegree_eq
)
{
this
.
n_firstdegree_eq
=
n_firstdegree_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_firstdegree_eq
)){
this
.
getSearchCond
().
eq
(
"firstdegree"
,
n_firstdegree_eq
);
}
}
private
String
n_highestdegree_eq
;
//[最高学历]
public
void
setN_highestdegree_eq
(
String
n_highestdegree_eq
)
{
this
.
n_highestdegree_eq
=
n_highestdegree_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_highestdegree_eq
)){
this
.
getSearchCond
().
eq
(
"highestdegree"
,
n_highestdegree_eq
);
}
}
private
String
n_entrytype_eq
;
//[入职渠道]
public
void
setN_entrytype_eq
(
String
n_entrytype_eq
)
{
this
.
n_entrytype_eq
=
n_entrytype_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_entrytype_eq
)){
this
.
getSearchCond
().
eq
(
"entrytype"
,
n_entrytype_eq
);
}
}
private
String
n_empstate_eq
;
//[员工状态]
public
void
setN_empstate_eq
(
String
n_empstate_eq
)
{
this
.
n_empstate_eq
=
n_empstate_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_empstate_eq
)){
this
.
getSearchCond
().
eq
(
"empstate"
,
n_empstate_eq
);
}
}
/**
* 启用快速搜索
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/mapper/HREmpStateMapper.java
0 → 100644
浏览文件 @
7c799b07
package
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.humanresource.core.humanresource.domain.HREmpState
;
import
cn.ibizlab.humanresource.core.humanresource.filter.HREmpStateSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
HREmpStateMapper
extends
BaseMapper
<
HREmpState
>{
Page
<
HREmpState
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
HREmpStateSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
HREmpState
>
wrapper
)
;
@Override
HREmpState
selectById
(
Serializable
id
);
@Override
int
insert
(
HREmpState
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
HREmpState
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
HREmpState
entity
,
@Param
(
"ew"
)
Wrapper
<
HREmpState
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/mapper/HREmployeeMapper.java
浏览文件 @
7c799b07
...
...
@@ -64,4 +64,6 @@ public interface HREmployeeMapper extends BaseMapper<HREmployee>{
List
<
HREmployee
>
selectByOrganizationid
(
@Param
(
"organizationid"
)
Serializable
organizationid
)
;
List
<
HREmployee
>
selectByEmpstate
(
@Param
(
"hrempstateid"
)
Serializable
hrempstateid
)
;
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/IHREmpStateService.java
0 → 100644
浏览文件 @
7c799b07
package
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.humanresource.core.humanresource.domain.HREmpState
;
import
cn.ibizlab.humanresource.core.humanresource.filter.HREmpStateSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[HREmpState] 服务对象接口
*/
public
interface
IHREmpStateService
extends
IService
<
HREmpState
>{
boolean
create
(
HREmpState
et
)
;
void
createBatch
(
List
<
HREmpState
>
list
)
;
boolean
update
(
HREmpState
et
)
;
void
updateBatch
(
List
<
HREmpState
>
list
)
;
boolean
remove
(
String
key
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
HREmpState
get
(
String
key
)
;
HREmpState
getDraft
(
HREmpState
et
)
;
boolean
checkKey
(
HREmpState
et
)
;
boolean
save
(
HREmpState
et
)
;
void
saveBatch
(
List
<
HREmpState
>
list
)
;
Page
<
HREmpState
>
searchDefault
(
HREmpStateSearchContext
context
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
HREmpState
>
getHrempstateByIds
(
List
<
String
>
ids
)
;
List
<
HREmpState
>
getHrempstateByEntities
(
List
<
HREmpState
>
entities
)
;
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/IHREmployeeService.java
浏览文件 @
7c799b07
...
...
@@ -39,6 +39,8 @@ public interface IHREmployeeService extends IService<HREmployee>{
Page
<
HREmployee
>
searchDefault
(
HREmployeeSearchContext
context
)
;
List
<
HREmployee
>
selectByOrganizationid
(
String
organizationid
)
;
void
removeByOrganizationid
(
String
organizationid
)
;
List
<
HREmployee
>
selectByEmpstate
(
String
hrempstateid
)
;
void
removeByEmpstate
(
String
hrempstateid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/impl/HREmpStateServiceImpl.java
0 → 100644
浏览文件 @
7c799b07
package
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.humanresource.core.humanresource.domain.HREmpState
;
import
cn.ibizlab.humanresource.core.humanresource.filter.HREmpStateSearchContext
;
import
cn.ibizlab.humanresource.core.humanresource.service.IHREmpStateService
;
import
cn.ibizlab.humanresource.util.helper.CachedBeanCopier
;
import
cn.ibizlab.humanresource.util.helper.DEFieldCacheMap
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.humanresource.core.humanresource.mapper.HREmpStateMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[员工状态] 服务对象接口实现
*/
@Slf4j
@Service
(
"HREmpStateServiceImpl"
)
public
class
HREmpStateServiceImpl
extends
ServiceImpl
<
HREmpStateMapper
,
HREmpState
>
implements
IHREmpStateService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHREmployeeService
hremployeeService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
HREmpState
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getHrempstateid
()),
et
);
return
true
;
}
@Override
public
void
createBatch
(
List
<
HREmpState
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
HREmpState
et
)
{
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"hrempstateid"
,
et
.
getHrempstateid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getHrempstateid
()),
et
);
return
true
;
}
@Override
public
void
updateBatch
(
List
<
HREmpState
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
HREmpState
get
(
String
key
)
{
HREmpState
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
HREmpState
();
et
.
setHrempstateid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
HREmpState
getDraft
(
HREmpState
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
HREmpState
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getHrempstateid
()))&&(!
Objects
.
isNull
(
this
.
getById
(
et
.
getHrempstateid
())));
}
@Override
@Transactional
public
boolean
save
(
HREmpState
et
)
{
if
(!
saveOrUpdate
(
et
))
return
false
;
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
HREmpState
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
public
boolean
saveBatch
(
Collection
<
HREmpState
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
HREmpState
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 DEFAULT
*/
@Override
public
Page
<
HREmpState
>
searchDefault
(
HREmpStateSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
HREmpState
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
HREmpState
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
HREmpState
>
getHrempstateByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
HREmpState
>
getHrempstateByEntities
(
List
<
HREmpState
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
HREmpState
entity
:
entities
){
Serializable
id
=
entity
.
getHrempstateid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
return
this
.
listByIds
(
ids
);
else
return
entities
;
}
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/impl/HREmployeeServiceImpl.java
浏览文件 @
7c799b07
...
...
@@ -51,12 +51,16 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROrganizationService
hrorganizationService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHREmpStateService
hrempstateService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
HREmployee
et
)
{
fillParentData
(
et
);
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getEmployeeid
()),
et
);
...
...
@@ -65,12 +69,14 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
@Override
public
void
createBatch
(
List
<
HREmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
HREmployee
et
)
{
fillParentData
(
et
);
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"employeeid"
,
et
.
getEmployeeid
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getEmployeeid
()),
et
);
...
...
@@ -79,6 +85,7 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
@Override
public
void
updateBatch
(
List
<
HREmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
}
...
...
@@ -109,6 +116,7 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
@Override
public
HREmployee
getDraft
(
HREmployee
et
)
{
fillParentData
(
et
);
return
et
;
}
...
...
@@ -136,12 +144,14 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
@Override
public
boolean
saveBatch
(
Collection
<
HREmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
public
void
saveBatch
(
List
<
HREmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
}
...
...
@@ -156,6 +166,16 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
this
.
remove
(
new
QueryWrapper
<
HREmployee
>().
eq
(
"organizationid"
,
organizationid
));
}
@Override
public
List
<
HREmployee
>
selectByEmpstate
(
String
hrempstateid
)
{
return
baseMapper
.
selectByEmpstate
(
hrempstateid
);
}
@Override
public
void
removeByEmpstate
(
String
hrempstateid
)
{
this
.
remove
(
new
QueryWrapper
<
HREmployee
>().
eq
(
"empstate"
,
hrempstateid
));
}
/**
* 查询集合 DEFAULT
...
...
@@ -168,6 +188,32 @@ public class HREmployeeServiceImpl extends ServiceImpl<HREmployeeMapper, HREmplo
/**
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
*/
private
void
fillParentData
(
HREmployee
et
){
//实体关系[DER1N_EMPLOYEE_ORGANIZATION_ORGANIZATIONID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getOrganizationid
())){
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
organization
=
et
.
getOrganization
();
if
(
ObjectUtils
.
isEmpty
(
organization
)){
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
majorEntity
=
hrorganizationService
.
get
(
et
.
getOrganizationid
());
et
.
setOrganization
(
majorEntity
);
organization
=
majorEntity
;
}
et
.
setOrganizationname
(
organization
.
getOrganizationname
());
}
//实体关系[DER1N_HREMPLOYEE_HREMPSTATE_EMPSTATE_BE6FB0]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEmpstate
())){
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
domain
.
HREmpState
hrempstate
=
et
.
getHrempstate
();
if
(
ObjectUtils
.
isEmpty
(
hrempstate
)){
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
domain
.
HREmpState
majorEntity
=
hrempstateService
.
get
(
et
.
getEmpstate
());
et
.
setHrempstate
(
majorEntity
);
hrempstate
=
majorEntity
;
}
et
.
setJobstate
(
hrempstate
.
getJobstate
());
}
}
...
...
humanresource-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
7c799b07
...
...
@@ -151,8 +151,34 @@
</changeSet>
<!--输出实体[HREMPSTATE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrempstate-15-7"
>
<createTable
tableName=
"T_HREMPSTATE"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"HREMPSTATEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HREMPSTATE_HREMPSTATEID"
/>
</column>
<column
name=
"HREMPSTATENAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"JOBSTATE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"SHOWORDER"
remarks=
""
type=
"BIGINT"
>
</column>
<column
name=
"STATECODE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
<!--输出实体[HREMPLOYEE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hremployee-
18-7
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hremployee-
87-8
"
>
<createTable
tableName=
"EMPLOYEE"
>
<column
name=
"EMPLOYEENAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -177,12 +203,62 @@
</column>
<column
name=
"BIRTHDAY"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"SEX"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"BLOODTYPE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"TELEPHONE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"MOBILE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"EMAIL"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"MARRIAGE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"NATION"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"NATIVETYPE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"NATIVE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"NATIVEADDRESS"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"BIRTHADDRESS"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"POSTALADDRESS"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"HOBBY"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"HEALTH"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"POLITICAL"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"STARTWORKTIME"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"STARTORGTIME"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"PHOTO"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"FIRSTDEGREE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"HIGHESTDEGREE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"TECHNICALTITLE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"CERTIFICATES"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"ENTRYTYPE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"POLITICALTIME"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"EMPSTATE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
<!--输出实体[HRLEAVE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrleave-3-
8
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrleave-3-
9
"
>
<createTable
tableName=
"LEAVE"
>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -202,7 +278,7 @@
<!--输出实体[HRLEGAL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrlegal-88-
9
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrlegal-88-
10
"
>
<createTable
tableName=
"LEGAL"
>
<column
name=
"LEGALNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -228,7 +304,7 @@
<!--输出实体[HROMHIERARCHYPURPOSE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchypurpose-11-1
0
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchypurpose-11-1
1
"
>
<createTable
tableName=
"OMHIERARCHYPURPOSE"
>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -248,7 +324,7 @@
<!--输出实体[HROMHIERARCHY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchy-76-1
1
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchy-76-1
2
"
>
<createTable
tableName=
"OMHIERARCHY"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -276,7 +352,7 @@
<!--输出实体[HROMHIERARCHYCAT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchycat-99-1
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchycat-99-1
3
"
>
<createTable
tableName=
"OMHIERARCHYCAT"
>
<column
name=
"OMHIERARCHYCATID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HROMHIERARCHYCAT_OMHIERARCH"
/>
...
...
@@ -298,7 +374,7 @@
<!--输出实体[HROMHIERARCHYPURPOSEREF]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchypurposeref-6-1
3
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hromhierarchypurposeref-6-1
4
"
>
<createTable
tableName=
"OMHIERARCHYPURPOSEREF"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -322,7 +398,7 @@
<!--输出实体[HROPERATIONUNIT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hroperationunit-64-1
4
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hroperationunit-64-1
5
"
>
<createTable
tableName=
"OPERATIONUNIT"
>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -342,7 +418,7 @@
<!--输出实体[HRORGADDRESS]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorgaddress-29-1
5
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorgaddress-29-1
6
"
>
<createTable
tableName=
"T_HRORGADDRESS"
>
<column
name=
"HRORGADDRESSNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -372,7 +448,7 @@
<!--输出实体[HRORGCONTACT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorgcontact-24-1
6
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorgcontact-24-1
7
"
>
<createTable
tableName=
"T_HRORGCONTACT"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -400,7 +476,7 @@
<!--输出实体[HRORGANIZATION]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorganization-32-1
7
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorganization-32-1
8
"
>
<createTable
tableName=
"ORGANIZATION"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -434,7 +510,7 @@
<!--输出实体[HRPOST]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrpost-106-1
8
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrpost-106-1
9
"
>
<createTable
tableName=
"T_HRPOST"
>
<column
name=
"HRPOSTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HRPOST_HRPOSTID"
/>
...
...
@@ -468,7 +544,7 @@
<!--输出实体[HRPOSTREL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrpostrel-29-
19
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrpostrel-29-
20
"
>
<createTable
tableName=
"T_HRPOSTREL"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -496,69 +572,73 @@
<!--输出实体[HRATTENDANCE]外键关系 -->
<!--输出实体[HRDISTRIBUTION]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-34-2
0
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-34-2
1
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRDISTRIBUTION"
constraintName=
"DER1N_HRDISTRIBUTION_HREMPLOYE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-34-2
1
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-34-2
2
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRPOSTID"
baseTableName=
"T_HRDISTRIBUTION"
constraintName=
"DER1N_HRDISTRIBUTION_HRPOST_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDUTY]外键关系 -->
<!--输出实体[HRDUTYCERT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutycert-23-2
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutycert-23-2
3
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRDUTYCERT"
constraintName=
"DER1N_HRDUTYCERT_HRDUTY_HRDUTY"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDUTYEDU]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyedu-22-2
3
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyedu-22-2
4
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRDUTYEDU"
constraintName=
"DER1N_HRDUTYEDU_HRDUTY_HRDUTYI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDUTYSKILL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyskill-21-2
4
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyskill-21-2
5
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRDUTYSKILL"
constraintName=
"DER1N_HRDUTYSKILL_HRDUTY_HRDUT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<!--输出实体[HREMPSTATE]外键关系 -->
<!--输出实体[HREMPLOYEE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-
18-25
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-
87-26
"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_EMPLOYEE_ORGANIZATION_OR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-87-27"
>
<addForeignKeyConstraint
baseColumnNames=
"EMPSTATE"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_HREMPLOYEE_HREMPSTATE_EM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HREMPSTATEID"
referencedTableName=
"T_HREMPSTATE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRLEAVE]外键关系 -->
<!--输出实体[HRLEGAL]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSE]外键关系 -->
<!--输出实体[HROMHIERARCHY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-2
6
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-2
8
"
>
<addForeignKeyConstraint
baseColumnNames=
"HROMHIERARCHYCATID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_HROMHIERARCHY_HROMHIERAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYCATID"
referencedTableName=
"OMHIERARCHYCAT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-2
7
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-2
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"POMHIERARCHYID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_OMHIERARCHY_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYID"
referencedTableName=
"OMHIERARCHY"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-
28
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-
30
"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_ORGANIZATION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HROMHIERARCHYCAT]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSEREF]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchypurposeref-6-
29
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchypurposeref-6-
31
"
>
<addForeignKeyConstraint
baseColumnNames=
"OMHIERARCHYCATID"
baseTableName=
"OMHIERARCHYPURPOSEREF"
constraintName=
"DER1N_OMHIERARCHYPURPOSEREF_OM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYCATID"
referencedTableName=
"OMHIERARCHYCAT"
validate=
"true"
/>
</changeSet>
<!--输出实体[HROPERATIONUNIT]外键关系 -->
<!--输出实体[HRORGADDRESS]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgaddress-29-3
1
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgaddress-29-3
3
"
>
<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-24-3
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgcontact-24-3
4
"
>
<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]外键关系 -->
<!--输出实体[HRPOST]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-106-3
3
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-106-3
5
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRPOST"
constraintName=
"DER1N_HRPOST_HRDUTY_HRDUTYID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-106-3
4
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-106-3
6
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRPOST"
constraintName=
"DER1N_HRPOST_HRORGANIZATION_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRPOSTREL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-3
5
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-3
7
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRPOSTID"
baseTableName=
"T_HRPOSTREL"
constraintName=
"DER1N_HRPOSTREL_HRPOST_HRPOSTI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-3
6
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-3
8
"
>
<addForeignKeyConstraint
baseColumnNames=
"PHRPOSTID"
baseTableName=
"T_HRPOSTREL"
constraintName=
"DER1N_HRPOSTREL_HRPOST_PHRPOST"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
...
...
humanresource-core/src/main/resources/mapper/humanresource/hremployee/HREmployeeMapper.xml
浏览文件 @
7c799b07
...
...
@@ -5,17 +5,20 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"HREmployeeResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT (TIMESTAMPDIFF(YEAR, t1.`BIRTHDAY`, CURDATE())) AS `AGE`, t1.`BIRTH
DAY`, t1.`CERTNUM`, t1.`CERTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EMPLOYEECODE`, t1.`EMPLOYEEID`, t1.`EMPLOYEENAME`, t1.`ORGANIZATIONID`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EMPLOYEE` t1
) t1 where employeeid=#{id}]]>
<![CDATA[select t1.* from (SELECT (TIMESTAMPDIFF(YEAR, t1.`BIRTHDAY`, CURDATE())) AS `AGE`, t1.`BIRTH
ADDRESS`, t1.`BIRTHDAY`, t1.`BLOODTYPE`, t1.`CERTIFICATES`, t1.`CERTNUM`, t1.`CERTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EMAIL`, t1.`EMPLOYEECODE`, t1.`EMPLOYEEID`, t1.`EMPLOYEENAME`, t1.`EMPSTATE`, t1.`ENTRYTYPE`, t1.`FIRSTDEGREE`, t1.`HEALTH`, t1.`HIGHESTDEGREE`, t1.`HOBBY`, t21.`JOBSTATE`, t1.`MARRIAGE`, t1.`MOBILE`, t1.`NATION`, t1.`NATIVE`, t1.`NATIVEADDRESS`, t1.`NATIVETYPE`, t1.`ORGANIZATIONID`, t11.`ORGANIZATIONNAME`, t1.`PHOTO`, t1.`POLITICAL`, t1.`POLITICALTIME`, t1.`POSTALADDRESS`, t1.`SEX`, t1.`STARTORGTIME`, t1.`STARTWORKTIME`, t1.`TECHNICALTITLE`, t1.`TELEPHONE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EMPLOYEE` t1 LEFT JOIN ORGANIZATION t11 ON t1.ORGANIZATIONID = t11.ORGANIZATIONID LEFT JOIN T_HREMPSTATE t21 ON t1.EMPSTATE = t21.HREMPSTATEID
) t1 where employeeid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"HREmployeeResultMap"
type=
"cn.ibizlab.humanresource.core.humanresource.domain.HREmployee"
autoMapping=
"true"
>
<id
property=
"employeeid"
column=
"employeeid"
/>
<!--主键字段映射-->
<result
property=
"organizationid"
column=
"organizationid"
/>
<result
property=
"empstate"
column=
"empstate"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"organization"
javaType=
"cn.ibizlab.humanresource.core.base.domain.HROrganization"
column=
"organizationid"
select=
"cn.ibizlab.humanresource.core.base.mapper.HROrganizationMapper.selectById"
fetchType=
"lazy"
></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"hrempstate"
javaType=
"cn.ibizlab.humanresource.core.humanresource.domain.HREmpState"
column=
"empstate"
select=
"cn.ibizlab.humanresource.core.humanresource.mapper.HREmpStateMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_EMPLOYEE_ORGANIZATION_ORGANIZATIONID] -->
...
...
@@ -24,6 +27,13 @@
<include
refid=
"Default"
/>
) t1
where organizationid=#{organizationid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HREMPLOYEE_HREMPSTATE_EMPSTATE_BE6FB0] -->
<select
id=
"selectByEmpstate"
resultMap=
"HREmployeeResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where empstate=#{hrempstateid}
</select>
<!--数据集合[Default]-->
...
...
@@ -37,12 +47,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT (TIMESTAMPDIFF(YEAR, t1.`BIRTHDAY`, CURDATE())) AS `AGE`, t1.`BIRTH
DAY`, t1.`CERTNUM`, t1.`CERTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EMPLOYEECODE`, t1.`EMPLOYEEID`, t1.`EMPLOYEENAME`, t1.`ORGANIZATIONID`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EMPLOYEE` t1
<![CDATA[ SELECT (TIMESTAMPDIFF(YEAR, t1.`BIRTHDAY`, CURDATE())) AS `AGE`, t1.`BIRTH
ADDRESS`, t1.`BIRTHDAY`, t1.`BLOODTYPE`, t1.`CERTIFICATES`, t1.`CERTNUM`, t1.`CERTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EMAIL`, t1.`EMPLOYEECODE`, t1.`EMPLOYEEID`, t1.`EMPLOYEENAME`, t1.`EMPSTATE`, t1.`ENTRYTYPE`, t1.`FIRSTDEGREE`, t1.`HEALTH`, t1.`HIGHESTDEGREE`, t1.`HOBBY`, t21.`JOBSTATE`, t1.`MARRIAGE`, t1.`MOBILE`, t1.`NATION`, t1.`NATIVE`, t1.`NATIVEADDRESS`, t1.`NATIVETYPE`, t1.`ORGANIZATIONID`, t11.`ORGANIZATIONNAME`, t1.`PHOTO`, t1.`POLITICAL`, t1.`POLITICALTIME`, t1.`POSTALADDRESS`, t1.`SEX`, t1.`STARTORGTIME`, t1.`STARTWORKTIME`, t1.`TECHNICALTITLE`, t1.`TELEPHONE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EMPLOYEE` t1 LEFT JOIN ORGANIZATION t11 ON t1.ORGANIZATIONID = t11.ORGANIZATIONID LEFT JOIN T_HREMPSTATE t21 ON t1.EMPSTATE = t21.HREMPSTATEID
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT (TIMESTAMPDIFF(YEAR, t1.`BIRTHDAY`, CURDATE())) AS `AGE`, t1.`BIRTH
DAY`, t1.`CERTNUM`, t1.`CERTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EMPLOYEECODE`, t1.`EMPLOYEEID`, t1.`EMPLOYEENAME`, t1.`ORGANIZATIONID`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EMPLOYEE` t1
<![CDATA[ SELECT (TIMESTAMPDIFF(YEAR, t1.`BIRTHDAY`, CURDATE())) AS `AGE`, t1.`BIRTH
ADDRESS`, t1.`BIRTHDAY`, t1.`BLOODTYPE`, t1.`CERTIFICATES`, t1.`CERTNUM`, t1.`CERTTYPE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`EMAIL`, t1.`EMPLOYEECODE`, t1.`EMPLOYEEID`, t1.`EMPLOYEENAME`, t1.`EMPSTATE`, t1.`ENTRYTYPE`, t1.`FIRSTDEGREE`, t1.`HEALTH`, t1.`HIGHESTDEGREE`, t1.`HOBBY`, t21.`JOBSTATE`, t1.`MARRIAGE`, t1.`MOBILE`, t1.`NATION`, t1.`NATIVE`, t1.`NATIVEADDRESS`, t1.`NATIVETYPE`, t1.`ORGANIZATIONID`, t11.`ORGANIZATIONNAME`, t1.`PHOTO`, t1.`POLITICAL`, t1.`POLITICALTIME`, t1.`POSTALADDRESS`, t1.`SEX`, t1.`STARTORGTIME`, t1.`STARTWORKTIME`, t1.`TECHNICALTITLE`, t1.`TELEPHONE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `EMPLOYEE` t1 LEFT JOIN ORGANIZATION t11 ON t1.ORGANIZATIONID = t11.ORGANIZATIONID LEFT JOIN T_HREMPSTATE t21 ON t1.EMPSTATE = t21.HREMPSTATEID
]]>
</sql>
</mapper>
...
...
humanresource-core/src/main/resources/mapper/humanresource/hrempstate/HREmpStateMapper.xml
0 → 100644
浏览文件 @
7c799b07
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.humanresource.core.humanresource.mapper.HREmpStateMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"HREmpStateResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HREMPSTATEID`, t1.`HREMPSTATENAME`, t1.`JOBSTATE`, t1.`SHOWORDER`, t1.`STATECODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HREMPSTATE` t1 ) t1 where hrempstateid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"HREmpStateResultMap"
type=
"cn.ibizlab.humanresource.core.humanresource.domain.HREmpState"
autoMapping=
"true"
>
<id
property=
"hrempstateid"
column=
"hrempstateid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.humanresource.core.humanresource.filter.HREmpStateSearchContext"
resultMap=
"HREmpStateResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HREMPSTATEID`, t1.`HREMPSTATENAME`, t1.`JOBSTATE`, t1.`SHOWORDER`, t1.`STATECODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HREMPSTATE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HREMPSTATEID`, t1.`HREMPSTATENAME`, t1.`JOBSTATE`, t1.`SHOWORDER`, t1.`STATECODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HREMPSTATE` t1
]]>
</sql>
</mapper>
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
7c799b07
...
...
@@ -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
浏览文件 @
7c799b07
...
...
@@ -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/HREmployeeDTO.java
浏览文件 @
7c799b07
...
...
@@ -123,6 +123,225 @@ public class HREmployeeDTO extends DTOBase implements Serializable {
@JsonProperty
(
"age"
)
private
String
age
;
/**
* 属性 [ORGANIZATIONNAME]
*
*/
@JSONField
(
name
=
"organizationname"
)
@JsonProperty
(
"organizationname"
)
private
String
organizationname
;
/**
* 属性 [SEX]
*
*/
@JSONField
(
name
=
"sex"
)
@JsonProperty
(
"sex"
)
private
String
sex
;
/**
* 属性 [BLOODTYPE]
*
*/
@JSONField
(
name
=
"bloodtype"
)
@JsonProperty
(
"bloodtype"
)
private
String
bloodtype
;
/**
* 属性 [TELEPHONE]
*
*/
@JSONField
(
name
=
"telephone"
)
@JsonProperty
(
"telephone"
)
private
String
telephone
;
/**
* 属性 [MOBILE]
*
*/
@JSONField
(
name
=
"mobile"
)
@JsonProperty
(
"mobile"
)
private
String
mobile
;
/**
* 属性 [EMAIL]
*
*/
@JSONField
(
name
=
"email"
)
@JsonProperty
(
"email"
)
private
String
email
;
/**
* 属性 [MARRIAGE]
*
*/
@JSONField
(
name
=
"marriage"
)
@JsonProperty
(
"marriage"
)
private
String
marriage
;
/**
* 属性 [NATION]
*
*/
@JSONField
(
name
=
"nation"
)
@JsonProperty
(
"nation"
)
private
String
nation
;
/**
* 属性 [NATIVETYPE]
*
*/
@JSONField
(
name
=
"nativetype"
)
@JsonProperty
(
"nativetype"
)
private
String
nativetype
;
/**
* 属性 [NATIVE]
*
*/
@JSONField
(
name
=
"native"
)
@JsonProperty
(
"native"
)
private
String
native
;
/**
* 属性 [NATIVEADDRESS]
*
*/
@JSONField
(
name
=
"nativeaddress"
)
@JsonProperty
(
"nativeaddress"
)
private
String
nativeaddress
;
/**
* 属性 [BIRTHADDRESS]
*
*/
@JSONField
(
name
=
"birthaddress"
)
@JsonProperty
(
"birthaddress"
)
private
String
birthaddress
;
/**
* 属性 [POSTALADDRESS]
*
*/
@JSONField
(
name
=
"postaladdress"
)
@JsonProperty
(
"postaladdress"
)
private
String
postaladdress
;
/**
* 属性 [HOBBY]
*
*/
@JSONField
(
name
=
"hobby"
)
@JsonProperty
(
"hobby"
)
private
String
hobby
;
/**
* 属性 [HEALTH]
*
*/
@JSONField
(
name
=
"health"
)
@JsonProperty
(
"health"
)
private
String
health
;
/**
* 属性 [POLITICAL]
*
*/
@JSONField
(
name
=
"political"
)
@JsonProperty
(
"political"
)
private
String
political
;
/**
* 属性 [STARTWORKTIME]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"startworktime"
,
format
=
"yyyy-MM-dd"
)
@JsonProperty
(
"startworktime"
)
private
Timestamp
startworktime
;
/**
* 属性 [STARTORGTIME]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"startorgtime"
,
format
=
"yyyy-MM-dd"
)
@JsonProperty
(
"startorgtime"
)
private
Timestamp
startorgtime
;
/**
* 属性 [PHOTO]
*
*/
@JSONField
(
name
=
"photo"
)
@JsonProperty
(
"photo"
)
private
String
photo
;
/**
* 属性 [FIRSTDEGREE]
*
*/
@JSONField
(
name
=
"firstdegree"
)
@JsonProperty
(
"firstdegree"
)
private
String
firstdegree
;
/**
* 属性 [HIGHESTDEGREE]
*
*/
@JSONField
(
name
=
"highestdegree"
)
@JsonProperty
(
"highestdegree"
)
private
String
highestdegree
;
/**
* 属性 [TECHNICALTITLE]
*
*/
@JSONField
(
name
=
"technicaltitle"
)
@JsonProperty
(
"technicaltitle"
)
private
String
technicaltitle
;
/**
* 属性 [CERTIFICATES]
*
*/
@JSONField
(
name
=
"certificates"
)
@JsonProperty
(
"certificates"
)
private
String
certificates
;
/**
* 属性 [ENTRYTYPE]
*
*/
@JSONField
(
name
=
"entrytype"
)
@JsonProperty
(
"entrytype"
)
private
String
entrytype
;
/**
* 属性 [POLITICALTIME]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"politicaltime"
,
format
=
"yyyy-MM-dd"
)
@JsonProperty
(
"politicaltime"
)
private
Timestamp
politicaltime
;
/**
* 属性 [EMPSTATE]
*
*/
@JSONField
(
name
=
"empstate"
)
@JsonProperty
(
"empstate"
)
private
String
empstate
;
/**
* 属性 [JOBSTATE]
*
*/
@JSONField
(
name
=
"jobstate"
)
@JsonProperty
(
"jobstate"
)
private
String
jobstate
;
/**
* 设置 [EMPLOYEENAME]
...
...
@@ -172,6 +391,206 @@ public class HREmployeeDTO extends DTOBase implements Serializable {
this
.
modify
(
"birthday"
,
birthday
);
}
/**
* 设置 [SEX]
*/
public
void
setSex
(
String
sex
){
this
.
sex
=
sex
;
this
.
modify
(
"sex"
,
sex
);
}
/**
* 设置 [BLOODTYPE]
*/
public
void
setBloodtype
(
String
bloodtype
){
this
.
bloodtype
=
bloodtype
;
this
.
modify
(
"bloodtype"
,
bloodtype
);
}
/**
* 设置 [TELEPHONE]
*/
public
void
setTelephone
(
String
telephone
){
this
.
telephone
=
telephone
;
this
.
modify
(
"telephone"
,
telephone
);
}
/**
* 设置 [MOBILE]
*/
public
void
setMobile
(
String
mobile
){
this
.
mobile
=
mobile
;
this
.
modify
(
"mobile"
,
mobile
);
}
/**
* 设置 [EMAIL]
*/
public
void
setEmail
(
String
email
){
this
.
email
=
email
;
this
.
modify
(
"email"
,
email
);
}
/**
* 设置 [MARRIAGE]
*/
public
void
setMarriage
(
String
marriage
){
this
.
marriage
=
marriage
;
this
.
modify
(
"marriage"
,
marriage
);
}
/**
* 设置 [NATION]
*/
public
void
setNation
(
String
nation
){
this
.
nation
=
nation
;
this
.
modify
(
"nation"
,
nation
);
}
/**
* 设置 [NATIVETYPE]
*/
public
void
setNativetype
(
String
nativetype
){
this
.
nativetype
=
nativetype
;
this
.
modify
(
"nativetype"
,
nativetype
);
}
/**
* 设置 [NATIVE]
*/
public
void
setNative
(
String
native
){
this
.
native
=
native
;
this
.
modify
(
"native"
,
native
);
}
/**
* 设置 [NATIVEADDRESS]
*/
public
void
setNativeaddress
(
String
nativeaddress
){
this
.
nativeaddress
=
nativeaddress
;
this
.
modify
(
"nativeaddress"
,
nativeaddress
);
}
/**
* 设置 [BIRTHADDRESS]
*/
public
void
setBirthaddress
(
String
birthaddress
){
this
.
birthaddress
=
birthaddress
;
this
.
modify
(
"birthaddress"
,
birthaddress
);
}
/**
* 设置 [POSTALADDRESS]
*/
public
void
setPostaladdress
(
String
postaladdress
){
this
.
postaladdress
=
postaladdress
;
this
.
modify
(
"postaladdress"
,
postaladdress
);
}
/**
* 设置 [HOBBY]
*/
public
void
setHobby
(
String
hobby
){
this
.
hobby
=
hobby
;
this
.
modify
(
"hobby"
,
hobby
);
}
/**
* 设置 [HEALTH]
*/
public
void
setHealth
(
String
health
){
this
.
health
=
health
;
this
.
modify
(
"health"
,
health
);
}
/**
* 设置 [POLITICAL]
*/
public
void
setPolitical
(
String
political
){
this
.
political
=
political
;
this
.
modify
(
"political"
,
political
);
}
/**
* 设置 [STARTWORKTIME]
*/
public
void
setStartworktime
(
Timestamp
startworktime
){
this
.
startworktime
=
startworktime
;
this
.
modify
(
"startworktime"
,
startworktime
);
}
/**
* 设置 [STARTORGTIME]
*/
public
void
setStartorgtime
(
Timestamp
startorgtime
){
this
.
startorgtime
=
startorgtime
;
this
.
modify
(
"startorgtime"
,
startorgtime
);
}
/**
* 设置 [PHOTO]
*/
public
void
setPhoto
(
String
photo
){
this
.
photo
=
photo
;
this
.
modify
(
"photo"
,
photo
);
}
/**
* 设置 [FIRSTDEGREE]
*/
public
void
setFirstdegree
(
String
firstdegree
){
this
.
firstdegree
=
firstdegree
;
this
.
modify
(
"firstdegree"
,
firstdegree
);
}
/**
* 设置 [HIGHESTDEGREE]
*/
public
void
setHighestdegree
(
String
highestdegree
){
this
.
highestdegree
=
highestdegree
;
this
.
modify
(
"highestdegree"
,
highestdegree
);
}
/**
* 设置 [TECHNICALTITLE]
*/
public
void
setTechnicaltitle
(
String
technicaltitle
){
this
.
technicaltitle
=
technicaltitle
;
this
.
modify
(
"technicaltitle"
,
technicaltitle
);
}
/**
* 设置 [CERTIFICATES]
*/
public
void
setCertificates
(
String
certificates
){
this
.
certificates
=
certificates
;
this
.
modify
(
"certificates"
,
certificates
);
}
/**
* 设置 [ENTRYTYPE]
*/
public
void
setEntrytype
(
String
entrytype
){
this
.
entrytype
=
entrytype
;
this
.
modify
(
"entrytype"
,
entrytype
);
}
/**
* 设置 [POLITICALTIME]
*/
public
void
setPoliticaltime
(
Timestamp
politicaltime
){
this
.
politicaltime
=
politicaltime
;
this
.
modify
(
"politicaltime"
,
politicaltime
);
}
/**
* 设置 [EMPSTATE]
*/
public
void
setEmpstate
(
String
empstate
){
this
.
empstate
=
empstate
;
this
.
modify
(
"empstate"
,
empstate
);
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录