修改定时任务日志记录类

This commit is contained in:
tangfutang 2022-02-24 10:59:28 +08:00
parent 58e34d04ce
commit 3ba8c38d43
2 changed files with 6 additions and 4 deletions

View File

@ -24,9 +24,9 @@ public class CorpusSourceFundIncomeCreateVoucherJob implements Job {
VoucherInfoService voucher = new FundIncomeVoucherPSBC();
voucher.run();
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "success", "成功", curUserId);
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CorpusSourceFundIncomeCreateVoucherJob", "success", "成功", curUserId);
} catch (Exception e) {
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "error", "失败", curUserId);
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CorpusSourceFundIncomeCreateVoucherJob", "error", "失败", curUserId);
}
}

View File

@ -1,5 +1,6 @@
package com.tenwa.lease.app.quartzmession;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
@ -11,6 +12,7 @@ import com.tenwa.voucher.CreateVoucherProcess.InsertVoucherRentIncome;
* 生成卡扣凭证明细-定时任务
* @author xiezhiwen
*/
@DisallowConcurrentExecution
public class CreateVoucherRentIncomeMission implements Job {
@Override
@ -29,9 +31,9 @@ public class CreateVoucherRentIncomeMission implements Job {
InsertVoucherRentIncome ivri=new InsertVoucherRentIncome();
ivri.execute();
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "success", "成功", curUserId);
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CreateVoucherRentIncomeMission", "success", "成功", curUserId);
} catch (Exception e) {
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "error", "失败", curUserId);
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.CreateVoucherRentIncomeMission", "error", "失败", curUserId);
}
}