apzl_leasing/src_tenwa/com/tenwa/lease/app/quartzmession/CreateVoucherRentIncomeMission.java
2018-08-16 15:20:20 +08:00

39 lines
1.5 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();
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", "成功");
} catch (Exception e) {
QuartzUtil.insertLog(startime,"com.tenwa.comm.message.controller.BusinessCancelJob", "error", "失败");
}
}
}