|
@@ -20,7 +20,9 @@ import com.bz.smart_city.entity.pay.PayBaseAccount;
|
|
|
import com.bz.smart_city.entity.pay.PayControlRule;
|
|
|
import com.bz.smart_city.quartz.entity.QuartzEntity;
|
|
|
import com.bz.smart_city.quartz.job.ControlByDayJob;
|
|
|
+import com.bz.smart_city.quartz.job.DeviceValveCommondSync;
|
|
|
import com.bz.smart_city.quartz.job.MessageSendJob;
|
|
|
+import com.bz.smart_city.quartz.job.OpenAccountValveInspection;
|
|
|
import com.bz.smart_city.quartz.service.JobAndTriggerService;
|
|
|
import com.bz.smart_city.service.pay.PayFeeService;
|
|
|
import com.bz.smart_city.service.pay.PayMessagesendrecordService;
|
|
@@ -28,6 +30,7 @@ import com.bz.smart_city.service.pay.PayMessagetemplateService;
|
|
|
import com.github.pagehelper.Page;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.jexl3.JexlException;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.InitializingBean;
|
|
@@ -53,6 +56,7 @@ import static com.google.common.collect.Lists.newArrayList;
|
|
|
* @Description 短信记录
|
|
|
* @Version 1.0
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class PayMessagesendrecordServiceImp implements PayMessagesendrecordService,InitializingBean {
|
|
|
|
|
@@ -470,6 +474,34 @@ public class PayMessagesendrecordServiceImp implements PayMessagesendrecordServi
|
|
|
}
|
|
|
jobAndTriggerService.save(entity2);
|
|
|
|
|
|
+ QuartzEntity entity3 = new QuartzEntity();
|
|
|
+ entity3.setJobGroup("巡检开户开阀操作");
|
|
|
+ entity3.setJobName("OpenAccountValveInspectionSyncByJob" );
|
|
|
+ entity3.setDescription("OpenAccountValveInspectionSyncByJob" );
|
|
|
+ // modify by pengdi ,判断定时任务是否存在,不存在才进行新增
|
|
|
+ log.info("巡检开户开阀操作:" + "0 0/2 * * * ?");
|
|
|
+ entity3.setCronExpression("0 0/2 * * * ?");
|
|
|
+ entity3.setJobClassName(OpenAccountValveInspection.class.getName());
|
|
|
+ boolean exists3 = jobAndTriggerService.isExists(entity3);
|
|
|
+ if(!exists3) {
|
|
|
+ jobAndTriggerService.save(entity3);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ QuartzEntity entity4 = new QuartzEntity();
|
|
|
+ entity4.setJobGroup("巡检阀门操作有效期");
|
|
|
+ entity4.setJobName("DeviceValveSyncByJob" );
|
|
|
+ entity4.setDescription("DeviceValveSyncByJob" );
|
|
|
+ // modify by pengdi ,判断定时任务是否存在,不存在才进行新增
|
|
|
+ boolean exists4 = jobAndTriggerService.isExists(entity4);
|
|
|
+ if(!exists4) {
|
|
|
+ log.info("巡检阀门操作有效期:" + "0 */30 * * * ?");
|
|
|
+ entity4.setCronExpression("0 */30 * * * ?");
|
|
|
+ entity4.setJobClassName(DeviceValveCommondSync.class.getName());
|
|
|
+ jobAndTriggerService.save(entity4);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|