From 560228ac3c15cccce0b2a5994d44e4e81b5b3b73 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 24 May 2022 11:12:22 +0800 Subject: [PATCH] 合并服务单订单改造分支 --- zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysProjServicesServiceImpl.java | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysProjServicesServiceImpl.java b/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysProjServicesServiceImpl.java index 2cc0337..52188d8 100644 --- a/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysProjServicesServiceImpl.java +++ b/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysProjServicesServiceImpl.java @@ -21,6 +21,7 @@ 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.*; @@ -1029,7 +1030,8 @@ 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; @@ -1123,12 +1125,18 @@ 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; } @@ -1168,7 +1176,11 @@ 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; } @@ -1210,5 +1222,13 @@ 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); + } + } -- Gitblit v1.9.1