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
63387ef6
Commit
63387ef6
authored
Oct 23, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-社保自动化相关提交
parent
ab7723bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
5 deletions
+94
-5
TDispatchInfoPreMapper.xml
...-biz/src/main/resources/mapper/TDispatchInfoPreMapper.xml
+94
-5
No files found.
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoPreMapper.xml
View file @
63387ef6
...
...
@@ -131,7 +131,6 @@
a.WORK_INJURY_CARDINAL,
a.BIRTH_CARDINAL,
a.PAYMENT_TYPE,
a.CONTRACT_STATUS,
a.CONTRACT_ID,
a.CREATE_BY,
a.UPDATE_BY,
...
...
@@ -141,7 +140,7 @@
a.DELETE_FLAG,error_info,error_time,a.DISPATCHER_ID,a.error_back_info,a.position,SOCIAL_FUND_ID,a.phone,
a.SOCIAL_PROVINCE_ID,a.SOCIAL_CITY_ID,a.SOCIAL_TOWN_ID
</sql>
<sql
id=
"tDispatchInfoPre
_where"
>
<sql
id=
"tDispatchInfoPre_other
_where"
>
<if
test=
"tDispatchInfoPre != null"
>
<if
test=
"tDispatchInfoPre.id != null and tDispatchInfoPre.id.trim() != ''"
>
AND a.ID = #{tDispatchInfoPre.id}
...
...
@@ -226,15 +225,104 @@
</if>
</if>
</sql>
<sql
id=
"tDispatchInfoPre_where"
>
<if
test=
"tDispatchInfoPre != null"
>
<if
test=
"tDispatchInfoPre.id != null and tDispatchInfoPre.id.trim() != ''"
>
AND a.ID = #{tDispatchInfoPre.id}
</if>
<if
test=
"tDispatchInfoPre.idList != null and tDispatchInfoPre.idList.size() > 0"
>
and a.id in
<foreach
collection=
"tDispatchInfoPre.idList"
item=
"param"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{param}
</foreach>
</if>
<if
test=
"tDispatchInfoPre.statusList != null and tDispatchInfoPre.statusList.size() > 0"
>
AND a.process_status in
<foreach
item=
"item"
index=
"index"
collection=
"tDispatchInfoPre.statusList"
open=
"("
separator=
","
close=
")"
>
'${item}'
</foreach>
</if>
<if
test=
"tDispatchInfoPre.empName != null and tDispatchInfoPre.empName.trim() != ''"
>
AND a.EMP_NAME like CONCAT('%',#{tDispatchInfoPre.empName},'%')
</if>
<if
test=
"tDispatchInfoPre.empIdcard != null and tDispatchInfoPre.empIdcard.trim() != ''"
>
AND a.EMP_IDCARD = #{tDispatchInfoPre.empIdcard}
</if>
<if
test=
"tDispatchInfoPre.processStatus != null and tDispatchInfoPre.processStatus.trim() != ''"
>
AND a.PROCESS_STATUS = #{tDispatchInfoPre.processStatus}
</if>
<if
test=
"tDispatchInfoPre.deptName != null and tDispatchInfoPre.deptName.trim() != ''"
>
AND a.DEPT_NAME like CONCAT('%',#{tDispatchInfoPre.deptName},'%')
</if>
<if
test=
"tDispatchInfoPre.deptNo != null and tDispatchInfoPre.deptNo.trim() != ''"
>
AND a.DEPT_NO = #{tDispatchInfoPre.deptNo}
</if>
<if
test=
"tDispatchInfoPre.providentHouseholdName != null and tDispatchInfoPre.providentHouseholdName.trim() != ''"
>
AND a.PROVIDENT_HOUSEHOLD_NAME = #{tDispatchInfoPre.providentHouseholdName}
</if>
<if
test=
"tDispatchInfoPre.socialHouseholdName != null and tDispatchInfoPre.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfoPre.socialHouseholdName}
</if>
<if
test=
"tDispatchInfoPre.typeSub != null and tDispatchInfoPre.typeSub.trim() != ''"
>
AND a.TYPE_SUB = #{tDispatchInfoPre.typeSub}
</if>
<if
test=
"tDispatchInfoPre.customerUsername != null and tDispatchInfoPre.customerUsername.trim() != ''"
>
AND a.CUSTOMER_USERNAME = #{tDispatchInfoPre.customerUsername}
</if>
<if
test=
"tDispatchInfoPre.customerUserLoginName != null and tDispatchInfoPre.customerUserLoginName.trim() != ''"
>
AND a.CUSTOMER_USER_LOGIN_NAME = #{tDispatchInfoPre.customerUsername.customerUserLoginName}
</if>
<if
test=
"tDispatchInfoPre.expectedCollectionTime != null"
>
AND DATE_FORMAT(a.EXPECTED_COLLECTION_TIME,'%Y-%m-%d') = CURDATE()
</if>
<if
test=
"tDispatchInfoPre.dispatcherTimeStart != null"
>
AND DATE_FORMAT(a.EXPECTED_COLLECTION_TIME,'%Y-%m-%d')
<![CDATA[ >= ]]>
#{tDispatchInfoPre.dispatcherTimeStart}
</if>
<if
test=
"tDispatchInfoPre.dispatcherTimeEnd != null"
>
and DATE_FORMAT(a.EXPECTED_COLLECTION_TIME,'%Y-%m-%d')
<![CDATA[ <= ]]>
#{tDispatchInfoPre.dispatcherTimeEnd}
</if>
<if
test=
"tDispatchInfoPre.expectedConfirmTime != null"
>
AND a.EXPECTED_CONFIRM_TIME = #{tDispatchInfoPre.expectedConfirmTime}
</if>
<if
test=
"tDispatchInfoPre.isAutoDis != null and tDispatchInfoPre.isAutoDis.trim() != ''"
>
AND a.IS_AUTO_DIS = #{tDispatchInfoPre.isAutoDis}
</if>
<if
test=
"tDispatchInfoPre.isCreateDate != null and tDispatchInfoPre.isCreateDate.trim() != ''"
>
AND a.IS_CREATE_DATE = #{tDispatchInfoPre.isCreateDate}
</if>
<if
test=
"tDispatchInfoPre.contractStatus != null and tDispatchInfoPre.contractStatus.trim() != ''"
>
AND if(b.id is not null,'0','1') = #{tDispatchInfoPre.contractStatus}
</if>
<if
test=
"tDispatchInfoPre.failType != null and tDispatchInfoPre.failType.trim() != ''"
>
AND a.error_info is not null
</if>
<if
test=
"tDispatchInfoPre.authSql != null and tDispatchInfoPre.authSql.trim() != ''"
>
${tDispatchInfoPre.authSql}
</if>
<if
test=
"tDispatchInfoPre.deptNoList != null and tDispatchInfoPre.deptNoList.size > 0"
>
AND a.dept_no in
<foreach
item=
"idStr"
index=
"index"
collection=
"tDispatchInfoPre.deptNoList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
</if>
</sql>
<!--tDispatchInfoPre简单分页查询-->
<select
id=
"getTDispatchInfoPrePage"
resultMap=
"tDispatchInfoPreMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
if(b.id is not null,'0','1') as CONTRACT_STATUS
FROM t_dispatch_info_pre a
left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO
<where>
a.DELETE_FLAG = '0'
<include
refid=
"tDispatchInfoPre_where"
/>
</where>
group by a.id
order by a.create_time desc
</select>
...
...
@@ -244,7 +332,7 @@
FROM t_dispatch_info_pre a
<where>
1=1
<include
refid=
"tDispatchInfoPre_where"
/>
<include
refid=
"tDispatchInfoPre_
other_
where"
/>
</where>
</select>
...
...
@@ -257,7 +345,7 @@
a.SOCIAL_HOUSEHOLD_NAME,
a.RECORD_BASE,
DATE_FORMAT(a.join_leave_date,'%Y-%m-%d') as join_leave_date,
if(
a.CONTRACT_STATUS = '0','已签署',if(a.CONTRACT_STATUS = '1','未签署','')
) as CONTRACT_STATUS,
if(
b.id is not null,'已签署','未签署'
) as CONTRACT_STATUS,
CASE WHEN a.process_status ='0' THEN "待确认"
WHEN a.process_status='1' THEN "待派单"
WHEN a.process_status ='2' THEN "派单失败"
...
...
@@ -272,6 +360,7 @@
a.expected_collection_time,
a.customer_username
FROM t_dispatch_info_pre a
left join view_contract b on a.EMP_IDCARD = b.EMP_IDCARD and a.DEPT_NO = b.DEPT_NO
<where>
a.DELETE_FLAG = '0'
<include
refid=
"tDispatchInfoPre_where"
/>
...
...
@@ -289,7 +378,7 @@
FROM t_dispatch_info_pre a
<where>
a.DELETE_FLAG = '0'
<include
refid=
"tDispatchInfoPre_where"
/>
<include
refid=
"tDispatchInfoPre_
other_
where"
/>
</where>
order by a.create_time desc
limit 0,2000
...
...
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