opt:优化固化室出库任务
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package org.nl.wms.sch.task_manage.task.tasks.auto;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.wms.sch.task_manage.task.tasks.auto.mapper.AutoMapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 自动清除消息
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("autoDelNotice")
|
||||
public class AutoDelNotice {
|
||||
@Resource
|
||||
private AutoMapper autoMapper;
|
||||
|
||||
protected void run() {
|
||||
autoMapper.deleteNotice();
|
||||
autoMapper.deleteInteractRecord();
|
||||
autoMapper.deleteQuartzLog();
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,8 @@ public interface AutoMapper {
|
||||
List<SchBasePoint> getZCSameMaterialPoint(String pcsn, String materialId);
|
||||
|
||||
SchBasePoint getZCEmptyMaterialPoint(String regionCode, String materialId);
|
||||
Integer deleteNotice();
|
||||
Integer deleteInteractRecord();
|
||||
Integer deleteQuartzLog();
|
||||
|
||||
}
|
||||
|
||||
@@ -35,6 +35,17 @@
|
||||
WHERE p.region_code = 'GH' AND p.point_type = '3' AND p.point_status = '2' and (p.ing_task_code = '' OR p.ing_task_code IS NULL)
|
||||
ORDER BY p.row_num, p.col_num limit 10
|
||||
</select>
|
||||
<delete id="deleteNotice">
|
||||
DELETE FROM sys_notice;
|
||||
</delete>
|
||||
|
||||
<delete id="deleteInteractRecord">
|
||||
DELETE FROM sys_interact_record;
|
||||
</delete>
|
||||
|
||||
<delete id="deleteQuartzLog">
|
||||
DELETE FROM sys_quartz_log;
|
||||
</delete>
|
||||
<select id="getZCSameMaterialPoint" resultType="org.nl.wms.sch.point.service.dao.SchBasePoint">
|
||||
SELECT vg.material_id,p.*
|
||||
FROM sch_base_point p
|
||||
|
||||
Reference in New Issue
Block a user