This commit is contained in:
zds
2022-10-28 14:14:26 +08:00
parent 2e02b9da0f
commit cb4af89f29
2 changed files with 4 additions and 5 deletions

View File

@@ -799,11 +799,6 @@ public class HandPFOutIvtServiceImpl implements HandPFOutIvtService {
}
//生成移库单(调用pc的移库单据)
String moveinv_id = IdUtil.getSnowflake(1, 1).nextId() + "";
String moveinvdtl_id = IdUtil.getSnowflake(1, 1).nextId() + "";
String bill_code = CodeUtil.getNewCode("MOVE_CODE");
int seq_no = 1;
String task_id = IdUtil.getSnowflake(1, 1).nextId() + "";
//根据其中一种物料寻找一个合适的仓位

View File

@@ -190,6 +190,10 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
HashMap<String, String> row = rows.get(i);
JSONObject jo_row = (JSONObject) JSONObject.toJSON(row);
String storagevehicle_code = row.get("storagevehicle_code");
JSONObject now_jo = wo_dtl.query("work_status<>'99' and storagevehicle_code='"+storagevehicle_code+"'").uniqueResult(0);
if(now_jo!=null){
throw new BadRequestException("当前载具:"+storagevehicle_code+"已生成移库单,请稍后再试!");
}
if (i == 0){
ids.append("'");
}