优化
This commit is contained in:
@@ -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() + "";
|
||||
//根据其中一种物料寻找一个合适的仓位
|
||||
|
||||
@@ -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("'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user