代码更新
This commit is contained in:
@@ -292,6 +292,9 @@ public class MaterialParametersServiceImpl implements MaterialParametersService
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public JSONObject queryMaterialParam(String material_id) {
|
||||
MaterialbaseDto materDto = materialbaseService.findById(Long.valueOf(material_id));
|
||||
|
||||
boolean is_pgf = materialbaseService.isAlongMaterType(MaterOptTypeEnum.PGF.getCode(), material_id, null);
|
||||
|
||||
//根据物料类型判断是原辅料还是半成品
|
||||
String material_type_id = materDto.getMaterial_type_id() + "";
|
||||
String flag = "1";
|
||||
@@ -302,6 +305,12 @@ public class MaterialParametersServiceImpl implements MaterialParametersService
|
||||
flag = "2";
|
||||
}
|
||||
JSONObject json = WQL.getWO("QMD_ME_material_param01").addParam("flag", flag).addParam("material_id", material_id).process().uniqueResult(0);
|
||||
|
||||
if (is_pgf) {
|
||||
json.put("is_sync", "0");
|
||||
} else {
|
||||
json.put("is_sync", "1");
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user