apzl_leasing/src_tenwa/com/tenwa/lease/app/quartzmession/CreateVoucherRentIncomeMission.java
2018-08-27 11:59:21 +08:00

43 lines
1.7 KiB
Java

package com.tenwa.lease.app.quartzmession;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.amarsoft.are.util.StringFunction;
import com.base.util.QuartzUtil;
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherInsuranceSettlement;
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMonthSettlement;
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherRentIncome;
import com.tenwa.voucher.CreateVoucherProcess.InsertVoucherRentIncome;
public class CreateVoucherRentIncomeMission implements Job {
@Override
public void execute(JobExecutionContext arg0) throws JobExecutionException {
String startime = StringFunction.getTodayNow();
Object userId = arg0.getTrigger().getJobDataMap().get("CurUserId");
String curUserId = userId == null? "system" : userId.toString();
try{
InsertVoucherRentIncome ivri=new InsertVoucherRentIncome();
ivri.execute();
CreateVoucherInsuranceSettlement cvis=new CreateVoucherInsuranceSettlement();
cvis.CreateVoucher("PZ2018072100000029");//回款-- 收到理赔保险费 --回租
cvis.CreateVoucher("PZ2018080400000086");//回款-- 收到理赔保险费 --直租
cvis.CreateVoucher("PZ2018072100000054");//保险理赔 -记录理赔保险费--回租
cvis.CreateVoucher("PZ2018080200000064");//保险理赔 -记录理赔保险费--直租
//cvis.CreateVoucher("PZ2018080600000114");//理赔保险费冲抵逾期利息及逾期租金--直租
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "success", "成功", curUserId);
} catch (Exception e) {
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "error", "失败", curUserId);
}
}
}