自动门及混料间设备驱动更新

This commit is contained in:
张江玮
2022-10-08 09:41:17 +08:00
parent 0bd8060be0
commit 8eff20fa40
13 changed files with 2058 additions and 5 deletions

View File

@@ -15,9 +15,9 @@ import org.nl.wms.sch.tasks.SendMaterialTask;
import org.nl.wms.st.inbill.service.dto.RegionioDto;
import org.nl.wql.WQL;
import org.nl.wql.core.bean.WQLObject;
import org.nl.wql.core.engine.object.WO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
@Service
@RequiredArgsConstructor
@@ -56,6 +56,7 @@ public class SendMaterialServiceImpl implements SendMaterialService {
return resultJSON;
}
@Transactional(rollbackFor = Exception.class)
@Override
public JSONObject confirm(JSONObject param) {
// 返回值
@@ -121,8 +122,8 @@ public class SendMaterialServiceImpl implements SendMaterialService {
json.put("bill_status", "20");
regionIOTable.update(json, "iostorinv_id = " + id);
} catch (Exception e) {
// 报错删除搬运记录任务已在createTask中删除
regionIOTable.delete("iostorinv_id = " + id);
// 手动回滚事务
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
resultJSON.put("code", "0");
resultJSON.put("desc", e.getMessage());