|
@ -145,15 +145,21 @@ public class PdaIosOutServiceImpl implements PdaIosOutService { |
|
|
GroupPlate plateDao = mdPbGroupplateMapper.selectOne( |
|
|
GroupPlate plateDao = mdPbGroupplateMapper.selectOne( |
|
|
new LambdaQueryWrapper<GroupPlate>() |
|
|
new LambdaQueryWrapper<GroupPlate>() |
|
|
.eq(GroupPlate::getGroup_id, obj.getString("group_id"))); |
|
|
.eq(GroupPlate::getGroup_id, obj.getString("group_id"))); |
|
|
Structattr sectDao = iStructattrService.getOne(new LambdaQueryWrapper<Structattr>() |
|
|
|
|
|
|
|
|
Structattr struct = iStructattrService.getOne(new LambdaQueryWrapper<Structattr>() |
|
|
.eq(Structattr::getStruct_code, obj.getString("struct_code"))); |
|
|
.eq(Structattr::getStruct_code, obj.getString("struct_code"))); |
|
|
MdMeMaterialbase materDao = iMdMeMaterialbaseService.getById(plateDao.getMaterial_id()); |
|
|
MdMeMaterialbase materDao = iMdMeMaterialbaseService.getById(plateDao.getMaterial_id()); |
|
|
obj.put("material_id", materDao.getMaterial_id()); |
|
|
obj.put("material_id", materDao.getMaterial_id()); |
|
|
obj.put("material_code", materDao.getMaterial_code()); |
|
|
obj.put("material_code", materDao.getMaterial_code()); |
|
|
obj.put("store_id", sectDao.getStor_id()); |
|
|
obj.put("store_id", struct.getStor_id()); |
|
|
obj.put("store_code", sectDao.getStor_code()); |
|
|
obj.put("store_code", struct.getStor_code()); |
|
|
obj.put("store_name", sectDao.getStor_name()); |
|
|
obj.put("store_name", struct.getStor_name()); |
|
|
obj.put("sec", sectDao.getSect_id()); |
|
|
obj.put("sect_id", struct.getSect_id()); |
|
|
|
|
|
obj.put("sect_code", struct.getSect_code()); |
|
|
|
|
|
obj.put("sect_name", struct.getSect_name()); |
|
|
|
|
|
obj.put("struct_id", struct.getStruct_id()); |
|
|
|
|
|
obj.put("struct_code", struct.getStruct_code()); |
|
|
|
|
|
obj.put("struct_name", struct.getStruct_name()); |
|
|
obj.put("qty", plateDao.getQty()); |
|
|
obj.put("qty", plateDao.getQty()); |
|
|
obj.put("unit_id", plateDao.getQty_unit_id()); |
|
|
obj.put("unit_id", plateDao.getQty_unit_id()); |
|
|
obj.put("unit_name", plateDao.getQty_unit_name()); |
|
|
obj.put("unit_name", plateDao.getQty_unit_name()); |
|
@ -201,12 +207,13 @@ public class PdaIosOutServiceImpl implements PdaIosOutService { |
|
|
io_mst.put("iostorinv_id", iostorinv_id); |
|
|
io_mst.put("iostorinv_id", iostorinv_id); |
|
|
io_mst.put("bill_code", bill_code); |
|
|
io_mst.put("bill_code", bill_code); |
|
|
io_mst.put("io_type", IOSEnum.IO_TYPE.code("出库")); |
|
|
io_mst.put("io_type", IOSEnum.IO_TYPE.code("出库")); |
|
|
io_mst.put("bill_type", StatusEnum.IOBILL_TYPE_OUT.code("生产出库")); |
|
|
io_mst.put("bill_type", StatusEnum.IOBILL_TYPE_OUT.code("用料出库")); |
|
|
io_mst.put("biz_date", now.substring(0, 10)); |
|
|
io_mst.put("biz_date", now.substring(0, 10)); |
|
|
io_mst.put("stor_id", whereJson.get("store_id")); |
|
|
io_mst.put("stor_id", whereJson.get("store_id")); |
|
|
io_mst.put("stor_code", whereJson.get("store_code")); |
|
|
io_mst.put("stor_code", whereJson.get("store_code")); |
|
|
io_mst.put("stor_name", whereJson.get("store_name")); |
|
|
io_mst.put("stor_name", whereJson.get("store_name")); |
|
|
io_mst.put("detail_count", 1); |
|
|
io_mst.put("detail_count", 1); |
|
|
|
|
|
io_mst.put("total_qty",whereJson.get("qty")); |
|
|
io_mst.put("bill_status", IOSEnum.BILL_STATUS.code("分配完")); |
|
|
io_mst.put("bill_status", IOSEnum.BILL_STATUS.code("分配完")); |
|
|
io_mst.put("create_mode", IOSEnum.CREATE_MODE.code("PC产生")); |
|
|
io_mst.put("create_mode", IOSEnum.CREATE_MODE.code("PC产生")); |
|
|
io_mst.put("input_optid", currentUserId + ""); |
|
|
io_mst.put("input_optid", currentUserId + ""); |
|
@ -243,6 +250,12 @@ public class PdaIosOutServiceImpl implements PdaIosOutService { |
|
|
dis.put("iostorinv_id", iostorinv_id); |
|
|
dis.put("iostorinv_id", iostorinv_id); |
|
|
dis.put("iostorinvdtl_id", ioStorInvDtl.getString("iostorinvdtl_id")); |
|
|
dis.put("iostorinvdtl_id", ioStorInvDtl.getString("iostorinvdtl_id")); |
|
|
dis.put("seq_no", 1); |
|
|
dis.put("seq_no", 1); |
|
|
|
|
|
dis.put("sect_id", whereJson.get("sect_id")); |
|
|
|
|
|
dis.put("sect_code", whereJson.get("sect_code")); |
|
|
|
|
|
dis.put("sect_name", whereJson.get("sect_name")); |
|
|
|
|
|
dis.put("struct_id", whereJson.get("struct_id")); |
|
|
|
|
|
dis.put("struct_code", whereJson.get("struct_code")); |
|
|
|
|
|
dis.put("struct_name", whereJson.get("struct_name")); |
|
|
dis.put("material_id", whereJson.get("material_id")); |
|
|
dis.put("material_id", whereJson.get("material_id")); |
|
|
dis.put("material_code", whereJson.get("material_code")); |
|
|
dis.put("material_code", whereJson.get("material_code")); |
|
|
dis.put("storagevehicle_code", whereJson.get("storagevehicle_code")); |
|
|
dis.put("storagevehicle_code", whereJson.get("storagevehicle_code")); |
|
|