bug-预报废审核列表
This commit is contained in:
parent
244c850889
commit
7426badbf3
|
|
@ -59,6 +59,14 @@ public class ScrapApplyDetailsVO {
|
|||
*/
|
||||
@Excel(name = "维修单号",sort = 6)
|
||||
private String repairNum;
|
||||
/**
|
||||
* 单位id
|
||||
*/
|
||||
private String unitId;
|
||||
/**
|
||||
* 工程id
|
||||
*/
|
||||
private String projectId;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
|
|
|
|||
|
|
@ -428,7 +428,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
tk.CODE scrapNum,
|
||||
tk.task_status taskStatus,
|
||||
dic.NAME taskStatusName,
|
||||
bui.unit_id unitId,
|
||||
bui.unit_name unitName,
|
||||
bpl.lot_id projectId,
|
||||
bpl.lot_name projectName,
|
||||
su.nick_name createBy,
|
||||
tk.create_time createTime,
|
||||
|
|
@ -464,18 +466,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
WHERE
|
||||
sad.scrap_source IN ( '1', '2' )
|
||||
AND tk.task_type IN ('20' , '21')
|
||||
<if test="keyword != null and keyword != ''">
|
||||
AND (locate(#{keyword}, tk.create_by) > 0
|
||||
or locate(#{keyword}, tk.CODE) > 0
|
||||
or locate(#{keyword}, bui.unit_name) > 0
|
||||
or locate(#{keyword}, bpl.lot_name) > 0
|
||||
or locate(#{keyword}, tk1.CODE) > 0)
|
||||
<if test="keywords != null and keywords != ''">
|
||||
AND (locate(#{keywords}, tk.create_by) > 0
|
||||
or locate(#{keywords}, tk.CODE) > 0
|
||||
or locate(#{keywords}, bui.unit_name) > 0
|
||||
or locate(#{keywords}, bpl.lot_name) > 0
|
||||
or locate(#{keywords}, tk1.CODE) > 0)
|
||||
</if>
|
||||
<if test="backUnit != null and backUnit != ''">
|
||||
and bui.unit_id = #{backUnit}
|
||||
</if>
|
||||
<if test="repairStatus != null and repairStatus != ''">
|
||||
and tk.task_status = #{repairStatus}
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
and tk.task_status = #{taskStatus}
|
||||
</if>
|
||||
<if test="taskIdList != null and taskIdList != ''">
|
||||
and tk.task_id in #{taskIdList}
|
||||
|
|
@ -483,14 +485,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="backPro != null and backPro != ''">
|
||||
and bpl.lot_id = #{backPro}
|
||||
</if>
|
||||
<if test="scrapSource != null and scrapSource != ''">
|
||||
and sad.scrap_source = #{scrapSource}
|
||||
</if>
|
||||
<if test="type != null and type != ''">
|
||||
and mt1.type_id = #{type}
|
||||
</if>
|
||||
<if test="backCode != null and backCode != ''">
|
||||
and locate(#{backCode}, tk.code) > 0
|
||||
</if>
|
||||
<if test="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''">
|
||||
and tk.create_time between #{params.beginTime} and #{params.endTime}
|
||||
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
||||
and DATE(tk.create_time) between #{beginTime} and #{endTime}
|
||||
</if>
|
||||
GROUP BY tk.CODE
|
||||
order by tk.create_time desc
|
||||
|
|
|
|||
Loading…
Reference in New Issue