修饰审核--去除冗余代码、修改SQL

This commit is contained in:
syruan 2024-11-14 14:58:40 +08:00
parent 49e3cd8cd8
commit fa5bd277be
2 changed files with 3 additions and 13 deletions

View File

@ -131,17 +131,7 @@ public class RepairAuditDetailsController extends BaseController {
//--------------------TOP--COPY--------------------------BUTTON--GENDER---------------
//---------------------------------------------------------------------------------
/** /**

View File

@ -116,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND (locate(#{keyword}, su.nick_name) > 0 AND (locate(#{keyword}, su.nick_name) > 0
or locate(#{keyword}, tk.CODE) > 0 or locate(#{keyword}, tk.CODE) > 0
or locate(#{keyword}, bui.unit_name) > 0 or locate(#{keyword}, bui.unit_name) > 0
or locate(#{keyword}, bpl.lot_name) > 0) or locate(#{keyword}, bpl.pro_name) > 0)
</if> </if>
<if test="backUnit != null and backUnit != ''"> <if test="backUnit != null and backUnit != ''">
and bui.unit_id = #{backUnit} and bui.unit_id = #{backUnit}
@ -125,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and tk.task_status = #{taskStatus} and tk.task_status = #{taskStatus}
</if> </if>
<if test="backPro != null and backPro != ''"> <if test="backPro != null and backPro != ''">
and bpl.lot_id = #{backPro} and bpl.pro_id = #{backPro}
</if> </if>
<if test="type != null and type != ''"> <if test="type != null and type != ''">
and mt1.type_id = #{type} and mt1.type_id = #{type}