| | |
| | | @Value("${erp.address.imMdcMftfeedorderReport}") |
| | | //生产补料单上报 |
| | | private String imMdcMftfeedorderReport; |
| | | @Value("${erp.address.imProductinbillReport}") |
| | | @Value("${erp.address.imProductinbillBatchAudit}") |
| | | //生产汇报单上报 |
| | | private String imProductinbillReport; |
| | | private String imProductinbillBatchAudit; |
| | | @Value("${erp.address.imOtheroutbillAudi}") |
| | | //其他出库审核上报 |
| | | private String imOtheroutbillAudi; |
| | |
| | | SimpleDateFormat sdf1, SimpleDateFormat sdf2) { |
| | | JSONArray idArray = new JSONArray(); |
| | | JSONObject dataObj = new JSONObject(); |
| | | switch (kingDeeUtilType.formId) { |
| | | if(kingDeeUtilType == null){ |
| | | return null; |
| | | } |
| | | switch(kingDeeUtilType.formId) { |
| | | case "PUR_RECEIVEBIll": // 进仓通知单提交 |
| | | path = imPurinbillBatchAudit; |
| | | idArray.add(order.getNumber()); |
| | |
| | | dataObj.fluentPut("id", idArray); |
| | | return new JSONObject().fluentPut("data", dataObj); |
| | | case "PRD_MORPT"://生产汇报单 |
| | | path = imProductinbillReport; |
| | | path = imProductinbillBatchAudit; |
| | | idArray.add(order.getNumber()); |
| | | dataObj.fluentPut("id", idArray); |
| | | dataObj.fluentPut("ids", idArray); |
| | | return new JSONObject().fluentPut("data", dataObj); |
| | | case "STK_MISCELLANEOUS"://其他入库单 |
| | | path = imOtheroutbillAudi; |
| | |
| | | } |
| | | // 解析返回的响应 |
| | | JSONObject data = jsonResponse.getJSONObject("data"); |
| | | String errorCode = jsonResponse.getString("errorCode"); |
| | | boolean status = jsonResponse.getBooleanValue("status"); |
| | | if ("0".equals(errorCode) && status) { |
| | | if (status) { |
| | | // 获取成功与失败的数量 |
| | | int successCount = data.getInteger("successCount"); |
| | | int failCount = data.getInteger("failCount"); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | order.setSettle(8L); // 更新状态为已上报审核 9->8 |
| | | orderService.updateById(order); |
| | | } else { |