| | |
| | | bsOrderScheduling.setProductionStatus("1"); |
| | | bsOrderScheduling.setOperator(getUserName()); |
| | | bsOrderScheduling.setOperateTime(fomateDate); |
| | | bsOrderScheduling.setProductType(omProductionOrdeInfo.getTypeL());//产品类型 |
| | | bsOrderScheduling.setWhetherOrPrint("0"); |
| | | bsOrderSchedulingService.insertBsOrderScheduling(bsOrderScheduling); |
| | | startCode++; |
| | | } |
| | |
| | | bsModelNumber.setModelDate(dateTimeRule); |
| | | bsModelNumber.setMaxnumValue((startCode - 1) + ""); |
| | | bsModelNumber.setSaveTime(fomateDate); |
| | | bsModelNumber.setLastNumber((startCode - 1) + ""); |
| | | bsModelNumberService.insertBsModelNumber(bsModelNumber); |
| | | } |
| | | //更新工单状态 |
| | |
| | | } |
| | | |
| | | /** |
| | | * table列上移下移 |
| | | * 接收工单 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('om:productionOrde:receive')") |
| | | @GetMapping("/getProductionNotice") |
| | | public AjaxResult getProductionNotice(OmProductionOrdeInfo omProductionOrdeInfo) |
| | | { |
| | | ReceivingServices.insertWebserviceData(omProductionOrdeInfo.getProductionNotice()); |
| | | return AjaxResult.success(); |
| | | String productionNotice = omProductionOrdeInfo.getProductionNotice(); |
| | | List<OmProductionOrdeInfo> omProductionOrdeInfos = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(omProductionOrdeInfo); |
| | | if(omProductionOrdeInfos.size() == 0){ |
| | | try { |
| | | ReceivingServices.insertWebserviceData(productionNotice); |
| | | } catch (Exception e) { |
| | | return error("接收失败!请检查通知单号"); |
| | | } |
| | | }else { |
| | | return warn("该通知单已经接收完毕,不能重复接收!"); |
| | | } |
| | | return AjaxResult.success("接收成功!"); |
| | | } |
| | | } |