|
@@ -153,6 +153,9 @@
|
|
|
<if test="userName != null and userName != ''">
|
|
<if test="userName != null and userName != ''">
|
|
|
AND u.name LIKE CONCAT('%', #{userName}, '%')
|
|
AND u.name LIKE CONCAT('%', #{userName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="(submitterName != null and submitterName != '') or (submitterId != null and submitterId != '')">
|
|
|
|
|
+ AND (u.id = #{submitterId} OR u.name LIKE CONCAT('%', #{submitterName}, '%'))
|
|
|
|
|
+ </if>
|
|
|
<if test="officeId == '' and officeName!=null and officeName!=''">
|
|
<if test="officeId == '' and officeName!=null and officeName!=''">
|
|
|
AND o.name like concat('%',#{officeName},'%')
|
|
AND o.name like concat('%',#{officeName},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -211,6 +214,9 @@
|
|
|
<if test="userName != null and userName != ''">
|
|
<if test="userName != null and userName != ''">
|
|
|
AND u.name LIKE CONCAT('%', #{userName}, '%')
|
|
AND u.name LIKE CONCAT('%', #{userName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="(submitterName != null and submitterName != '') or (submitterId != null and submitterId != '')">
|
|
|
|
|
+ AND (u.id = #{submitterId} OR u.name LIKE CONCAT('%', #{submitterName}, '%'))
|
|
|
|
|
+ </if>
|
|
|
|
|
|
|
|
<if test="officeId == '' and officeName!=null and officeName!=''">
|
|
<if test="officeId == '' and officeName!=null and officeName!=''">
|
|
|
AND o.name like concat('%',#{officeName},'%')
|
|
AND o.name like concat('%',#{officeName},'%')
|