diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java index 0242af750..48068c879 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java @@ -665,7 +665,7 @@ public class AftersalesWorkOrderController extends BladeController { return R.fail(s.getMessage()); } catch (Exception e){ log.error("工单提交异常》》》{}",e.getMessage()); - return R.fail("系统异常!!!"); + return R.fail(e.getMessage()); } } diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesProcessingResultsServiceImpl.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesProcessingResultsServiceImpl.java index 3f1049595..c76977b54 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesProcessingResultsServiceImpl.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesProcessingResultsServiceImpl.java @@ -32,6 +32,8 @@ import com.logpm.aftersales.vo.AftersalesProcessingResultsVO; import com.logpm.aftersales.excel.AftersalesProcessingResultsExcel; import com.logpm.aftersales.mapper.AftersalesProcessingResultsMapper; import com.logpm.aftersales.service.IAftersalesProcessingResultsService; +import com.logpm.basicdata.entity.BasicdataWarehouseEntity; +import com.logpm.basicdata.feign.IBasicdataWarehouseClient; import lombok.AllArgsConstructor; import org.springblade.common.constant.DictBizConstant; import org.springblade.common.constant.aftersales.WorkOrderStatusConstant; @@ -52,6 +54,7 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; +import java.util.Objects; /** * 异常工单处理结果 服务实现类 @@ -64,6 +67,8 @@ import java.util.List; public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl implements IAftersalesProcessingResultsService { + private final IBasicdataWarehouseClient warehouseClient; + private final IAftersalesProcessingMoneyService aftersalesProcessingMoneyService; @Override public IPage selectAftersalesProcessingResultsPage(IPage page, AftersalesProcessingResultsVO aftersalesProcessingResults) { @@ -94,9 +99,13 @@ public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl> roleNames = sysClient.getRoleNames(user.getRoleId()); + if (!roleNames.getData().isEmpty()) { + boolean contains = roleNames.getData().contains("仓库客服"); + if (!contains){ + throw new ServiceException("当前登录人无仓库客服权限,请联系管理员!"); + } + } //查询异常工单完结接口 AftersalesWorkOrderEntity byId = baseMapper.selectById(aftersalesWorkOrderDTO.getId()); if (byId.getWorkOrderStatus().equals(WorkOrderStatusConstant.yichuli.getValue())) { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml index 885b931e4..fa9c039ae 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml @@ -892,7 +892,7 @@