1.正常结清定时任务:系统还款完成后,合同状态变为105

This commit is contained in:
zhangbb 2020-04-30 14:42:23 +08:00
parent 65e3ace2e9
commit 8c18ebcc05

View File

@ -60,8 +60,8 @@ public class ContractInfoForNomalSettle implements Job{
for(String conInfo:conInfos){
// 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();
BizObjectManager bm = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME, tx);
bm.createQuery("update O set contract_status = '105' where id = '"+contractId+"'").executeUpdate();
SaveBusinessStatus.saveByContractId(contractId, tx, "51", jboName.getUserId(arg0, tx));
}
}
@ -70,7 +70,7 @@ public class ContractInfoForNomalSettle implements Job{
//»ñÈ¡Õý³£½áÇåµÄºÏͬ
public String getContractId(JBOTransaction tx ) throws Exception{
BizObjectManager bom=JBOFactory.getBizObjectManager(VI_NORMALSETTLE_CONTRACT.CLASS_NAME,tx);
List<BizObject> boList = bom.createQuery("contract_status <> '105'").getResultList(true);
List<BizObject> boList = bom.createQuery("contract_status <> '105'").getResultList(false);
String conInfos = new String();
for(BizObject bo : boList){
conInfos += bo.getAttribute("contract_id")+"@";