| | |
| | | //组合配料参数 |
| | | projServices.setOutStoreItem(outStoreItemList); |
| | | //调用配料出库方法 |
| | | modifyPLProjServices(projServices); |
| | | try { |
| | | modifyPLProjServices(projServices); |
| | | }catch (GlobleException e){ |
| | | LogUtil.debug("配料失败:{}",e.getMessage()); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int modifyHKProjServices(SysProjServices projServices) throws GlobleException { |
| | | SysUsers sysUsers = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | projServices = sysProjServicesDao.selectById(projServices.getId()); |
| | | if (!projServices.getState().equals(Dictionary.SERVICE_STATU_FWWC)) { |
| | | throw new GlobleException("该服务单状态为" + projServices.getState() + ",不可以进行当前操作!"); |
| | |
| | | |
| | | projServices.setState(Dictionary.SERVICE_STATU_FFJS); |
| | | projServices.setConsumeTime(new Date()); |
| | | projServices.setCashierId(sysUsers.getSuId()); |
| | | int result = sysProjServicesDao.update(projServices); |
| | | achieveNewService.addAchieveByServiceOrder(projServices); |
| | | |