| | |
| | | import com.matrix.system.common.service.BusParameterSettingService; |
| | | import com.matrix.system.common.service.OperationLogService; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.enums.BooleanEnum; |
| | | import com.matrix.system.enums.OperationButtonEnum; |
| | | import com.matrix.system.enums.OperationFunctionEnum; |
| | | import com.matrix.system.hive.bean.*; |
| | |
| | | |
| | | if (CollectionUtils.isNotEmpty(projServicesVo.getOutStoreItem())) { |
| | | BusParameterSettings manageStockSetting = busParameterSettingsDao.selectCompanyParamByCode(AppConstance.WAREHOUSE_MANAGE_STOCK, projServicesVo.getCompanyId()); |
| | | if (AppConstance.IS_Y.equals(manageStockSetting.getParamValue())) { |
| | | // if (AppConstance.IS_Y.equals(manageStockSetting.getParamValue())) { |
| | | if (BooleanEnum.TRUE.getValue() == manageStockSetting.getIntParamValue()) { |
| | | for (SysOutStoreItem item : projServicesVo.getOutStoreItem()) { |
| | | if (item.getAmount() != null && item.getAmount() > 0) { |
| | | return true; |
| | |
| | | sysProjServicesDao.update(checkprojServices); |
| | | } |
| | | //保存单据日志 |
| | | operationLogService.saveOperation(projServices.getCompanyId(), projServices.getShopId(),users.getSuId(), |
| | | // operationLogService.saveOperation(projServices.getCompanyId(), projServices.getShopId(),users.getSuId(), |
| | | // OperationFunctionEnum.SERVICE_ORDER, |
| | | // OperationButtonEnum.SERVICE_ORDER_END, |
| | | // projServices.getId(), |
| | | // projServices.getServiceNo(), |
| | | // projServices.getVipId()); |
| | | operationLogService.saveOperation(checkprojServices.getCompanyId(), checkprojServices.getShopId(),users.getSuId(), |
| | | OperationFunctionEnum.SERVICE_ORDER, |
| | | OperationButtonEnum.SERVICE_ORDER_END, |
| | | projServices.getId(), |
| | | projServices.getServiceNo(), |
| | | projServices.getVipId()); |
| | | checkprojServices.getId(), |
| | | checkprojServices.getServiceNo(), |
| | | checkprojServices.getVipId()); |
| | | return rerunlt; |
| | | } |
| | | |
| | |
| | | boolean flag = false; |
| | | if (CollUtil.isNotEmpty(settings)) { |
| | | for (ParameterSettings setting : settings) { |
| | | if (step.equals(setting.getCode()) && Dictionary.FLAG_YES.equals(setting.getUserValue())) { |
| | | // if (step.equals(setting.getCode()) && Dictionary.FLAG_YES.equals(setting.getUserValue())) { |
| | | // flag = true; |
| | | // break; |
| | | // } |
| | | if (step.equals(setting.getCode()) && BooleanEnum.TRUE.getValue() == Integer.parseInt(setting.getUserValue())) { |
| | | flag = true; |
| | | break; |
| | | } |
| | |
| | | return i; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int signService(SysProjServices services) { |
| | | SysProjServices projServices =findById(services.getId()); |
| | | projServices.setSignPic(services.getSignPic()); |
| | | return sysProjServicesDao.update(projServices); |
| | | } |
| | | |
| | | |
| | | } |