Commit 253a9627 LN

TriggerMatReqOrder 增加unitOfMeasures参数

1 个父辈 14b92928
...@@ -664,8 +664,12 @@ public class Micron20031Api { ...@@ -664,8 +664,12 @@ public class Micron20031Api {
Map<String, Object> resultMap = JsonUtil.toMap(resultJson); Map<String, Object> resultMap = JsonUtil.toMap(resultJson);
Object resultStatus = resultMap.get("status"); Object resultStatus = resultMap.get("status");
if (resultStatus != null && !resultStatus.toString().equalsIgnoreCase("PASS")) { if (resultStatus != null && !resultStatus.toString().equalsIgnoreCase("PASS")) {
String msg = resultMap.get("message").toString(); Object msgObj = resultMap.get("message") ;
throw new ApiException("smfcore.api.error", msg); if(ObjectUtil.isEmpty(msgObj)){
throw new ApiException("smfcore.api.error", "status="+resultStatus);
}else{
throw new ApiException("smfcore.api.error", msgObj.toString());
}
} }
if (key != null && !key.isEmpty()) { if (key != null && !key.isEmpty()) {
Object value = resultMap.get(key); Object value = resultMap.get(key);
......
...@@ -78,10 +78,11 @@ public class MicronSpOrderController { ...@@ -78,10 +78,11 @@ public class MicronSpOrderController {
@ApiOperation("修改PN数量后提交") @ApiOperation("修改PN数量后提交")
@RequestMapping(value = "/submitPn") @RequestMapping(value = "/submitPn")
public ResultBean submitPn(String partNumber, Integer qty) { public ResultBean submitPn(String partNumber, Integer qty,String unitOfMeasures) {
MatOrderBean bean = new MatOrderBean(); MatOrderBean bean = new MatOrderBean();
bean.setMicronPN(partNumber); bean.setMicronPN(partNumber);
bean.setQuantity(qty); bean.setQuantity(qty);
bean.setUnitOfMeasures(unitOfMeasures);
// //
// Map<String, String> map=new HashMap<>(); // Map<String, String> map=new HashMap<>();
// map.put("partNumber",partNumber); // map.put("partNumber",partNumber);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!