Commit 6f8de30b authored by 38823's avatar 38823

经租工作流改造(保证金划转)

parent b5b73821
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
$Author: 26887cz $Author: 26887cz
$Date: 2021年8月2日15:40:53 $Date: 2021年8月2日15:40:53
$Revision: 1.0 $Revision: 1.04
$Purpose: 保证金划转复核 $Purpose: 保证金划转复核
--> -->
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CSH_TRANSACTION_CONTEMP"> <bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CSH_TRANSACTION_CONTEMP">
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<bm:field name="con_search_term_1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="con_search_term_1" forInsert="false" forUpdate="false"/> <bm:field name="con_search_term_1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="con_search_term_1" forInsert="false" forUpdate="false"/>
<bm:field name="vender_project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="vender_project_number" forInsert="false" forUpdate="false"/> <bm:field name="vender_project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="vender_project_number" forInsert="false" forUpdate="false"/>
<bm:field name="agent_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AGENT_BP_CODE" forInsert="false" forUpdate="false"/> <bm:field name="agent_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AGENT_BP_CODE" forInsert="false" forUpdate="false"/>
<bm:field name="business_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE" forInsert="false" forUpdate="false"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
...@@ -48,6 +49,7 @@ ...@@ -48,6 +49,7 @@
ct.source_contract_id, ct.source_contract_id,
ct.source_transaction_id, ct.source_transaction_id,
ct.contract_id, ct.contract_id,
cc.business_type,
(select t.contract_number from con_contract t (select t.contract_number from con_contract t
where t.contract_id = ct.contract_id where t.contract_id = ct.contract_id
and t.data_class = 'NORMAL' and t.data_class = 'NORMAL'
...@@ -96,6 +98,7 @@ ...@@ -96,6 +98,7 @@
ct.source_contract_id, ct.source_contract_id,
ct.source_transaction_id, ct.source_transaction_id,
ct.contract_id, ct.contract_id,
cc.operat_flag business_type,
'' contract_number, '' contract_number,
'' con_search_term_1, '' con_search_term_1,
'' vender_project_number, '' vender_project_number,
......
...@@ -44,13 +44,26 @@ ...@@ -44,13 +44,26 @@
var trans_record; var trans_record;
trans_record = deposit_records[i]; trans_record = deposit_records[i];
//划出代理店与划入代理店一致且划出代理店为经租代理店时,提交经租营业本部长审批 //划出代理店与划入代理店一致且划出代理店为经租代理店时,提交经租营业本部长审批
var check_flag= false;
if(head_record.get('agent_bp_code')!='D00010027'){
check_flag= true
}else if(head_record.get('agent_bp_code')=='D00010027'){
for (var j = 0; j < deposit_records.length; j++) {
if(head_record.get('agent_bp_code') !=deposit_records[j].get('agent_bp_code')){
var check_flag= true; var check_flag= true;
// if(head_record.get('agent_bp_code')!='D00010027'){
// check_flag= true
// }else if(head_record.get('agent_bp_code')=='D00010027'){
// for (var j = 0; j < deposit_records.length; j++) {
// if(head_record.get('agent_bp_code') !=deposit_records[j].get('agent_bp_code')){
// var check_flag= true;
// break;
// }
// }
// }
//经营性租赁划转到其他,提交经租副部长审批
if(head_record.get('business_type') == 'LEASEOPERAT'){
check_flag == false;
}
//融租划转到经租,提交经租副部长审批
if(head_record.get('business_type') != 'LEASEOPERAT'){
for(var i= 0; i<deposit_records.length; i++){
if(deposit_records.get('business_type') == 'Y' || deposit_records.get('business_type') == 'LEASEOPERAT'){
check_flag = false;
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment