部分提前结清租金实收表状态修改

This commit is contained in:
zzk 2022-05-07 10:14:59 +08:00
parent 38456a4f9b
commit eeef288104
2 changed files with 6 additions and 13 deletions

View File

@ -23,12 +23,11 @@ public class LBInitContractStatusBusiness extends BaseBussiness {
BizObjectManager bom=JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME);
String part = Sqlca.getString(" select case when min(TERMINATE_TYPE)=1 or min(TERMINATE_TYPE) is null then 'Y' else 'N' end from lb_equipment_car_temp lect where FLOWUNID = '"+FlowUnid+"' group by FLOWUNID");
Sqlca.join(bom);
if(contractStatus.equals("100")) {
settle(Sqlca);
}
if("Ìáǰ½áÇå".equals(flowname)&&"Y".equals(settletype)&&"Y".equals(part)) {
contractStatus = "31";
}
}else if("瓊품써헌".equals(flowname)) {
settle(Sqlca);
}
bom.createQuery("update O set CONTRACT_STATUS=:contractstatus where id=:contractid").setParameter("contractstatus", contractStatus).setParameter("contractid", contractId).executeUpdate();
String sMessage="true";

View File

@ -1,15 +1,7 @@
package com.tenwa.lease.flow.project.commbusiness;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import java.util.HashMap;
import java.util.Map;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.BizObjectQuery;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
@ -35,7 +27,9 @@ public class AdvanceSettleChangRent extends BaseBussiness{
Map<String,String> otherProperty = new HashMap<String, String>();
otherProperty.put("FLOWUNID", "");
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
service.copyRentIncomeInfo(tx, fromCondtion, null , otherProperty, ServiceOperatorEnum.TempToFormal,null);
SqlObject sqlObject = new SqlObject("update lc_rent_income_temp set IS_FLOWING = '1' where FLOWUNID = '"+FlowUnid+"'");
tx.executeSQL(sqlObject);
service.copyRentIncomeInfo(tx, fromCondtion, null , otherProperty, ServiceOperatorEnum.TempToFormal,null);
}else{
String SQL="{call proc_terminate_bill_income('"+this.getAttribute("ContractId").toString()+"','"+this.getAttribute("ObjectNo").toString()+"','"+this.getAttribute("CurUserID").toString()+"','"+CurUser.getOrgID()+"')} ";
SqlObject asql = new SqlObject(SQL);