Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
fb2f7657
Commit
fb2f7657
authored
Dec 24, 2020
by
chenzhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uat测试若干调整
parent
9eefd7a4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
13 deletions
+100
-13
con_bp_master_query.lwm
...n/webapp/WEB-INF/classes/wx/WX100/con_bp_master_query.lwm
+19
-10
con_contract_list_query.lwm
...bapp/WEB-INF/classes/wx/WX100/con_contract_list_query.lwm
+21
-2
get_current_time.lwm
...main/webapp/WEB-INF/classes/wx/WX100/get_current_time.lwm
+20
-0
con_bp_master_query.lsc
src/main/webapp/modules/wx/WX100/con_bp_master_query.lsc
+1
-1
con_contract_list_query.lsc
src/main/webapp/modules/wx/WX100/con_contract_list_query.lsc
+1
-0
get_current_time.lsc
src/main/webapp/modules/wx/WX100/get_current_time.lsc
+38
-0
No files found.
src/main/webapp/WEB-INF/classes/wx/WX100/con_bp_master_query.lwm
View file @
fb2f7657
...
...
@@ -3,16 +3,25 @@
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select decode(v.bp_count,0,'1','0') existsFlag
from (select count(1) bp_count from hls_bp_master h,
hls_bp_master_signer hb
where h.social_code = ${@social_code}
and h.bp_name = ${@bp_name}
and hb.id_card = ${@agent_id_no}
and hb.name = ${@agent_name}
and h.bp_id = hb.bp_id
and h.enabled_flag = 'Y'
and h.bp_class = 'ORG') v
select decode(v.bp_count, 0, '1', '0') existsFlag
from ( select (select count(1)
from hls_bp_master h, hls_bp_master_signer hb
where h.social_code = ${@social_code}
and h.bp_name = ${@bp_name}
and hb.id_card = ${@agent_id_no}
and hb.name = ${@agent_name}
and h.bp_id = hb.bp_id
and h.enabled_flag = 'Y'
and h.bp_class = 'ORG') +
(select count(1)
from HLS_BP_MASTER t
where t.enabled_flag = 'Y'
and t.bp_class = 'ORG'
and t.bp_type = 'AGENT'
and t.social_code = ${@social_code}
and t.bp_name = ${@bp_name}
and t.id_card_no_ag = ${@agent_id_no}
and t.bp_name_ag = ${@agent_name}) bp_count from dual) v
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_contract_list_query.lwm
View file @
fb2f7657
...
...
@@ -77,7 +77,25 @@
and ((cc.cf_type = 1 and cc.cf_item in (1,200,250)) or (cc.cf_item = 11 and cc.cf_type =11)
or (cc.cf_item = 8 and cc.cf_type = 8) or (cc.cf_item = 9 and cc.cf_type = 9))
and cc.cf_direction = 'INFLOW'
and cc.cf_status = 'RELEASE') due_amount_all --应还总额
and cc.cf_status = 'RELEASE') due_amount_all, --应还总额
(SELECT cs.sign_url
from con_contract_ele_signer cs
where cs.contract_id = t1.contract_id
and ((${@account_type} = 'AG' and
(cs.id_no =
(select hm.social_code
from hls_bp_master hm, con_contract_bp cb
where hm.bp_id = cb.bp_id
and cb.contract_id = t1.contract_id
and cb.id_card_no_leg = ${@id_no}) or
cs.id_no =
(select hm.social_code
from hls_bp_master hm, hls_bp_master_signer hs
where hm.bp_id = hs.bp_id
and hm.bp_id = t1.bp_id_tenant
and hs.id_card = ${@id_no}))) or
(${@account_type} != 'AG' and cs.id_no = ${@id_no}))
and rownum = 1) sign_url
from con_contract t1
where t1.data_class = 'NORMAL'
and t1.sign_contract_status = decode(t1.contract_status,'NEW','SIGN',t1.sign_contract_status)
...
...
@@ -97,7 +115,7 @@
where ccb.bp_id = hb.bp_id
and ccb.contract_id = t1.contract_id
and (ccb.bp_category in ('TENANT', 'GUARANTOR') and
(ccb.id_card_no = ${@id_no} or
ccb.id_no_sp = ${@id_no}
)))) or
(ccb.id_card_no = ${@id_no} or
(ccb.id_no_sp = ${@id_no} and ccb.sp_sign_flag = 'Y')
)))) or
(${@account_type} = 'AG' and exists
(select 1
from hls_bp_master_signer hs
...
...
@@ -158,6 +176,7 @@
<bm:field
name=
"bank_branch_num"
/>
<bm:field
name=
"lease_times"
/>
<bm:field
name=
"due_amount_all"
/>
<bm:field
name=
"sign_url"
/>
</bm:fields>
<bm:query-fields>
<bm:query-field
name=
"contract_number"
queryExpression=
"v.contract_number like '%'||${@contract_number}||'%' "
/>
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/get_current_time.lwm
0 → 100644
View file @
fb2f7657
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select (case
when to_date(${@lease_start_date}, 'yyyy-MM-dd') <
trunc(sysdate) then
'N'
else
'Y'
end) lease_flag
from dual
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"lease_flag"
/>
</bm:fields>
</bm:model>
src/main/webapp/modules/wx/WX100/con_bp_master_query.lsc
View file @
fb2f7657
...
...
@@ -21,7 +21,7 @@
$ctx.success = "false";
$ctx.parameter.return_status = '1';
$ctx.parameter.return_message = String(e);
existsFlag = '1'
existsFlag = '1'
;
}
//返回结果
...
...
src/main/webapp/modules/wx/WX100/con_contract_list_query.lsc
View file @
fb2f7657
...
...
@@ -112,6 +112,7 @@
"bankName":contract_list_detail.bank_account_name,
"bankNum":contract_list_detail.bank_branch_num,
"dueAmountAll":contract_list_detail.due_amount_all,
"signUrl":contract_list_detail.sign_url,
"cashflowList":cashflowList,
"docsList": docsList
});
...
...
src/main/webapp/modules/wx/WX100/get_current_time.lsc
0 → 100644
View file @
fb2f7657
<?xml version="1.0" encoding="UTF-8"?>
<a:service
xmlns:ns1=
"leaf.application.action"
xmlns:p=
"uncertain.proc"
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:s=
"leaf.plugin.script"
trace=
"true"
>
<a:init-procedure>
<s:server-script
import=
"app/app_login_check.js"
>
<![CDATA[
function get_current_time() {
var leaseFlag_map;
var leaseFlag;
try {
var leaseFlag_query = $bm('wx.WX100.get_current_time');
leaseFlag_map = leaseFlag_query.queryAsMap({
lease_start_date:$ctx.parameter.leaseStartDate
});
var existsFlag_details = leaseFlag_map.getChildren();
leaseFlag = existsFlag_details[0].lease_flag;
$ctx.parameter.return_status = '0';
$ctx.parameter.return_message = '执行成功';
} catch (e) {
$ctx.success = "false";
$ctx.parameter.return_status = '1';
$ctx.parameter.return_message = String(e);
leaseFlag = '';
}
//返回结果
var result = {
code: $ctx.parameter.return_status,
message: $ctx.parameter.return_message,
leaseFlag: leaseFlag
};
$ctx.parameter.json = JSON.stringify(result);
}
if ($ctx.parameter.return_status != 'E' && $ctx.parameter.return_status != 'TIMEOUT') {
get_current_time();
}
]]>
</s:server-script>
</a:init-procedure>
<a:service-output
output=
"/parameter/@json"
/>
</a:service>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment