add:子卷解绑定增加任务校验,已经装箱入库的不允许解绑
This commit is contained in:
@@ -783,6 +783,15 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
||||
WQLObject attrTab = WQLObject.getWQLObject("st_ivt_structattr");
|
||||
JSONObject attr = attrTab.query("storagevehicle_code = '" + packageBoxSn + "'").uniqueResult(0);
|
||||
if (ObjectUtils.isNotEmpty(attr)){
|
||||
String structCode = attr.getString("struct_code");
|
||||
int count = taskService.count(new QueryWrapper<SchBaseTask>()
|
||||
.eq("task_type", "010704")
|
||||
.eq("is_delete", "0")
|
||||
.eq("point_code1", structCode)
|
||||
.lt("task_status", TaskStatusEnum.FINISHED.getCode()));
|
||||
if (count>0){
|
||||
throw new BadRequestException("当前子卷已经生成装箱入库任务,不允许直接解绑");
|
||||
}
|
||||
attr.put("lock_type","1");
|
||||
attrTab.update(attr);
|
||||
}
|
||||
|
||||
@@ -134,7 +134,6 @@ https://juejin.cn/post/6844903775631572999
|
||||
<root level="info">
|
||||
<appender-ref ref="asyncFileAppender"/>
|
||||
<appender-ref ref="asyncLuceneAppender"/>
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
</root>
|
||||
<logger name="jdbc" level="ERROR" additivity="true">
|
||||
<appender-ref ref="asyncFileAppender"/>
|
||||
|
||||
Reference in New Issue
Block a user