| | |
| | | Dict dict = dictRepository.findByName(Constant.WECOM_LEAVE_TYPE); |
| | | |
| | | // 获取企业微信Token |
| | | wxCpService.getAccessToken(); |
| | | wxCpService.getAccessToken(true); |
| | | // 假勤组件需要获取假期相关配置 |
| | | WxCpCorpConfInfo corpConfInfo = wxCpService.getOaService().getCorpConf(); |
| | | List<DictDetail> newDictDetails = corpConfInfo.getLists().stream().map(m -> { |
| | |
| | | public List<String> uploadWecomMediaFile(List<String> filePaths) { |
| | | try { |
| | | // 获取企业微信Token |
| | | wxCpService.getAccessToken(); |
| | | wxCpService.getAccessToken(true); |
| | | |
| | | // 提交临时素材文件 |
| | | return filePaths.stream().map(path -> { |
| | |
| | | } |
| | | } else if (control.getControlParam().equals("date_range.new_end")) { |
| | | if (field.getType().equals(String.class) || field.getType().equals(Integer.class) || field.getType().equals(Long.class)) { |
| | | dateRange.setBegin(Long.parseLong(String.valueOf(object))); |
| | | dateRange.setEnd(Long.parseLong(String.valueOf(object))); |
| | | } else if (field.getType().equals(Timestamp.class)) { |
| | | Timestamp time = (Timestamp) object; |
| | | dateRange.setBegin(Long.valueOf(time.getTime() / 1000)); |
| | | dateRange.setEnd(Long.valueOf(time.getTime() / 1000)); |
| | | } |
| | | } else if (control.getControlParam().equals("date_range.new_duration")) { |
| | | if (field.getType().equals(String.class) || field.getType().equals(Integer.class) || field.getType().equals(Long.class)) { |
| | |
| | | } |
| | | |
| | | // 获取企业微信Token |
| | | wxCpService.getAccessToken(); |
| | | wxCpService.getAccessToken(true); |
| | | // 初始化参数 |
| | | WxCpOaApplyEventRequest eventRequest = new WxCpOaApplyEventRequest(); |
| | | |