Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
e6f2ae94
Commit
e6f2ae94
authored
Jun 22, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询条件
parent
c2d0fe5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
156 additions
and
10 deletions
+156
-10
TEmployeeInfo.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
+6
-0
TEmployeeInfoMapper.java
...oud/plus/v1/yifu/archives/mapper/TEmployeeInfoMapper.java
+2
-2
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+148
-8
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
View file @
e6f2ae94
...
@@ -336,5 +336,11 @@ public class TEmployeeInfo extends BaseEntity {
...
@@ -336,5 +336,11 @@ public class TEmployeeInfo extends BaseEntity {
@Schema
(
description
=
"离职备注"
)
@Schema
(
description
=
"离职备注"
)
private
String
leaveRemark
;
private
String
leaveRemark
;
/**
* 通信地址
*/
@Schema
(
description
=
"通信地址"
)
private
String
contactAddress
;
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TEmployeeInfoMapper.java
View file @
e6f2ae94
...
@@ -36,9 +36,9 @@ import java.util.List;
...
@@ -36,9 +36,9 @@ import java.util.List;
@Mapper
@Mapper
public
interface
TEmployeeInfoMapper
extends
BaseMapper
<
TEmployeeInfo
>
{
public
interface
TEmployeeInfoMapper
extends
BaseMapper
<
TEmployeeInfo
>
{
IPage
<
TEmployeeInfo
>
getPage
(
Page
<
TEmployeeInfo
>
page
,
@Param
(
"
employeeInfo"
)
TEmployeeInfo
e
mployeeInfo
,
@Param
(
"sql"
)
String
sql
);
IPage
<
TEmployeeInfo
>
getPage
(
Page
<
TEmployeeInfo
>
page
,
@Param
(
"
tEmployeeInfo"
)
TEmployeeInfo
tE
mployeeInfo
,
@Param
(
"sql"
)
String
sql
);
List
<
TEmployeeInfo
>
getList
(
@Param
(
"
employeeInfo"
)
TEmployeeInfo
e
mployeeInfo
);
List
<
TEmployeeInfo
>
getList
(
@Param
(
"
tEmployeeInfo"
)
TEmployeeInfo
tE
mployeeInfo
);
int
updateEducationOfEmp
(
@Param
(
"education"
)
EmpEducationUpdateVo
education
);
int
updateEducationOfEmp
(
@Param
(
"education"
)
EmpEducationUpdateVo
education
);
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
e6f2ae94
...
@@ -72,6 +72,7 @@
...
@@ -72,6 +72,7 @@
<result
property=
"leaveTime"
column=
"LEAVE_TIME"
/>
<result
property=
"leaveTime"
column=
"LEAVE_TIME"
/>
<result
property=
"leaveReason"
column=
"LEAVE_REASON"
/>
<result
property=
"leaveReason"
column=
"LEAVE_REASON"
/>
<result
property=
"leaveRemark"
column=
"LEAVE_REMARK"
/>
<result
property=
"leaveRemark"
column=
"LEAVE_REMARK"
/>
<result
property=
"contactAddress"
column=
"CONTACT_ADDRESS"
/>
</resultMap>
</resultMap>
<sql
id=
"baseParam"
>
<sql
id=
"baseParam"
>
...
@@ -122,7 +123,8 @@
...
@@ -122,7 +123,8 @@
a.LEAVE_USER,
a.LEAVE_USER,
a.LEAVE_TIME,
a.LEAVE_TIME,
a.LEAVE_REASON,
a.LEAVE_REASON,
a.LEAVE_REMARK
a.LEAVE_REMARK,
a.CONTACT_ADDRESS
</sql>
</sql>
<update
id=
"updateEducationOfEmp"
>
<update
id=
"updateEducationOfEmp"
>
...
@@ -139,15 +141,153 @@
...
@@ -139,15 +141,153 @@
</update>
</update>
<sql
id=
"employeeInfo_where"
>
<sql
id=
"employeeInfo_where"
>
<if
test=
"
e
mployeeInfo != null"
>
<if
test=
"
tE
mployeeInfo != null"
>
<if
test=
"
employeeInfo.id != null and e
mployeeInfo.id.trim() != ''"
>
<if
test=
"
tEmployeeInfo.id != null and tE
mployeeInfo.id.trim() != ''"
>
AND a.
id = #{e
mployeeInfo.id}
AND a.
ID = #{tE
mployeeInfo.id}
</if>
</if>
<if
test=
"
employeeInfo.empName != null and employeeInfo.empNam
e.trim() != ''"
>
<if
test=
"
tEmployeeInfo.empCode != null and tEmployeeInfo.empCod
e.trim() != ''"
>
AND a.EMP_
NAME = #{employeeInfo.empNam
e}
AND a.EMP_
CODE = #{tEmployeeInfo.empCod
e}
</if>
</if>
<if
test=
"employeeInfo.empIdcard != null and employeeInfo.empIdcard.trim() != ''"
>
<if
test=
"tEmployeeInfo.empNatrue != null and tEmployeeInfo.empNatrue.trim() != ''"
>
AND a.EMP_IDCARD = #{employeeInfo.empIdcard}
AND a.EMP_NATRUE = #{tEmployeeInfo.empNatrue}
</if>
<if
test=
"tEmployeeInfo.empName != null and tEmployeeInfo.empName.trim() != ''"
>
AND a.EMP_NAME = #{tEmployeeInfo.empName}
</if>
<if
test=
"tEmployeeInfo.empIdcard != null and tEmployeeInfo.empIdcard.trim() != ''"
>
AND a.EMP_IDCARD = #{tEmployeeInfo.empIdcard}
</if>
<if
test=
"tEmployeeInfo.validityStart != null"
>
AND a.VALIDITY_START = #{tEmployeeInfo.validityStart}
</if>
<if
test=
"tEmployeeInfo.validityEnd != null"
>
AND a.VALIDITY_END = #{tEmployeeInfo.validityEnd}
</if>
<if
test=
"tEmployeeInfo.empSex != null and tEmployeeInfo.empSex.trim() != ''"
>
AND a.EMP_SEX = #{tEmployeeInfo.empSex}
</if>
<if
test=
"tEmployeeInfo.empBirthday != null"
>
AND a.EMP_BIRTHDAY = #{tEmployeeInfo.empBirthday}
</if>
<if
test=
"tEmployeeInfo.empAge != null"
>
AND a.EMP_AGE = #{tEmployeeInfo.empAge}
</if>
<if
test=
"tEmployeeInfo.empMarriStatus != null and tEmployeeInfo.empMarriStatus.trim() != ''"
>
AND a.EMP_MARRI_STATUS = #{tEmployeeInfo.empMarriStatus}
</if>
<if
test=
"tEmployeeInfo.empNational != null and tEmployeeInfo.empNational.trim() != ''"
>
AND a.EMP_NATIONAL = #{tEmployeeInfo.empNational}
</if>
<if
test=
"tEmployeeInfo.politicalStatus != null and tEmployeeInfo.politicalStatus.trim() != ''"
>
AND a.POLITICAL_STATUS = #{tEmployeeInfo.politicalStatus}
</if>
<if
test=
"tEmployeeInfo.empEmail != null and tEmployeeInfo.empEmail.trim() != ''"
>
AND a.EMP_EMAIL = #{tEmployeeInfo.empEmail}
</if>
<if
test=
"tEmployeeInfo.empPhone != null and tEmployeeInfo.empPhone.trim() != ''"
>
AND a.EMP_PHONE = #{tEmployeeInfo.empPhone}
</if>
<if
test=
"tEmployeeInfo.idProvince != null"
>
AND a.ID_PROVINCE = #{tEmployeeInfo.idProvince}
</if>
<if
test=
"tEmployeeInfo.idCity != null"
>
AND a.ID_CITY = #{tEmployeeInfo.idCity}
</if>
<if
test=
"tEmployeeInfo.idTown != null"
>
AND a.ID_TOWN = #{tEmployeeInfo.idTown}
</if>
<if
test=
"tEmployeeInfo.empRegisType != null and tEmployeeInfo.empRegisType.trim() != ''"
>
AND a.EMP_REGIS_TYPE = #{tEmployeeInfo.empRegisType}
</if>
<if
test=
"tEmployeeInfo.fileProvince != null"
>
AND a.FILE_PROVINCE = #{tEmployeeInfo.fileProvince}
</if>
<if
test=
"tEmployeeInfo.fileCity != null"
>
AND a.FILE_CITY = #{tEmployeeInfo.fileCity}
</if>
<if
test=
"tEmployeeInfo.fileTown != null"
>
AND a.FILE_TOWN = #{tEmployeeInfo.fileTown}
</if>
<if
test=
"tEmployeeInfo.isCollege != null"
>
AND a.IS_COLLEGE = #{tEmployeeInfo.isCollege}
</if>
<if
test=
"tEmployeeInfo.hignEducation != null and tEmployeeInfo.hignEducation.trim() != ''"
>
AND a.HIGN_EDUCATION = #{tEmployeeInfo.hignEducation}
</if>
<if
test=
"tEmployeeInfo.school != null and tEmployeeInfo.school.trim() != ''"
>
AND a.SCHOOL = #{tEmployeeInfo.school}
</if>
<if
test=
"tEmployeeInfo.major != null and tEmployeeInfo.major.trim() != ''"
>
AND a.MAJOR = #{tEmployeeInfo.major}
</if>
<if
test=
"tEmployeeInfo.admissionDate != null"
>
AND a.ADMISSION_DATE = #{tEmployeeInfo.admissionDate}
</if>
<if
test=
"tEmployeeInfo.gradutionDate != null"
>
AND a.GRADUTION_DATE = #{tEmployeeInfo.gradutionDate}
</if>
<if
test=
"tEmployeeInfo.remark != null and tEmployeeInfo.remark.trim() != ''"
>
AND a.REMARK = #{tEmployeeInfo.remark}
</if>
<if
test=
"tEmployeeInfo.fileSource != null and tEmployeeInfo.fileSource.trim() != ''"
>
AND a.FILE_SOURCE = #{tEmployeeInfo.fileSource}
</if>
<if
test=
"tEmployeeInfo.status != null"
>
AND a.STATUS = #{tEmployeeInfo.status}
</if>
<if
test=
"tEmployeeInfo.fileStatus != null"
>
AND a.FILE_STATUS = #{tEmployeeInfo.fileStatus}
</if>
<if
test=
"tEmployeeInfo.projectNum != null"
>
AND a.PROJECT_NUM = #{tEmployeeInfo.projectNum}
</if>
<if
test=
"tEmployeeInfo.contractStatus != null"
>
AND a.CONTRACT_STATUS = #{tEmployeeInfo.contractStatus}
</if>
<if
test=
"tEmployeeInfo.insuranceStatus != null"
>
AND a.INSURANCE_STATUS = #{tEmployeeInfo.insuranceStatus}
</if>
<if
test=
"tEmployeeInfo.socialStatus != null"
>
AND a.SOCIAL_STATUS = #{tEmployeeInfo.socialStatus}
</if>
<if
test=
"tEmployeeInfo.fundStatus != null"
>
AND a.FUND_STATUS = #{tEmployeeInfo.fundStatus}
</if>
<if
test=
"tEmployeeInfo.salaryStatus != null"
>
AND a.SALARY_STATUS = #{tEmployeeInfo.salaryStatus}
</if>
<if
test=
"tEmployeeInfo.deleteFlag != null and tEmployeeInfo.deleteFlag.trim() != ''"
>
AND a.DELETE_FLAG = #{tEmployeeInfo.deleteFlag}
</if>
<if
test=
"tEmployeeInfo.createBy != null and tEmployeeInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{tEmployeeInfo.createBy}
</if>
<if
test=
"tEmployeeInfo.createName != null and tEmployeeInfo.createName.trim() != ''"
>
AND a.CREATE_NAME = #{tEmployeeInfo.createName}
</if>
<if
test=
"tEmployeeInfo.createTime != null"
>
AND a.CREATE_TIME = #{tEmployeeInfo.createTime}
</if>
<if
test=
"tEmployeeInfo.updateBy != null and tEmployeeInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{tEmployeeInfo.updateBy}
</if>
<if
test=
"tEmployeeInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{tEmployeeInfo.updateTime}
</if>
<if
test=
"tEmployeeInfo.leaveUser != null and tEmployeeInfo.leaveUser.trim() != ''"
>
AND a.LEAVE_USER = #{tEmployeeInfo.leaveUser}
</if>
<if
test=
"tEmployeeInfo.leaveTime != null"
>
AND a.LEAVE_TIME = #{tEmployeeInfo.leaveTime}
</if>
<if
test=
"tEmployeeInfo.leaveReason != null and tEmployeeInfo.leaveReason.trim() != ''"
>
AND a.LEAVE_REASON = #{tEmployeeInfo.leaveReason}
</if>
<if
test=
"tEmployeeInfo.leaveRemark != null and tEmployeeInfo.leaveRemark.trim() != ''"
>
AND a.LEAVE_REMARK = #{tEmployeeInfo.leaveRemark}
</if>
<if
test=
"tEmployeeInfo.contactAddress != null and tEmployeeInfo.contactAddress.trim() != ''"
>
AND a.CONTACT_ADDRESS = #{tEmployeeInfo.contactAddress}
</if>
</if>
</if>
</if>
</sql>
</sql>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment