|
@@ -505,8 +505,11 @@
|
|
|
<if test="major!=null and major.nodeId!=null">
|
|
|
and wfni.node_id = #{major.nodeId}
|
|
|
</if>
|
|
|
- <if test="major!=null and major.clientName!=null and major.clientName!=''">
|
|
|
- and wfni.client_name like concat('%',#{major.clientName},'%')
|
|
|
+ <if test="major!=null and major.clienteleName!=null and major.clienteleName!=''">
|
|
|
+ and cc1.name like concat('%',#{major.clienteleName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="major!=null and major.clienteleSubName!=null and major.clienteleSubName!=''">
|
|
|
+ and cc2.name like concat('%',#{major.clienteleSubName},'%')
|
|
|
</if>
|
|
|
<if test="major!=null and major.clientManagerId!=null ">
|
|
|
and m.client_manager_id = #{major.clientManagerId}
|
|
@@ -573,12 +576,18 @@
|
|
|
<if test="major!=null and major.nodeId!=null">
|
|
|
and wfni.node_id = #{major.nodeId}
|
|
|
</if>
|
|
|
- <if test="major!=null and major.clientName!=null and major.clientName!=''">
|
|
|
- and wfni.client_name like concat('%',#{major.clientName},'%')
|
|
|
+ <if test="major!=null and major.clienteleName!=null and major.clienteleName!=''">
|
|
|
+ and cc1.name like concat('%',#{major.clienteleName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="major!=null and major.clienteleSubName!=null and major.clienteleSubName!=''">
|
|
|
+ and cc2.name like concat('%',#{major.clienteleSubName},'%')
|
|
|
</if>
|
|
|
<if test="major!=null and major.principalId!=null ">
|
|
|
and m.principal_id = #{major.principalId}
|
|
|
</if>
|
|
|
+ <if test="major!=null and major.clientManagerId!=null ">
|
|
|
+ and m.client_manager_id = #{major.clientManagerId}
|
|
|
+ </if>
|
|
|
<if test="major!=null and major.departmentId!=null ">
|
|
|
and m.department_id = #{major.departmentId}
|
|
|
</if>
|
|
@@ -622,8 +631,11 @@
|
|
|
<if test="major!=null and major.nodeId!=null">
|
|
|
and wfni.node_id = #{major.nodeId}
|
|
|
</if>
|
|
|
- <if test="major!=null and major.clientName!=null and major.clientName!=''">
|
|
|
- and wfni.client_name like concat('%',#{major.clientName},'%')
|
|
|
+ <if test="major!=null and major.clienteleName!=null and major.clienteleName!=''">
|
|
|
+ and cc1.name like concat('%',#{major.clienteleName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="major!=null and major.clienteleSubName!=null and major.clienteleSubName!=''">
|
|
|
+ and cc2.name like concat('%',#{major.clienteleSubName},'%')
|
|
|
</if>
|
|
|
<if test="major!=null and major.principalId!=null ">
|
|
|
and m.principal_id = #{major.principalId}
|
|
@@ -631,6 +643,13 @@
|
|
|
<if test="major!=null and major.businessObjectType!=null and major.businessObjectType!=''">
|
|
|
and m.business_object_type = #{major.businessObjectType}
|
|
|
</if>
|
|
|
+ <if test="major!=null and major.userIds!=null and major.userIds.size!=0">
|
|
|
+ or
|
|
|
+ m.client_manager_id in
|
|
|
+ <foreach collection="
|
|
|
+ major.userIds" open="(" close=")" separator="," item="userId">#{userId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
order by wfni.currentNodeId DESC
|
|
|
</select>
|
|
|
|
|
@@ -668,8 +687,11 @@
|
|
|
<if test="major!=null and major.nodeId!=null">
|
|
|
and wfni.node_id = #{major.nodeId}
|
|
|
</if>
|
|
|
- <if test="major!=null and major.clientName!=null and major.clientName!=''">
|
|
|
- and wfni.client_name like concat('%',#{major.clientName},'%')
|
|
|
+ <if test="major!=null and major.clienteleName!=null and major.clienteleName!=''">
|
|
|
+ and cc1.name like concat('%',#{major.clienteleName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="major!=null and major.clienteleSubName!=null and major.clienteleSubName!=''">
|
|
|
+ and cc2.name like concat('%',#{major.clienteleSubName},'%')
|
|
|
</if>
|
|
|
<if test="major!=null and major.principalId!=null ">
|
|
|
and m.principal_id = #{major.principalId}
|
|
@@ -677,6 +699,13 @@
|
|
|
<if test="major!=null and major.businessObjectType!=null and major.businessObjectType!=''">
|
|
|
and m.business_object_type = #{major.businessObjectType}
|
|
|
</if>
|
|
|
+ <if test="major!=null and major.userIds!=null and major.userIds.size!=0">
|
|
|
+ or
|
|
|
+ m.client_manager_id in
|
|
|
+ <foreach collection="
|
|
|
+ major.userIds" open="(" close=")" separator="," item="userId">#{userId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
order by wfni.currentNodeId DESC
|
|
|
</select>
|
|
|
|