提前部分结清租金实收表调整
This commit is contained in:
parent
6436061626
commit
ef28e4dbe9
@ -353,7 +353,7 @@ public class EarlyContract {
|
||||
*/
|
||||
String sql="UPDATE LB_EQUIPMENT_CAR_TEMP SET TERMINATE_TYPE='1',SETTLE_STATUS='1' WHERE FLOWUNID='"+flowunid+"' AND ifnull(TERMINATE_TYPE,'1') <> '2' ";
|
||||
Sqlca.executeSQL(sql);
|
||||
sql = "UPDATE LB_EQUIPMENT_CAR_TEMP SET SETTLE_STATUS='1',TERMINATE_TYPE='1' WHERE (TERMINATE_TYPE='3' or SETTLE_STATUS='3') AND FLOWUNID='"+flowunid+"'";
|
||||
sql = "UPDATE LB_EQUIPMENT_CAR_TEMP SET SETTLE_STATUS='1',TERMINATE_TYPE='1' WHERE TERMINATE_TYPE='3' AND FLOWUNID='"+flowunid+"'";
|
||||
Sqlca.executeSQL(sql);
|
||||
sql="UPDATE LB_EQUIPMENT_CAR_TEMP SET SETTLE_STATUS='3' WHERE (TERMINATE_TYPE IS NULL OR TERMINATE_TYPE='1') AND FLOWUNID='"+flowunid+"' ";
|
||||
/**
|
||||
|
||||
@ -3,6 +3,9 @@ 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;
|
||||
@ -12,17 +15,33 @@ import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
|
||||
|
||||
public class AdvanceSettleChangRent extends BaseBussiness{
|
||||
|
||||
@Override
|
||||
public Object run(Transaction tx) throws Exception {
|
||||
this.initBussinessParam(tx.getTransaction());
|
||||
String flowname=(String)this.getAttribute("FlowName");
|
||||
String settletype=this.getAttribute("settletype").toString();
|
||||
String FlowUnid=this.getAttribute("FlowUnid").toString();
|
||||
String part = tx.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");
|
||||
ASUser CurUser = ASUser.getUser(this.getAttribute("CurUserID").toString(), tx); //µ±Ç°Óû§¶ÔÏó
|
||||
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);
|
||||
ASResultSet rs = null;
|
||||
rs = tx.getASResultSet(asql);
|
||||
if("Ìáǰ½áÇå".equals(flowname)&&"Y".equals(settletype)&&"Y".equals(part)) {
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
fromCondtion.put("FLOWUNID", FlowUnid);
|
||||
Map<String,String> otherProperty = new HashMap<String, String>();
|
||||
otherProperty.put("FLOWUNID", "");
|
||||
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
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);
|
||||
ASResultSet rs = null;
|
||||
rs = tx.getASResultSet(asql);
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user