|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zhongshu.card.server.core.service.schedule;
|
|
|
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.client.type.DataState;
|
|
|
import com.zhongshu.card.client.type.ScheduleType;
|
|
|
@@ -15,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -59,12 +61,19 @@ public class ScheduleTaskConfigService {
|
|
|
try {
|
|
|
String lockKey = projectMainPaySettingDao.acquire(entity.getId(), 5000L);
|
|
|
if (StringUtils.isNotEmpty(lockKey)) {
|
|
|
+// 项目结算任务
|
|
|
String aboutDataId = entity.getProjectOid() + "_" + entity.getChannelType().name();
|
|
|
ScheduleTaskConfig taskConfig = scheduleTaskConfigDao.findTopByAboutDataId(aboutDataId);
|
|
|
if (ObjectUtils.isEmpty(taskConfig)) {
|
|
|
taskConfig = new ScheduleTaskConfig();
|
|
|
}
|
|
|
taskConfig.setAboutDataId(aboutDataId);
|
|
|
+ HashMap<String, Object> data = new HashMap<>();
|
|
|
+ data.put("projectOid", entity.getProjectOid());
|
|
|
+ data.put("id", entity.getId());
|
|
|
+ data.put("channelType", entity.getChannelType());
|
|
|
+
|
|
|
+ taskConfig.setData(data);
|
|
|
taskConfig.setDataState(DataState.Enable);
|
|
|
taskConfig.setScheduleType(ScheduleType.SettlementTask);
|
|
|
String expression = "";
|