合同借宿后, 在合同信息表维护结束时间

This commit is contained in:
xiezhiwen 2019-07-09 10:09:05 +08:00
parent b6a17eb789
commit bd139cba82

View File

@ -43,7 +43,7 @@ public class ContractInfoForNomalEndSign implements Job{
try {
JBOTransaction tx = JBOFactory.createJBOTransaction();
ownershipTransferSign(tx,arg0);
ownershipTransferSign(tx,arg0,startime);
tx.commit();
QuartzUtil.insertLog(startime, "quartz.ContractInfoForNomalEndSign", "success", "³É¹¦", curUserId);
} catch (Exception e) {
@ -52,7 +52,7 @@ public class ContractInfoForNomalEndSign implements Job{
}
}
public void ownershipTransferSign(JBOTransaction tx ,JobExecutionContext arg0) throws Exception{
public void ownershipTransferSign(JBOTransaction tx ,JobExecutionContext arg0,String startime) throws Exception{
String conInfo1 = getContractId(tx);
if(!(conInfo1 == null || conInfo1.length() <= 0)){
String[] conInfos = conInfo1.split(",");
@ -60,7 +60,7 @@ public class ContractInfoForNomalEndSign implements Job{
// String customerName = conInfo.split("@")[1];
String contractId = conInfo.split("@")[0];
BizObjectManager bm = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME, tx);
bm.createQuery("update O set contract_status = '105' where id = '"+contractId+"'").executeUpdate();
bm.createQuery("update O set contract_status = '105',ACTUAL_END_DATE='"+startime+"' where id = '"+contractId+"'").executeUpdate();
SaveBusinessStatus.saveByContractId(contractId, tx, "61", jboName.getUserId(arg0, tx));
}
}