| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.api.R; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | if(CollectionUtils.isNotEmpty(memberList)){ |
| | | userIds.addAll(memberList.stream().map(m->m.getId()).collect(Collectors.toList())); |
| | | } |
| | | //公务用车 默认加入 司机抄送 |
| | | if(approveTempl.getType()==Constants.THREE||approveTempl.getType()==Constants.FOUR){ |
| | | CarUseBook carUseBook = carUseBookMapper.selectById(businessId); |
| | | if(Objects.isNull(carUseBook)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为查询到用车申请信息"); |
| | | } |
| | | CarDriver carDriver = carDriverMapper.selectById(carUseBook.getDriverId()); |
| | | if(Objects.isNull(carDriver)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为查询到司机信息"); |
| | | } |
| | | userIds.add(carDriver.getMemberId()); |
| | | } |
| | | //公务用车 默认加入 司机抄送 2024年6月28日16:49:08 司机抄送修改到 审批业务时进行发送 |
| | | // if(approveTempl.getType()==Constants.THREE||approveTempl.getType()==Constants.FOUR){ |
| | | // CarUseBook carUseBook = carUseBookMapper.selectById(businessId); |
| | | // if(Objects.isNull(carUseBook)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为查询到用车申请信息"); |
| | | // } |
| | | // CarDriver carDriver = carDriverMapper.selectById(carUseBook.getDriverId()); |
| | | // if(Objects.isNull(carDriver)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"为查询到司机信息"); |
| | | // } |
| | | // userIds.add(carDriver.getMemberId()); |
| | | // } |
| | | |
| | | if(CollectionUtils.isNotEmpty(userIds)){ |
| | | for (Integer memberId:userIds) { |