rev: 原材料入库定级问题
This commit is contained in:
@@ -282,12 +282,27 @@ public class InbillServiceImpl {
|
||||
i_form.put("qty_unit_name", dis_row.getString("qty_unit_name"));
|
||||
storPublicService.IOStor(i_form, "33");
|
||||
|
||||
// 判断此入库单是否有完成的理化单据
|
||||
JSONObject jsonPhy = WQLObject.getWQLObject("ql_test_physicalmst")
|
||||
.query("material_id = '" + dis_row.getString("material_id") + "' AND pcsn = '" + dis_row.getString("pcsn") + "' AND bill_status = '99' AND is_effective = '1'")
|
||||
.uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(jsonPhy) && bill_type.equals("000101")) {
|
||||
dis_row.put("ivt_level",jsonPhy.getString("grade"));
|
||||
JSONObject ivtJson = new JSONObject();
|
||||
ivtJson.put("ivt_level",jsonPhy.getString("grade"));
|
||||
ivtTab.update(ivtJson, "struct_id = '"+dis_row.getString("struct_id")+"' AND material_id = '"+dis_row.getString("material_id")+"' AND pcsn = '"+dis_row.getString("pcsn")+"'");
|
||||
}
|
||||
|
||||
//更新桶记录表
|
||||
HashMap bucket_map = new HashMap();
|
||||
bucket_map.put("status", "03");
|
||||
bucket_map.put("instor_optid", currentUserId);
|
||||
bucket_map.put("instor_optname", nickName);
|
||||
bucket_map.put("instor_time", now);
|
||||
if (ObjectUtil.isNotEmpty(jsonPhy) && bill_type.equals("000101")) {
|
||||
bucket_map.put("ivt_level", jsonPhy.getString("grade"));
|
||||
}
|
||||
|
||||
bucket_table.update(bucket_map, "storagevehicle_code = '" + dis_row.getString("storagevehicle_code") + "' AND status = '02'");
|
||||
|
||||
//如果单据为原辅料入库,且为寄样合格,回写到货通知单
|
||||
|
||||
Reference in New Issue
Block a user