修复起租后合同变更没有投放信息
This commit is contained in:
parent
77f52d3ed3
commit
a2ec078ff1
@ -5,12 +5,14 @@ import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.tenwa.comm.exception.BusinessException;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.reckon.bean.ConditionBean;
|
||||
import com.tenwa.reckon.bean.FundRentPlanBean;
|
||||
import com.tenwa.reckon.bean.TabCalBean;
|
||||
@ -95,9 +97,20 @@ public abstract class FundRentPlanExecutor {
|
||||
String Sql = "INSERT INTO " + tcb.getRentPlan_tb().substring(tcb.getRentPlan_tb().lastIndexOf(".") + 1) + " ("
|
||||
+ "id, flowunid, " + tcb.getPlanCName() + ", plan_list, "
|
||||
+ "plan_date, INTEREST_DATE, plan_status, rent, corpus, "
|
||||
+ "year_rate, interest, all_remain_corpus, CORPUS_BUSINESS, INTEREST_BUSINESS) "
|
||||
+ " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
||||
+ "year_rate, interest, all_remain_corpus, CORPUS_BUSINESS, INTEREST_BUSINESS,PROJECT_ID,CONTRACT_ID,PROJECT_PLAN_NUMBER,CONTRACT_PLAN_NUMBER) "
|
||||
+ " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
||||
PreparedStatement ps = null;
|
||||
|
||||
String projectId = null;
|
||||
String projectPlanNumber = null;
|
||||
String contractPlanNumber = null;
|
||||
String PPCSql = " select PROJECT_ID,PROJECT_PLAN_NUMBER,CONTRACT_PLAN_NUMBER from lc_calc_condition_temp where FLOWUNID='"+tcb.getDocId()+"'";
|
||||
List<Map<String, String>> PPCSqldata = DataOperatorUtil.getDataBySql(PPCSql , tran);
|
||||
if( PPCSqldata!=null && PPCSqldata.size()>0 ) {
|
||||
projectId = PPCSqldata.get(0).get("PROJECT_ID");
|
||||
projectPlanNumber = PPCSqldata.get(0).get("PROJECT_PLAN_NUMBER");
|
||||
contractPlanNumber = PPCSqldata.get(0).get("CONTRACT_PLAN_NUMBER");
|
||||
}
|
||||
try {
|
||||
ps = conn.prepareStatement(Sql);
|
||||
for(int i = 0; i < rent_list.size(); i ++) {
|
||||
@ -115,6 +128,10 @@ public abstract class FundRentPlanExecutor {
|
||||
ps.setString(12, NumberUtils.nullToZero(corpusOverage_list.get(i)));
|
||||
ps.setString(13, fpb.getColumn_1().get(i));
|
||||
ps.setString(14, fpb.getColumn_2().get(i));
|
||||
ps.setString(15, projectId );
|
||||
ps.setString(16, tcb.getCb().getContractId() );
|
||||
ps.setString(17, projectPlanNumber);
|
||||
ps.setString(18, contractPlanNumber);
|
||||
ps.addBatch();
|
||||
startList++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user