信审复审提交时,需要保留审批时点的历史记录表

This commit is contained in:
yjf 2023-09-22 14:22:50 +08:00
parent 61ab6f9d88
commit 3dc732e1e6
6 changed files with 79 additions and 6 deletions

View File

@ -33,7 +33,7 @@
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("loaned", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"220px\" frameborder=\"0\" src=\""+sWebRootPath+ "/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp?CompClientID=" +compClientID+"&certId="+certId+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("loaned", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"220px\" frameborder=\"0\" src=\""+sWebRootPath+ "/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp?CompClientID=" +compClientID+"&certId="+certId+"&flowunId="+flowunId+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("outstand", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"220px\" frameborder=\"0\" src=\""+sWebRootPath+ "/Tenwa/Customer/Lessee/Comm/CustomerHistory/OutstandInfo.jsp?CompClientID=" +compClientID+"&certId="+certId+"&flowunId="+flowunId+"\"></iframe>", CurPage.getObjectWindowOutput());

View File

@ -5,16 +5,22 @@
String certId = CurPage.getParameter("certId");
String flowunId = CurPage.getParameter("flowunId");
String isHistory = CurPage.getParameter("IsHistory");
CurPage.setAttribute("flowRowCount", "20");
CurPage.setAttribute("pageIdentify", "loan");
ASObjectModel doTemp = new ASObjectModel("LoanedListNew");
if ("true".equals(isHistory)) {
doTemp = new ASObjectModel("LoanedListHis");
doTemp.appendJboWhere(" and O.FLOWUNID_HIS='" + flowunId + "' and o.CONTRACT_STATUS in ('31','100','105')");
} else {
doTemp.appendJboWhere(" and o.CONTRACT_STATUS in ('31','100','105')");
}
doTemp.setDataQueryClass("com.amarsoft.awe.dw.ui.list.FlowMonitorListHtmlGenerator");
doTemp.appendJboWhere(" and o.CONTRACT_STATUS in ('31','100','105')");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1";//--ÉèÖÃΪGrid·ç¸ñ--
dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
dwTemp.setPageSize(20);
doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,business_status",false);
doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,business_status,FLOWUNID_HIS",false);
dwTemp.genHTMLObjectWindow(certId);
String sButtons[][] = {

View File

@ -6,15 +6,21 @@
String certId = CurPage.getParameter("certId");
String flowunId = CurPage.getParameter("flowunId");
String isHistory = CurPage.getParameter("IsHistory");
CurPage.setAttribute("flowRowCount", "20");
ASObjectModel doTemp = new ASObjectModel("LoanedListNew");
if ("true".equals(isHistory)) {
doTemp = new ASObjectModel("LoanedListHis");
doTemp.appendJboWhere(" and O.FLOWUNID_HIS='"+flowunId+"' and o.CONTRACT_STATUS not in ('100','105','31') and (flowunid not in ('"+flowunId+"') or v.isnull(flowunid))");
}else{
doTemp.appendJboWhere(" and o.CONTRACT_STATUS not in ('100','105','31') and (flowunid not in ('"+flowunId+"') or v.isnull(flowunid))");
}
doTemp.setDataQueryClass("com.amarsoft.awe.dw.ui.list.FlowMonitorListHtmlGenerator");
doTemp.appendJboWhere(" and o.CONTRACT_STATUS not in ('100','105','31') and (flowunid not in ('"+flowunId+"') or v.isnull(flowunid))");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1";//--ÉèÖÃΪGrid·ç¸ñ--
dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
dwTemp.setPageSize(20);
doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,COUPUS_OVER,IS_OVERDUE",false);
doTemp.setVisible("PROJECT_ID,FLOWUNID,CERTID_WITH_ROLE,CONTRACT_STATUS,COUPUS_OVER,IS_OVERDUE,FLOWUNID_HIS",false);
dwTemp.genHTMLObjectWindow(certId);
String sButtons[][] = {};
%>

View File

@ -5263,6 +5263,29 @@
</managerProperties>
</manager>
</class>
<class name="LB_PROJECT_CUSTOMER_HIS" label="" keyAttributes="ID">
<attributes>
<attribute name="PROJECT_ID" label="項目id" type="STRING"/>
<attribute name="FLOWUNID" label="流程id" type="STRING"/>
<attribute name="FLOWUNID_HIS" label="流程历史id" type="STRING"/>
<attribute name="PROJECT_NO" label="项目编号" type="STRING"/>
<attribute name="CONTRACT_NO" label="合同编号" type="STRING"/>
<attribute name="CUSTOMER_NAME" label="客户名称" type="STRING"/>
<attribute name="DISTRIBUTOR_NAME" label="经销商名称" type="STRING"/>
<attribute name="FIRST_PAYMENT_RATIO" label="首付款比例" type="STRING"/>
<attribute name="CLEAN_LEASE_MONEY" label="融资额" type="STRING"/>
<attribute name="LEASE_TERM" label="租赁期次" type="STRING"/>
<attribute name="contract_status" label="合同状态" type="STRING"/>
<attribute name="business_status" label="信审状态" type="STRING"/>
<attribute name="certid_with_role" label="客户合同角色" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="LB_PROJECT_CUSTOMER_HIS" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="VERIFICATIONSPARE" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>

View File

@ -270,11 +270,11 @@ public class FlowAction {
this.flowNo, "", this.getFlowStartActionParm(tx,
objectNo));
}
deleteTaskService.initDeleteNodes();
deleteTaskService.exectueFlowDelete();
DataOperatorUtil.deleteJBOByCondtion(FLOW_WORK_FLAG.CLASS_NAME,
condtion, tx);
if (!"BusinessApplyFlow".equals(flowNo)) { //业务申请取消不删除数据修改状态
deleteTaskService.initDeleteNodes();
DataOperatorUtil.deleteJBOByCondtion(
FLOW_BUSSINESS_OBJECT.CLASS_NAME, condtion, tx);
condtion.clear();

View File

@ -0,0 +1,38 @@
package com.tenwa.lease.flow.project.commbusiness;
import com.amarsoft.awe.util.ASResultSet;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
import java.util.ArrayList;
import java.util.stream.Collectors;
/**
* 业务申请 客户历史查询数据结束入表
*/
public class ProjectHisInsertBusiness extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("FlowUnid").toString();
StringBuilder querySqlSb = new StringBuilder();
querySqlSb.append(" select certid from customer_family_temp where Partner_ = 'Y' and flowunid = '"+flowunid+"'")
.append(" union ")
.append(" select certid from lb_guarantee_unit_temp where flowunid = '"+flowunid+"'")
.append(" union ")
.append(" select certid from lb_union_lessee_temp lul join customer_info_temp cit on lul.FLOWUNID = cit.flowunid where IS_MAIN = 'Y' and lul.flowunid = '"+flowunid+"'");
ASResultSet asResultSet = Sqlca.getASResultSet(querySqlSb.toString());
ArrayList<String> conditionList = new ArrayList<>();
while (asResultSet.next()) {
conditionList.add(asResultSet.getString("certid"));
}
if (conditionList.size() > 0) {
String whereSql = conditionList.stream().map(item -> String.format("locate('%s',certid_with_role)", item)).collect(Collectors.joining(" or "));
Sqlca.executeSQL(new SqlObject("insert into lb_project_customer_his (PROJECT_ID,PROJECT_NO, FLOWUNID, CONTRACT_NO, CUSTOMER_NAME, DISTRIBUTOR_NAME, FIRST_PAYMENT_RATIO, CLEAN_LEASE_MONEY, LEASE_TERM, contract_status, business_status, certid_with_role,FLOWUNID_HIS) select *,'"+flowunid+"' from vi_project_his_list where "+whereSql));
}
return "true";
}
}