fix: 窑口

This commit is contained in:
2024-03-07 18:18:14 +08:00
parent ba20c7d4d5
commit e451d53cd4
2 changed files with 7 additions and 6 deletions

View File

@@ -777,10 +777,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
processTracking.setProcess_location(baseRequest.getDevice_code()); processTracking.setProcess_location(baseRequest.getDevice_code());
processTracking.setRecord_time(DateUtil.now()); processTracking.setRecord_time(DateUtil.now());
processTrackingService.create(processTracking); processTrackingService.create(processTracking);
// update: 点位解锁 // delete: 点位解锁
SchBasePoint paramobj = new SchBasePoint();
paramobj.setIng_task_code("");
pointService.update(paramobj, new LambdaQueryWrapper<SchBasePoint>().eq(SchBasePoint::getPoint_code, basePoint.getPoint_code()));
return ApplyTaskResponse.responseOk(baseRequest.getRequestNo(), "扫码成功申请"); return ApplyTaskResponse.responseOk(baseRequest.getRequestNo(), "扫码成功申请");
} }
@@ -983,7 +980,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
PointUtils.setUpdateByAcs(schBasePoint); PointUtils.setUpdateByAcs(schBasePoint);
pointService.updateById(schBasePoint); pointService.updateById(schBasePoint);
// hint: 特殊处理 // hint: 特殊处理
// specialOperation(schBasePoint); specialOperation(schBasePoint);
log.info("点位" + schBasePoint.getPoint_code() + "更新之后:{}", schBasePoint); log.info("点位" + schBasePoint.getPoint_code() + "更新之后:{}", schBasePoint);
} }
} finally { } finally {
@@ -1008,7 +1005,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
PointUtils.setUpdateByAcs(endPointObj); PointUtils.setUpdateByAcs(endPointObj);
pointService.update(endPointObj, new LambdaQueryWrapper<SchBasePoint>() pointService.update(endPointObj, new LambdaQueryWrapper<SchBasePoint>()
.eq(SchBasePoint::getPoint_code, "RYK01")); .eq(SchBasePoint::getPoint_code, "RYK01"));
log.info("入窑口02引发入窑口01点位更新解锁"); log.info("入窑口02引发入窑口01点位更新解锁时间:{}", DateUtil.now());
} }
} }

View File

@@ -7,8 +7,12 @@
p.* p.*
FROM FROM
`sch_base_point` p `sch_base_point` p
LEFT JOIN sch_base_point p2 ON p2.point_code = p.parent_point_code
WHERE p.point_type = '1' WHERE p.point_type = '1'
AND p.point_status = '1'
AND p.is_used = true AND p.is_used = true
AND p2.point_status = '1'
AND p2.is_used = true
AND (p.ing_task_code = '' OR p.ing_task_code IS NULL) AND (p.ing_task_code = '' OR p.ing_task_code IS NULL)
AND 0 = (SELECT COUNT(*) FROM sch_base_task WHERE point_code2 = p.point_code AND task_status <![CDATA[<]]> '5') AND 0 = (SELECT COUNT(*) FROM sch_base_task WHERE point_code2 = p.point_code AND task_status <![CDATA[<]]> '5')
AND p.region_code IN AND p.region_code IN