修改
This commit is contained in:
@@ -140,6 +140,7 @@
|
|||||||
wt.workprocedure_name,
|
wt.workprocedure_name,
|
||||||
device.device_code,
|
device.device_code,
|
||||||
device.device_id,
|
device.device_id,
|
||||||
|
producmaterialext.standard_weight,
|
||||||
wt.workprocedure_id AS workprocedure_uuid,
|
wt.workprocedure_id AS workprocedure_uuid,
|
||||||
device.device_name,
|
device.device_name,
|
||||||
(
|
(
|
||||||
@@ -159,6 +160,7 @@
|
|||||||
LEFT JOIN md_me_materialbase mb ON mb.material_id = wt.material_id
|
LEFT JOIN md_me_materialbase mb ON mb.material_id = wt.material_id
|
||||||
LEFT JOIN em_bi_deviceinfo device ON device.device_id = wt.device_id
|
LEFT JOIN em_bi_deviceinfo device ON device.device_id = wt.device_id
|
||||||
LEFT JOIN pdm_bi_workorder wo ON wo.workorder_id = wt.workorder_id
|
LEFT JOIN pdm_bi_workorder wo ON wo.workorder_id = wt.workorder_id
|
||||||
|
LEFT JOIN md_me_producmaterialext producmaterialext ON producmaterialext.material_id = wt.material_id
|
||||||
WHERE
|
WHERE
|
||||||
wt.workorder_id = 输入.workorder_id
|
wt.workorder_id = 输入.workorder_id
|
||||||
AND
|
AND
|
||||||
|
|||||||
@@ -138,8 +138,8 @@ public class EndProductServiceImpl implements EndProductService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
//假如没记录就插入
|
//假如没记录就插入
|
||||||
|
JSONObject bucketObj = new JSONObject();
|
||||||
if (ObjectUtil.isEmpty(bucketJo)) {
|
if (ObjectUtil.isEmpty(bucketJo)) {
|
||||||
JSONObject bucketObj = new JSONObject();
|
|
||||||
bucketObj.put("bucket_record_id", IdUtil.getSnowflake(1, 1).nextId());
|
bucketObj.put("bucket_record_id", IdUtil.getSnowflake(1, 1).nextId());
|
||||||
if (StrUtil.isEmpty(bucketunique)) {
|
if (StrUtil.isEmpty(bucketunique)) {
|
||||||
bucketunique = CodeUtil.getNewCode("PRODUCT_BUCKET_CODE");
|
bucketunique = CodeUtil.getNewCode("PRODUCT_BUCKET_CODE");
|
||||||
@@ -202,7 +202,7 @@ public class EndProductServiceImpl implements EndProductService {
|
|||||||
offlinejo.put("material_id", material_id);
|
offlinejo.put("material_id", material_id);
|
||||||
offlinejo.put("pcsn", pcsn);
|
offlinejo.put("pcsn", pcsn);
|
||||||
offlinejo.put("bucketunique", bucketunique);
|
offlinejo.put("bucketunique", bucketunique);
|
||||||
offlinejo.put("ordernum", changeObj.getString("record_order"));
|
offlinejo.put("ordernum", bucketObj.getString("record_order"));
|
||||||
offlinejo.put("qty", result_qty);
|
offlinejo.put("qty", result_qty);
|
||||||
offlinejo.put("qty_unit_id", materDto.getBase_unit_id());
|
offlinejo.put("qty_unit_id", materDto.getBase_unit_id());
|
||||||
offlinejo.put("qty_unit_name", materDto.getBase_unit_name());
|
offlinejo.put("qty_unit_name", materDto.getBase_unit_name());
|
||||||
@@ -219,7 +219,7 @@ public class EndProductServiceImpl implements EndProductService {
|
|||||||
map.put("material_id", material_id);
|
map.put("material_id", material_id);
|
||||||
map.put("pcsn", pcsn);
|
map.put("pcsn", pcsn);
|
||||||
map.put("bucketunique", bucketunique);
|
map.put("bucketunique", bucketunique);
|
||||||
map.put("ordernum", changeObj.getString("record_order"));
|
map.put("ordernum", bucketObj.getString("record_order"));
|
||||||
map.put("qty", result_qty+"");
|
map.put("qty", result_qty+"");
|
||||||
map.put("qty_unit_id", materDto.getBase_unit_id()+"");
|
map.put("qty_unit_id", materDto.getBase_unit_id()+"");
|
||||||
map.put("qty_unit_name", materDto.getBase_unit_name());
|
map.put("qty_unit_name", materDto.getBase_unit_name());
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
class.class_code,
|
class.class_code,
|
||||||
class.class_name,
|
class.class_name,
|
||||||
unit_name,
|
unit_name,
|
||||||
'50' as standard_weight,
|
producmaterialext.standard_weight,
|
||||||
unit_name as base_unit_id_name,
|
unit_name as base_unit_id_name,
|
||||||
producmaterialext.product_series
|
producmaterialext.product_series
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
Reference in New Issue
Block a user