|
@@ -66,7 +66,7 @@ public class DingTalkScheduledTask {
|
|
* 每个小时定期更新出差申请数据
|
|
* 每个小时定期更新出差申请数据
|
|
* 出差申请信息暂时不进行更新
|
|
* 出差申请信息暂时不进行更新
|
|
*/
|
|
*/
|
|
- @Scheduled(fixedDelay = 3600000L,initialDelay = 10000L)
|
|
|
|
|
|
+// @Scheduled(fixedDelay = 3600000L,initialDelay = 10000L)
|
|
void updateBusinessTripProcessInstanceIdList() throws ApiException {
|
|
void updateBusinessTripProcessInstanceIdList() throws ApiException {
|
|
updateProcessInstanceIdList(DingTalkConstant.PROCESS_CODE_BUSINESS_TRIP);
|
|
updateProcessInstanceIdList(DingTalkConstant.PROCESS_CODE_BUSINESS_TRIP);
|
|
}
|
|
}
|
|
@@ -77,7 +77,7 @@ public class DingTalkScheduledTask {
|
|
* 每小时根据出差申请Id跟新出差申请信息。
|
|
* 每小时根据出差申请Id跟新出差申请信息。
|
|
* 出差申请信息暂时不进行更新
|
|
* 出差申请信息暂时不进行更新
|
|
*/
|
|
*/
|
|
- @Scheduled(fixedDelay = 3600000L,initialDelay = 10000L)
|
|
|
|
|
|
+// @Scheduled(fixedDelay = 3600000L,initialDelay = 10000L)
|
|
void updateProcessInstanceList() throws ApiException {
|
|
void updateProcessInstanceList() throws ApiException {
|
|
updateChuanyunAskForLeave(DingTalkConstant.PROCESS_CODE_ASKFORLEAVE);
|
|
updateChuanyunAskForLeave(DingTalkConstant.PROCESS_CODE_ASKFORLEAVE);
|
|
}
|
|
}
|
|
@@ -86,7 +86,7 @@ public class DingTalkScheduledTask {
|
|
* 业务招待申请更新
|
|
* 业务招待申请更新
|
|
* @throws ApiException
|
|
* @throws ApiException
|
|
*/
|
|
*/
|
|
-// @Scheduled(fixedDelay = 3600000L,initialDelay = 10000L)
|
|
|
|
|
|
+ @Scheduled(fixedDelay = 3600000L,initialDelay = 10000L)
|
|
void updateChuanyunBusinessEntertainmentProcessInstanceList() throws ApiException {
|
|
void updateChuanyunBusinessEntertainmentProcessInstanceList() throws ApiException {
|
|
updateChuanyunBusinessEntertainment(DingTalkConstant.PROCESS_CODE_BUSINESSENTERTAINMENT);
|
|
updateChuanyunBusinessEntertainment(DingTalkConstant.PROCESS_CODE_BUSINESSENTERTAINMENT);
|
|
}
|
|
}
|
|
@@ -125,6 +125,7 @@ public class DingTalkScheduledTask {
|
|
List<OapiProcessinstanceGetResponse.FormComponentValueVo> formComponentValueVoList = oapiProcessinstanceGetResponse.getProcessInstance().getFormComponentValues();
|
|
List<OapiProcessinstanceGetResponse.FormComponentValueVo> formComponentValueVoList = oapiProcessinstanceGetResponse.getProcessInstance().getFormComponentValues();
|
|
ChuanyunBusinessEntertainmentDO chuanyunBusinessEntertainmentDO = ChuanyunBusinessEntertainmentDO.formBusinessEntertainmentDTO(formComponentValueVoList);
|
|
ChuanyunBusinessEntertainmentDO chuanyunBusinessEntertainmentDO = ChuanyunBusinessEntertainmentDO.formBusinessEntertainmentDTO(formComponentValueVoList);
|
|
chuanyunBusinessEntertainmentDO.setBusinessId(oapiProcessinstanceGetResponse.getProcessInstance().getBusinessId());
|
|
chuanyunBusinessEntertainmentDO.setBusinessId(oapiProcessinstanceGetResponse.getProcessInstance().getBusinessId());
|
|
|
|
+ chuanyunBusinessEntertainmentDO.setObjectId(UUID.randomUUID().toString());
|
|
ChuanyunBusinessEntertainmentDO oldChuanyunBusinessEntertainmentDO = chuanyunBusinessEntertainmentDao.findByBusinessId(oapiProcessinstanceGetResponse.getProcessInstance().getBusinessId());
|
|
ChuanyunBusinessEntertainmentDO oldChuanyunBusinessEntertainmentDO = chuanyunBusinessEntertainmentDao.findByBusinessId(oapiProcessinstanceGetResponse.getProcessInstance().getBusinessId());
|
|
if(oldChuanyunBusinessEntertainmentDO != null ) {
|
|
if(oldChuanyunBusinessEntertainmentDO != null ) {
|
|
chuanyunBusinessEntertainmentDao.deleteById(oldChuanyunBusinessEntertainmentDO.getObjectId());
|
|
chuanyunBusinessEntertainmentDao.deleteById(oldChuanyunBusinessEntertainmentDO.getObjectId());
|