|
|
@ -165,19 +165,8 @@ |
|
|
|
<if test="bzr != null and bzr != '' and bzr != 'null'"> |
|
|
|
<if test="bzr != null and bzr != '' and bzr != 'null'"> |
|
|
|
and bzr like concat('%',#{bzr},'%') |
|
|
|
and bzr like concat('%',#{bzr},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'"> |
|
|
|
|
|
|
|
and (comp_code in |
|
|
|
|
|
|
|
<foreach collection="companyCodes" index="index" item="companyCode" separator="," open="(" close=")"> |
|
|
|
|
|
|
|
#{companyCode} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
or comp_code is null or comp_code = '' |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'"> |
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode != '88'"> |
|
|
|
and comp_code = #{companyCode} |
|
|
|
and (comp_code = #{companyCode} or comp_code is null or comp_code = '') |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and companyCode != '99' and companyCode == '88'"> |
|
|
|
|
|
|
|
and (comp_code is null or comp_code = '') |
|
|
|
|
|
|
|
</if> |
|
|
|
</if> |
|
|
|
GROUP BY uuid having min(create_date) |
|
|
|
GROUP BY uuid having min(create_date) |
|
|
|
ORDER BY create_date DESC |
|
|
|
ORDER BY create_date DESC |
|
|
|