fix:出库校验

This commit is contained in:
zhouz
2025-09-01 17:32:07 +08:00
parent 9927637543
commit 89f9ee10f8

View File

@@ -3245,7 +3245,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
JSONArray structArr = WQLObject.getWQLObject("ST_IVT_StructAttr").query("block_num = '" + jsonRow.getString("block_num")
+ "' and row_num = '" + jsonRow.getString("row_num") + "' and is_used = '1' and is_delete = '0' and lock_type not in ('1','6','3')").getResultJSONArray(0);
if (ObjectUtil.isNotEmpty(structArr)) {
throw new BadRequestException("有其他任务正在执行中,请稍后在试!");
throw new BadRequestException("有其他任务正在执行中,对应单据号为【"+structArr.getJSONObject(0).getString("inv_code")+"】,请稍后在试!");
}
}
}