| | |
| | | }
|
| | | // 添加企微申请参数
|
| | | Map<String, String> leaveTypeMap = dictDetailRepository.findByDictName(Constant.LEAVE_TYPE).stream().collect(Collectors.toMap(DictDetail::getValue, DictDetail::getLabel));
|
| | | attendanceLeave.setWecomOptionKey(templateService.getVacationKey(leaveTypeMap.get(attendanceLeave.getLeaveType())));
|
| | | // attendanceLeave.setWecomOptionKey(templateService.getVacationKey(leaveTypeMap.get(attendanceLeave.getLeaveType())));
|
| | | attendanceLeave.setWecomOptionKey(leaveTypeMap.get(attendanceLeave.getLeaveType()));
|
| | | attendanceLeave.setWecomApproveWecomId(approvalUser.getWeComId());
|
| | | // 提交申请
|
| | | Map<String, String> approvalResultMap = templateControlFieldService.createWecomApproval(attendanceLeave, user.getWeComId());
|