fix:木箱出库时存在移库任务将出库锁释放
This commit is contained in:
@@ -98,10 +98,17 @@ public class TwoMoveBoxTask extends AbstractAcsTask {
|
||||
JSONObject jsonAttrStar = attrTab.query("struct_code = '" + taskObj.getString("point_code1") + "'").uniqueResult(0);
|
||||
jsonAttrStar.put("lock_type",IOSEnum.LOCK_TYPE.code("未锁定"));
|
||||
jsonAttrStar.put("storagevehicle_code","");
|
||||
attrTab.update(jsonAttrStar);
|
||||
|
||||
// 更新终点
|
||||
|
||||
JSONObject jsonAttrEnd = attrTab.query("struct_code = '" + taskObj.getString("point_code2") + "'").uniqueResult(0);
|
||||
//如果是木箱出库锁的话:移库锁保持
|
||||
attrTab.update(jsonAttrStar);
|
||||
if (IOSEnum.LOCK_TYPE.code("木箱出库锁").equals(jsonAttrStar.getString("lock_type"))){
|
||||
jsonAttrEnd.put("lock_type",IOSEnum.LOCK_TYPE.code("木箱出库锁"));
|
||||
}else {
|
||||
jsonAttrEnd.put("lock_type",IOSEnum.LOCK_TYPE.code("未锁定"));
|
||||
}
|
||||
// 更新终点
|
||||
jsonAttrEnd.put("lock_type",IOSEnum.LOCK_TYPE.code("未锁定"));
|
||||
jsonAttrEnd.put("storagevehicle_code",taskObj.getString("vehicle_code"));
|
||||
attrTab.update(jsonAttrEnd);
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
|
||||
@RequestMapping("/api/szls/getStructInfo")
|
||||
@RequestMapping("/api/szls")
|
||||
@Slf4j
|
||||
public class LmsToBigScreenController {
|
||||
private final LmsToBigScreenService LmsToBigScreenService;
|
||||
|
||||
@@ -111,6 +111,12 @@ public abstract class AbstractAcsTask {
|
||||
*
|
||||
*/
|
||||
public JSONObject immediateNotifyAcs(String task_id) {
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
}catch (Exception ex){
|
||||
|
||||
}
|
||||
|
||||
List<AcsTaskDto> taskList = this.schedule();
|
||||
if (ObjectUtil.isNotEmpty(taskList)) {
|
||||
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(taskList));
|
||||
|
||||
@@ -6,7 +6,7 @@ spring:
|
||||
freemarker:
|
||||
check-template-location: false
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
data:
|
||||
@@ -126,6 +126,7 @@ security:
|
||||
- /api/param/getValueByCode
|
||||
- /plumelog/**
|
||||
- /api/esLog/**
|
||||
- /api/s/**
|
||||
- /api/codeDetail/getNewCode
|
||||
- /api/in/rawAssist/updateStructSect
|
||||
# Sa-Token配置
|
||||
|
||||
@@ -132,9 +132,8 @@ https://juejin.cn/post/6844903775631572999
|
||||
<!--生产环境:打印控制台和输出到文件-->
|
||||
<springProfile name="prod">
|
||||
<root level="info">
|
||||
<appender-ref ref="asyncLuceneAppender"/>
|
||||
<appender-ref ref="asyncFileAppender"/>
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
<appender-ref ref="asyncLuceneAppender"/>
|
||||
</root>
|
||||
<logger name="jdbc" level="ERROR" additivity="true">
|
||||
<appender-ref ref="asyncFileAppender"/>
|
||||
|
||||
Reference in New Issue
Block a user