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
6d784999
Commit
6d784999
authored
Apr 18, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-档案更新优化
parent
40c336a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
106 deletions
+23
-106
TEmployeeProjectMapper.xml
...-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
+23
-106
No files found.
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
View file @
6d784999
...
@@ -636,112 +636,29 @@
...
@@ -636,112 +636,29 @@
<update
id=
"updateExcelEmpProject"
parameterType=
"java.util.List"
>
<update
id=
"updateExcelEmpProject"
parameterType=
"java.util.List"
>
update t_employee_project
update t_employee_project
<trim
prefix=
"set"
suffixOverrides=
","
>
<set>
<trim
prefix=
"EMP_LABEL =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
separator=
","
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
EMP_LABEL = COALESCE(#{i.empLabel}, EMP_LABEL),
<if
test=
"i.empLabel!=null"
>
EMP_NATRUE = COALESCE(#{i.empNatrue}, EMP_NATRUE),
when ID=#{i.id} then #{i.empLabel}
EMP_IDCARD = COALESCE(#{i.empIdcard}, EMP_IDCARD),
</if>
PROJECT_STATUS = 0,
</foreach>
UPDATE_TIME = now(),
</trim>
UPDATE_BY = COALESCE(#{i.updateBy}, UPDATE_BY),
<trim
prefix=
"EMP_NATRUE =case"
suffix=
"end,"
>
DEPT_NO = COALESCE(#{i.deptNo}, DEPT_NO),
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
CONTRACT_TYPE = COALESCE(#{i.contractType}, CONTRACT_TYPE),
<if
test=
"i.empNatrue!=null"
>
WORKING_HOURS = COALESCE(#{i.workingHours}, WORKING_HOURS),
when ID=#{i.id} then #{i.empNatrue}
POST = COALESCE(#{i.post}, POST),
</if>
TRY_PERIOD = COALESCE(#{i.tryPeriod}, TRY_PERIOD),
</foreach>
ENJOIN_DATE = COALESCE(#{i.enjoinDate}, ENJOIN_DATE),
</trim>
BANK_NAME = COALESCE(#{i.bankName}, BANK_NAME),
<trim
prefix=
"EMP_IDCARD =case"
suffix=
"end,"
>
BANK_NO = COALESCE(#{i.bankNo}, BANK_NO),
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
BANK_SUB_NAME = COALESCE(#{i.bankSubName}, BANK_SUB_NAME)
<if
test=
"i.empIdcard!=null"
>
when ID=#{i.id} then #{i.empIdcard}
</if>
</foreach>
</trim>
<trim
prefix=
"PROJECT_STATUS =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
when ID=#{i.id} then 0
</foreach>
</foreach>
</trim>
</set>
<trim
prefix=
"UPDATE_TIME =case"
suffix=
"end,"
>
where id in
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<foreach
item=
"i"
index=
"index"
collection=
"list"
open=
"("
when ID=#{i.id} then now()
separator=
","
close=
")"
>
</foreach>
#{i.id}
</trim>
<trim
prefix=
"UPDATE_BY =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.updateBy!=null"
>
when ID=#{i.id} then #{i.updateBy}
</if>
</foreach>
</trim>
<trim
prefix=
"DEPT_NO =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.deptNo!=null"
>
when ID=#{i.id} then #{i.deptNo}
</if>
</foreach>
</trim>
<trim
prefix=
"CONTRACT_TYPE =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.contractType!=null"
>
when ID=#{i.id} then #{i.contractType}
</if>
</foreach>
</trim>
<trim
prefix=
"WORKING_HOURS =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.workingHours!=null"
>
when ID=#{i.id} then #{i.workingHours}
</if>
</foreach>
</trim>
<trim
prefix=
"POST =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.post!=null"
>
when ID=#{i.id} then #{i.post}
</if>
</foreach>
</trim>
<trim
prefix=
"TRY_PERIOD =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.tryPeriod!=null"
>
when ID=#{i.id} then #{i.tryPeriod}
</if>
</foreach>
</trim>
<trim
prefix=
"ENJOIN_DATE =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.enjoinDate!=null"
>
when ID=#{i.id} then #{i.enjoinDate}
</if>
</foreach>
</trim>
<trim
prefix=
"BANK_NAME =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.bankName!=null"
>
when ID=#{i.id} then #{i.bankName}
</if>
</foreach>
</trim>
<trim
prefix=
"BANK_NO =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.bankNo!=null"
>
when ID=#{i.id} then #{i.bankNo}
</if>
</foreach>
</trim>
<trim
prefix=
"BANK_SUB_NAME =case"
suffix=
"end,"
>
<foreach
collection=
"list"
item=
"i"
index=
"index"
>
<if
test=
"i.bankSubName!=null"
>
when ID=#{i.id} then #{i.bankSubName}
</if>
</foreach>
</trim>
</trim>
where
<foreach
collection=
"list"
separator=
"or"
item=
"i"
index=
"index"
>
ID=#{i.id}
</foreach>
</foreach>
</update>
</update>
<insert
id=
"insertExcelEmpProject"
parameterType=
"java.util.List"
>
<insert
id=
"insertExcelEmpProject"
parameterType=
"java.util.List"
>
...
...
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