fanxw 11 ay önce
ebeveyn
işleme
6b24ab52f4

+ 3 - 0
src/main/java/com/chinaitop/depot/tempWarn/mapper/StorageUseReplacementAlarmMapper.xml

@@ -276,6 +276,9 @@
276 276
       <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
277 277
         and ura.yjsj between #{startTime} and #{endTime}
278 278
       </if>
279
+      <if test="cfmc != null">
280
+        and ura.cfmc like #{cfmc,jdbcType=VARCHAR}
281
+      </if>
279 282
     </where>
280 283
   </select>
281 284
 </mapper>

+ 2 - 0
src/main/java/com/chinaitop/depot/tempWarn/param/StorageUseReplacementAlarmPageParam.java

@@ -18,4 +18,6 @@ public class StorageUseReplacementAlarmPageParam extends PageParam {
18 18
     private String kqbm; // 库区编码
19 19
 
20 20
     private String yjsj;// 预警时间(yyyy-MM-dd)
21
+
22
+    private String cfmc;//仓房名称
21 23
 }

+ 3 - 0
src/main/java/com/chinaitop/depot/tempWarn/service/impl/StorageUseReplacementAlarmServiceImpl.java

@@ -34,6 +34,9 @@ public class StorageUseReplacementAlarmServiceImpl implements StorageUseReplacem
34 34
             map.put("startTime", String.format("%s%s", pageParam.getYjsj(), DateUtil.startTime));
35 35
             map.put("endTime", String.format("%s%s", pageParam.getYjsj(), DateUtil.endTime));
36 36
         }
37
+        if (StringUtils.hasText(pageParam.getCfmc())) {
38
+        	map.put("cfmc", "%"+pageParam.getCfmc()+"%");
39
+        }
37 40
         return replacementAlarmMapper.selectByMap(map);
38 41
     }
39 42
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/yjbj/mapper/YjbjMapper.xml

@@ -129,7 +129,7 @@
129 129
   <!-- 空进空出预警数据查询 -->
130 130
   <select id="selectKjkcyj" resultType="com.chinaitop.depot.yjbj.model.Kjkcyj" parameterType="map">
131 131
     select 
132
-  		id,rkcl,first_czzl firstCzzl, second_czzl secondCzzl, bjsj, org_id orgId
132
+  		id,rkcl,first_czzl firstCzzl, second_czzl secondCzzl, bjsj, org_id orgId, zylx, clr, clsj, cjjg
133 133
 	from storage_alarm_empty_in_out 
134 134
     <where>
135 135
       <if test="obj.rkcl != null">

+ 5 - 0
src/main/java/com/chinaitop/depot/yjbj/model/Kjkcyj.java

@@ -21,4 +21,9 @@ public class Kjkcyj {
21 21
 	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
22 22
 	private Date bjsj;//报警时间
23 23
 	private Integer orgId;//库ID
24
+	private String zylx;//作业类型, 入库称皮重/出库称毛重
25
+	private String clr;//处理人
26
+	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
27
+	private Date clsj;//处理时间
28
+	private String cjjg;//处理结果
24 29
 }