|
@@ -20,9 +20,9 @@
|
|
|
tbs.id as serviceId,
|
|
|
tbs.name as serviceName,
|
|
|
tbs.type as serviceType,
|
|
|
- sc.id as customId,
|
|
|
- sc.type as customType,
|
|
|
- IFNULL(sc.name,'--') as customName,
|
|
|
+ IFNULL(sc.id, sca.id) as customId,
|
|
|
+ IFNULL(sc.type, sca.type) as customType,
|
|
|
+ IFNULL(sc.name, IFNULL(sca.name, '--')) as customName,
|
|
|
tfcfe.create_id as createId,
|
|
|
su.real_name as createRealName,
|
|
|
tfcfe.flow_id as flowId,
|
|
@@ -57,6 +57,8 @@
|
|
|
tbs.id = tbda.service_id
|
|
|
left join sys_custom sc on
|
|
|
sc.id = tbc.custom_id
|
|
|
+ left join sys_custom sca on
|
|
|
+ sca.id = tbda.apply_custom_id
|
|
|
left join t_b_ding tbd on
|
|
|
tbd.id = tbda.ding_id
|
|
|
left join sys_user su on
|
|
@@ -84,7 +86,7 @@
|
|
|
and ss.id = #{supplierId}
|
|
|
</if>
|
|
|
<if test="customName != null and customName != ''">
|
|
|
- and sc.name like concat('%', #{customName}, '%')
|
|
|
+ and (sc.name like concat('%', #{customName}, '%') or sca.name like concat('%', #{customName}, '%'))
|
|
|
</if>
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
and (tbda.apply_time <![CDATA[ >= ]]> #{startTime} and tbda.apply_time <![CDATA[ <= ]]> #{endTime})
|
|
@@ -142,9 +144,9 @@
|
|
|
tbs.id as serviceId,
|
|
|
tbs.name as serviceName,
|
|
|
tbs.type as serviceType,
|
|
|
- sc.id as customId,
|
|
|
- sc.type as customType,
|
|
|
- IFNULL(sc.name,'--') as customName,
|
|
|
+ IFNULL(sc.id, sca.id) as customId,
|
|
|
+ IFNULL(sc.type, sca.type) as customType,
|
|
|
+ IFNULL(sc.name, IFNULL(sca.name, '--')) as customName,
|
|
|
tfcfe.create_id as createId,
|
|
|
su.real_name as createRealName,
|
|
|
tfcfe.flow_process_var as flowProcessVar,
|
|
@@ -190,6 +192,8 @@
|
|
|
tbs.id = tbda.service_id
|
|
|
left join sys_custom sc on
|
|
|
sc.id = tbc.custom_id
|
|
|
+ left join sys_custom sca on
|
|
|
+ sca.id = tbda.apply_custom_id
|
|
|
left join t_b_ding tbd on
|
|
|
tbd.id = tbda.ding_id
|
|
|
left join sys_user su on
|
|
@@ -217,7 +221,7 @@
|
|
|
and tbda.approve = #{dingExceptionApprove}
|
|
|
</if>
|
|
|
<if test="customName != null and customName != ''">
|
|
|
- and sc.name like concat('%', #{customName}, '%')
|
|
|
+ and (sc.name like concat('%', #{customName}, '%') or sca.name like concat('%', #{customName}, '%'))
|
|
|
</if>
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
and (tbda.apply_time <![CDATA[ >= ]]> #{startTime} and tbda.apply_time <![CDATA[ <= ]]> #{endTime})
|