diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml
index 9dbfbe72..162dde6e 100644
--- a/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml
+++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/largeScreen/LargeScreenMapper.xml
@@ -766,7 +766,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND sd.dept_name = #{maTypeName}
- AND lai.`code` LIKE CONCAT('%',#{materialCode},'%')
+ AND ba.`code` LIKE CONCAT('%',#{materialCode},'%')
AND bai.unit_id = #{unitId}
diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapApplyDetails.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapApplyDetails.java
index 3af1725a..221da851 100644
--- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapApplyDetails.java
+++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/ScrapApplyDetails.java
@@ -31,6 +31,11 @@ public class ScrapApplyDetails extends BaseEntity
@ApiModelProperty(value = "任务ID")
private Long taskId;
+ /**
+ * 审核状态
+ */
+ private Integer taskStatus;
+
/** 上级ID */
@ApiModelProperty(value = "上级ID")
private Long parentId;
@@ -51,6 +56,10 @@ public class ScrapApplyDetails extends BaseEntity
@ApiModelProperty(value = "(1退料2,维修审核,3盘点)")
private String scrapSource;
+ /** 报废单号 */
+ @ApiModelProperty(value = "报废单号")
+ private String scrapCode;
+
/** (0自然,1人为) */
@ApiModelProperty(value = "0=自然,1人为")
private String scrapType;
@@ -109,13 +118,19 @@ public class ScrapApplyDetails extends BaseEntity
@ApiModelProperty(value = "数据状态")
private Integer repairStatus;
- private String keyword;
+ private String keywords;
private String typeName;
/** 任务ID集合 --导出时可以选择导出*/
@ApiModelProperty(value = "任务ID集合")
private String taskIdList;
+ @ApiModelProperty(value = "开始时间")
+ private String beginTime;
+
+ @ApiModelProperty(value = "结束时间")
+ private String endTime;
+
public void setId(Long id)
{
diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml
index dd46db4b..b7860aaa 100644
--- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml
+++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/ScrapApplyDetailsMapper.xml
@@ -72,30 +72,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE
sad.scrap_source IN ( '1', '2' )
AND tk.task_type = 57
-
- 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)
+
+ 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)
and bui.unit_id = #{backUnit}
-
- and tk.task_status = #{repairStatus}
-
and bpl.lot_id = #{backPro}
+
+ and tk.CODE like concat('%', #{scrapCode}, '%')
+
+
+ and tk.task_status = #{taskStatus}
+
+
+ and sad.scrap_source = #{scrapSource}
+
and mt1.type_id = #{type}
and locate(#{backCode}, tk.code) > 0
-
- and tk.create_time between #{params.beginTime} and #{params.endTime}
+
+ and DATE(tk.create_time) between #{beginTime} and #{endTime}
GROUP BY tk.CODE
order by tk.create_time desc