| | |
| | | omProductionOrdeInfo.setProductNum(dataObject.getStr("productNum")); |
| | | omProductionOrdeInfo.setStationCode(dataObject.getStr("stationCode")); |
| | | omProductionOrdeInfo.setMaterialCode(dataObject.getStr("materialCode")); |
| | | omProductionOrdeInfo.setProductCode(dataObject.getStr("model")); |
| | | if(dataObject.getStr("model").equals("PE01A")){ |
| | | omProductionOrdeInfo.setProductCode("1P102S"); |
| | | }else { |
| | | omProductionOrdeInfo.setProductCode(dataObject.getStr("model")); |
| | | } |
| | | omProductionOrdeInfo.setCreateTime(new Date()); |
| | | omProductionOrdeInfo.setCreateUser("工厂MES"); |
| | | |
| | |
| | | return AjaxResult.success(dataObject.getStr("productNum")); |
| | | } |
| | | |
| | | @GetMapping(value = "/jieBang/{id}") |
| | | public AjaxResult jieBang(@PathVariable("id") Long id) |
| | | { |
| | | OmProductionOrdeInfo byId = omProductionOrdeInfoService.getById(id); |
| | | byId.setTrolleyYard(""); |
| | | return success(omProductionOrdeInfoService.saveOrUpdate(byId)); |
| | | } |
| | | |
| | | /** |
| | | * 获取生产工单详细信息 |
| | | */ |