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
73c4d691
Commit
73c4d691
authored
1 year ago
by
18083
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/remote_dev' into remote_dev
parents
932ad8c2
407de007
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
789 additions
and
281 deletions
+789
-281
ConExportMapper.xml
...sources/com/hand/hls/hlcm/cont/mapper/ConExportMapper.xml
+21
-8
sys_code_value_v_lease.lwm
...n/webapp/WEB-INF/classes/basic/sys_code_value_v_lease.lwm
+2
-2
con_contract_dun_for_query.lwm
...EB-INF/classes/cont/CON620/con_contract_dun_for_query.lwm
+515
-255
con_contract_dun_for_repur_query.lwm
.../classes/cont/CON620/con_contract_dun_for_repur_query.lwm
+175
-1
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+7
-5
con_contract_account_detail.lview
...app/modules/cont/CON620/con_contract_account_detail.lview
+14
-0
con_contract_rent_detail.lview
...webapp/modules/cont/CON620/con_contract_rent_detail.lview
+12
-2
con_contract_rent_dun_query.lview
...app/modules/cont/CON620/con_contract_rent_dun_query.lview
+4
-0
hls_con_contract_change_detail.lview
.../modules/cont/CON731/hls_con_contract_change_detail.lview
+11
-0
con_early_termination_et_detail.lview
...ules/cont/CON_ET001/con_early_termination_et_detail.lview
+14
-5
con_contract_change_repo_detail.lview
...es/cont/CON_REPO001/con_contract_change_repo_detail.lview
+14
-3
No files found.
src/main/resources/com/hand/hls/hlcm/cont/mapper/ConExportMapper.xml
View file @
73c4d691
...
@@ -1097,16 +1097,29 @@
...
@@ -1097,16 +1097,29 @@
<select
id=
"selectContractDetailList"
parameterType=
"integer"
resultType=
"java.util.HashMap"
>
<select
id=
"selectContractDetailList"
parameterType=
"integer"
resultType=
"java.util.HashMap"
>
Select
Select hb.bp_name,
hb.bp_name,
c.contract_number,
c.contract_number,
(Select cl.machine_number
(Select cl.machine_number
From con_contract_lease_item cl
From con_contract_lease_item cl
Where cl.contract_id = c.contract_id) As machine_number,
Where cl.contract_id = c.contract_id) As machine_number,
to_char(Sysdate, 'yyyy"年"mm"月"dd"日"') As today
to_char(Sysdate, 'yyyy"年"mm"月"dd"日"') As today
From con_contract c, hls_bp_master hb
From con_contract c, hls_bp_master hb
Where c.bp_id_tenant = hb.bp_id
Where c.bp_id_tenant = hb.bp_id
and c.contract_id = #{contractId}
and c.contract_id = #{contractId}
and nvl(division, '-1') not IN ('70', '92')
union all
Select hb.bp_name,
c.contract_number,
(Select cl.machine_number_70
From con_contract_lease_item cl
Where cl.contract_id = c.contract_id) As machine_number,
to_char(Sysdate, 'yyyy"年"mm"月"dd"日"') As today
From con_contract c, hls_bp_master hb
Where c.bp_id_tenant = hb.bp_id
and c.contract_id = #{contractId}
and nvl(division, '-1') IN ('70', '92')
</select>
</select>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/basic/sys_code_value_v_lease.lwm
View file @
73c4d691
...
@@ -37,14 +37,14 @@
...
@@ -37,14 +37,14 @@
FROM exp_emp_assign_e_v t
FROM exp_emp_assign_e_v t
WHERE t.user_id = ${/session/@user_id}
WHERE t.user_id = ${/session/@user_id}
and PARENT_UNIT_ID <>
1544
and PARENT_UNIT_ID <>
1544
AND v.code_value IN ('10', '20', '30', '40','50','70','80','90','91'))
AND v.code_value IN ('10', '20', '30', '40','50','70','80','90','91'
,'92','99','60'
))
UNION ALL
UNION ALL
SELECT v.code_value AS value_code, v.code_value_name AS value_name
SELECT v.code_value AS value_code, v.code_value_name AS value_name
FROM sys_code_values_v v
FROM sys_code_values_v v
WHERE v.code_enabled_flag = 'Y'
WHERE v.code_enabled_flag = 'Y'
AND v.code_value_enabled_flag = 'Y'
AND v.code_value_enabled_flag = 'Y'
AND v.code = 'DIVISION'
AND v.code = 'DIVISION'
AND v.code_value IN ('10', '20', '30', '40','50','70','80','90','91')
AND v.code_value IN ('10', '20', '30', '40','50','70','80','90','91'
,'92','99','60'
)
AND NOT EXISTS (SELECT 1
AND NOT EXISTS (SELECT 1
FROM exp_emp_assign_e_v t
FROM exp_emp_assign_e_v t
WHERE t.user_id = ${/session/@user_id}
WHERE t.user_id = ${/session/@user_id}
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/cont/CON620/con_contract_dun_for_query.lwm
View file @
73c4d691
...
@@ -10,273 +10,533 @@
...
@@ -10,273 +10,533 @@
<bm:operation
name=
"query"
>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
<bm:query-sql>
<![CDATA[
SELECT
SELECT
t1.*,
t1.*,
(Select Min(cc1.TIMES)
(Select Min(cc1.TIMES)
From con_contract_cashflow cc1
From con_contract_cashflow cc1
Where cc1.contract_id = t1.contract_id
Where cc1.contract_id = t1.contract_id
And cc1.due_date <= Sysdate
And cc1.due_date <= Sysdate
And cc1.cf_item In (1, 8, 9)
And cc1.cf_item In (1, 8, 9)
and cc1.cf_status='RELEASE'
and cc1.cf_status='RELEASE'
And cc1.write_off_flag <>
'FULL'
And cc1.write_off_flag <>
'FULL'
And cc1.due_date = t1.min_overdue_date) min_overdue_times
And cc1.due_date = t1.min_overdue_date) min_overdue_times
FROM (SELECT
FROM (SELECT
cc.contract_id,
cc.contract_id,
cc.document_type,
cc.document_type,
cc.document_category,
cc.document_category,
--cc.contract_name,
--cc.contract_name,
(SELECT pp.project_number
(SELECT pp.project_number
FROM prj_project pp
FROM prj_project pp
WHERE pp.project_id = cc.project_id) project_number,
WHERE pp.project_id = cc.project_id) project_number,
cc.bp_id_tenant,
cc.bp_id_tenant,
to_char(cc.inception_of_lease, 'yyyy-mm-dd') inception_of_lease,
to_char(cc.inception_of_lease, 'yyyy-mm-dd') inception_of_lease,
(SELECT hb.bp_name
(SELECT hb.bp_name
FROM hls_bp_master hb, con_contract_bp ccb
FROM hls_bp_master hb, con_contract_bp ccb
WHERE hb.bp_category = 'AGENT'
WHERE hb.bp_category = 'AGENT'
AND ccb.bp_category = 'AGENT'
AND ccb.bp_category = 'AGENT'
AND hb.bp_id = ccb.bp_id
AND hb.bp_id = ccb.bp_id
AND ccb.contract_id = cc.contract_id) agent_id_n,
AND ccb.contract_id = cc.contract_id) agent_id_n,
(SELECT bp_name
(SELECT bp_name
FROM hls_bp_master
FROM hls_bp_master
WHERE bp_id = cc.bp_id_tenant
WHERE bp_id = cc.bp_id_tenant
AND enabled_flag = 'Y') bp_id_tenant_desc,
AND enabled_flag = 'Y') bp_id_tenant_desc,
cc.contract_number,
cc.contract_number,
cc.bp_id_agent_level1,
cc.bp_id_agent_level1,
(SELECT extra_nam
(SELECT extra_nam
FROM hls_bp_master
FROM hls_bp_master
WHERE bp_id = cc.bp_id_agent_level1
WHERE bp_id = cc.bp_id_agent_level1
AND enabled_flag = 'Y') bp_id_agent_desc,
AND enabled_flag = 'Y') bp_id_agent_desc,
cc.owner_user_id,
cc.owner_user_id,
(SELECT description
(SELECT description
FROM sys_user
FROM sys_user
WHERE user_id = cc.owner_user_id) owner_user_id_desc,
WHERE user_id = cc.owner_user_id) owner_user_id_desc,
cc.lease_organization,
cc.lease_organization,
(SELECT description
(SELECT description
FROM hls_lease_organization
FROM hls_lease_organization
WHERE lease_organization = cc.lease_organization
WHERE lease_organization = cc.lease_organization
AND enabled_flag =
AND enabled_flag =
'Y') lease_organization_desc,
'Y') lease_organization_desc,
(SELECT a.description value_name
(SELECT a.description value_name
FROM hls_business_type_v a
FROM hls_business_type_v a
WHERE a.enabled_flag = 'Y'
WHERE a.enabled_flag = 'Y'
AND a.business_type = cc.business_type) business_type_n,
AND a.business_type = cc.business_type) business_type_n,
cc.data_class,
cc.data_class,
-- add by lihh 20210317 租赁物
-- add by lihh 20210317 租赁物
(SELECT v.code_value_name
(SELECT v.code_value_name
FROM sys_code_values_v v
FROM sys_code_values_v v
where v.code = 'DIVISION'
where v.code = 'DIVISION'
and v.code_value = cc.division) division_n,
and v.code_value = cc.division) division_n,
cc.division,
cc.division,
contract_item_query_pkg.calc_ac_overdue_times(p_contract_id => cc.contract_id,
contract_item_query_pkg.calc_ac_overdue_times(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_calc_date => SYSDATE,
p_user_id => -1) account_due_times,
p_user_id => -1) account_due_times,
contract_item_query_pkg.calc_ac_overdue_days(p_contract_id => cc.contract_id,
contract_item_query_pkg.calc_ac_overdue_days(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_calc_date => SYSDATE,
p_user_id => -1) account_due_days,
p_user_id => -1) account_due_days,
(SELECT SUM(ccc.due_amount)
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND ccc.cf_item IN (1, 8, 250)
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo, con_contract_cashflow ccw
FROM gld_write_off gwo, con_contract_cashflow ccw
WHERE gwo.reversed_flag = 'N'
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)
AND gwo.cf_item IN (1, 8, 250)
and gwo.cf_item = ccw.cf_item
and gwo.cf_item = ccw.cf_item
and gwo.times = ccw.times
and gwo.times = ccw.times
and ccw.cf_status='RELEASE'
and ccw.cf_status='RELEASE'
and gwo.contract_id = ccw.contract_id
and gwo.contract_id = ccw.contract_id
AND trunc(ccw.due_date)
<
= trunc(SYSDATE)), 0) account_due_amount,
AND trunc(ccw.due_date)
<
= trunc(SYSDATE)), 0) account_due_amount,
contract_item_query_pkg.calc_business_overdue_times(p_contract_id => cc.contract_id,
contract_item_query_pkg.calc_business_overdue_times(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_calc_date => SYSDATE,
p_user_id => -1) business_due_times,
p_user_id => -1) business_due_times,
contract_item_query_pkg.calc_bussiness_overdue_days(p_contract_id => cc.contract_id,
contract_item_query_pkg.calc_bussiness_overdue_days(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_calc_date => SYSDATE,
p_user_id => -1) business_due_days,
p_user_id => -1) business_due_days,
(SELECT SUM(ccc.due_amount)
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND ccc.cf_item IN (1, 8, 250)
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo
FROM csh_write_off cwo
WHERE cwo.reversed_flag = 'N'
WHERE cwo.reversed_flag = 'N'
AND cwo.contract_id = cc.contract_id
AND cwo.contract_id = cc.contract_id
AND cwo.cf_item IN (1, 8, 250)
AND cwo.cf_item IN (1, 8, 250)
And Exists
And Exists
(Select 1
(Select 1
From con_contract_cashflow cn
From con_contract_cashflow cn
Where cn.cashflow_id = cwo.cashflow_id
Where cn.cashflow_id = cwo.cashflow_id
And cn.cf_status = 'RELEASE'
And cn.cf_status = 'RELEASE'
And trunc(cn.due_date)
<
= trunc(Sysdate))),
And trunc(cn.due_date)
<
= trunc(Sysdate))),
0) business_due_amount,
0) business_due_amount,
--营业逾期总金额
--营业逾期总金额
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_item = 9
AND ccc.cf_item = 9
AND ccc.write_off_flag
<
> 'FULL'
AND ccc.write_off_flag
<
> 'FULL'
and ccc.cf_status = 'RELEASE') over_due_amount,
and ccc.cf_status = 'RELEASE') over_due_amount,
--营业最早逾期的预定支付日
--营业最早逾期的预定支付日
(SELECT MIN(ccc.due_date)
(SELECT MIN(ccc.due_date)
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
AND ccc.due_amount > 0
AND ccc.due_amount > 0
and ccc.cf_status = 'RELEASE'
and ccc.cf_status = 'RELEASE'
AND ccc.due_date
<
= sysdate
AND ccc.due_date
<
= sysdate
AND ccc.cf_item in (1, 8, 9)
AND ccc.cf_item in (1, 8, 9)
AND ccc.write_off_flag
<
> 'FULL') min_overdue_date,
AND ccc.write_off_flag
<
> 'FULL') min_overdue_date,
--营业已收租金
--营业已收租金
(SELECT SUM(nvl(ccc.received_amount, 0))
(SELECT SUM(nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
and ccc.cf_status = 'RELEASE'
and ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN
AND ccc.cf_item IN
(1, 8, 250)) business_received_amount,
(1, 8, 250)) business_received_amount,
--营业未收租金
--营业未收租金
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
and ccc.cf_status = 'RELEASE'
and ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND ccc.cf_item IN (1, 8, 250)
) business_unreceived_amount,
) business_unreceived_amount,
--会计已收租金
--会计已收租金
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo
FROM gld_write_off gwo
WHERE gwo.reversed_flag = 'N'
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)),
AND gwo.cf_item IN (1, 8, 250)),
0) ac_received_amount,
0) ac_received_amount,
--会计未收租金
--会计未收租金
(SELECT SUM(ccc.due_amount)
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND ccc.cf_item IN (1, 8, 250)
) -
) -
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo
FROM gld_write_off gwo
WHERE gwo.reversed_flag = 'N'
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)),
AND gwo.cf_item IN (1, 8, 250)),
0) ac_unreceived_amount,
0) ac_unreceived_amount,
--机型
--机型
(SELECT ccli.modelcd
(SELECT ccli.modelcd
FROM con_contract_lease_item ccli
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = cc.contract_id) modelcd,
WHERE ccli.contract_id = cc.contract_id) modelcd,
--机号
--机号
(SELECT ccli.machine_number
(SELECT ccli.machine_number
FROM con_contract_lease_item ccli
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = cc.contract_id) machine_number,
WHERE ccli.contract_id = cc.contract_id) machine_number,
to_char(cc.lease_start_date, 'yyyy-mm-dd') lease_start_date,
to_char(cc.lease_start_date, 'yyyy-mm-dd') lease_start_date,
cc.lease_times,
cc.lease_times,
--租金合计
--租金合计
(SELECT SUM(ccc.due_amount)
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND ccc.cf_item IN (1, 8, 250)
) total_due_amount,
) total_due_amount,
cc.contract_status,
cc.contract_status,
cc.BUSINESS_TYPE/*,
cc.BUSINESS_TYPE/*,
(Select Count(1)
(Select Count(1)
From con_contract_cashflow ccc
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
Where ccc.contract_id = cc.contract_id
And ccc.cf_item = 1
And ccc.cf_item = 1
And ccc.cf_status = 'RELEASE'
And ccc.cf_status = 'RELEASE'
And ccc.cf_direction
<
> 'NONCASH'
And ccc.cf_direction
<
> 'NONCASH'
And nvl(ccc.overdue_status, 'N') = 'Y'
And nvl(ccc.overdue_status, 'N') = 'Y'
And ccc.due_amount > nvl(ccc.received_amount, 0)) As business_due_times, -- 营业逾期期数
And ccc.due_amount > nvl(ccc.received_amount, 0)) As business_due_times, -- 营业逾期期数
(Select Max(ccc.overdue_max_days)
(Select Max(ccc.overdue_max_days)
From con_contract_cashflow ccc
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
Where ccc.contract_id = cc.contract_id
And ccc.cf_item = 1
And ccc.cf_item = 1
And ccc.cf_status = 'RELEASE'
And ccc.cf_status = 'RELEASE'
And ccc.cf_direction
<
> 'NONCASH'
And ccc.cf_direction
<
> 'NONCASH'
And nvl(ccc.overdue_status, 'N') = 'Y'
And nvl(ccc.overdue_status, 'N') = 'Y'
And ccc.due_amount > nvl(ccc.received_amount, 0)) As business_due_days, -- 营业逾期天数
And ccc.due_amount > nvl(ccc.received_amount, 0)) As business_due_days, -- 营业逾期天数
(Select Count(1)
(Select Count(1)
From con_contract_cashflow ccc
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
Where ccc.contract_id = cc.contract_id
And ccc.cf_item = 1
And ccc.cf_item = 1
And ccc.cf_status = 'RELEASE'
And ccc.cf_status = 'RELEASE'
And ccc.cf_direction
<
> 'NONCASH'
And ccc.cf_direction
<
> 'NONCASH'
And nvl(ccc.overdue_status, 'N') = 'Y'
And nvl(ccc.overdue_status, 'N') = 'Y'
And ccc.due_amount >
And ccc.due_amount >
nvl((Select Sum(nvl(gwo.write_off_amount, 0))
nvl((Select Sum(nvl(gwo.write_off_amount, 0))
From gld_write_off gwo
From gld_write_off gwo
Where gwo.reversed_flag = 'N'
Where gwo.reversed_flag = 'N'
And gwo.contract_id = ccc.contract_id
And gwo.contract_id = ccc.contract_id
And gwo.times = ccc.times
And gwo.times = ccc.times
And gwo.cf_item = ccc.cf_item),
And gwo.cf_item = ccc.cf_item),
0)) As account_due_times, -- 会计逾期期数
0)) As account_due_times, -- 会计逾期期数
(Select floor(Sysdate - Min(ccc.due_date))
(Select floor(Sysdate - Min(ccc.due_date))
From con_contract_cashflow ccc
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
Where ccc.contract_id = cc.contract_id
--modify by shen 不统计留购价
--modify by shen 不统计留购价
And ccc.cf_item In (1)
And ccc.cf_item In (1)
And ccc.cf_status = 'RELEASE'
And ccc.cf_status = 'RELEASE'
And trunc(ccc.due_date)
<
= trunc(Sysdate)
And trunc(ccc.due_date)
<
= trunc(Sysdate)
And ccc.due_amount >
And ccc.due_amount >
nvl((Select Sum(nvl(gwo.write_off_amount, 0))
nvl((Select Sum(nvl(gwo.write_off_amount, 0))
From gld_write_off gwo
From gld_write_off gwo
Where gwo.reversed_flag = 'N'
Where gwo.reversed_flag = 'N'
And gwo.contract_id = ccc.contract_id
And gwo.contract_id = ccc.contract_id
And gwo.times = ccc.times
And gwo.times = ccc.times
And gwo.cf_item = ccc.cf_item),
And gwo.cf_item = ccc.cf_item),
0)) As account_due_days -- 会计逾期天数*/
0)) As account_due_days -- 会计逾期天数*/
,(select to_char(max(t.creation_date), 'yyyy-mm-dd')
,(select to_char(max(t.creation_date), 'yyyy-mm-dd')
from cux_rent_dun_msg t
from cux_rent_dun_msg t
where t.contract_id = cc.contract_id) dun_date,
where t.contract_id = cc.contract_id) dun_date,
cc.send_message,
cc.send_message,
(select v.code_value_name
(select v.code_value_name
From sys_code_values_v v
From sys_code_values_v v
Where v.code = 'SEND_MESSAGE'
Where v.code = 'SEND_MESSAGE'
And cc.send_message = v.code_value ) send_message_n,
And cc.send_message = v.code_value ) send_message_n,
cc.cell_phone
cc.cell_phone,
FROM con_contract cc
cc.lease_item_amount,
WHERE
cc.contract_amount
EXISTS(SELECT 1
FROM con_contract cc
FROM con_contract_cashflow ccw
WHERE
WHERE ccw.contract_id = cc.contract_id
EXISTS(SELECT 1
AND TRUNC(ccw.due_date)
<
= TRUNC(SYSDATE)
FROM con_contract_cashflow ccw
AND ccw.due_amount > nvl(ccw.received_amount, 0)
WHERE ccw.contract_id = cc.contract_id
AND ccw.write_off_flag
<
> 'FULL'
AND TRUNC(ccw.due_date)
<
= TRUNC(SYSDATE)
And ccw.overdue_status = 'Y'
AND ccw.due_amount > nvl(ccw.received_amount, 0)
AND ccw.cf_status = 'RELEASE'
AND ccw.write_off_flag
<
> 'FULL'
AND ccw.cf_direction = 'INFLOW')
And ccw.overdue_status = 'Y'
AND ('Y' = 'Y' AND EXISTS
AND ccw.cf_status = 'RELEASE'
(SELECT 1
AND ccw.cf_direction = 'INFLOW')
FROM aut_trx_user_authorize a1, aut_owner_user_authorize a2
AND ('Y' = 'Y' AND EXISTS
WHERE a1.trx_category = 'CONTRACT'
(SELECT 1
AND a1.trx_id = cc.contract_id
FROM aut_trx_user_authorize a1, aut_owner_user_authorize a2
AND trunc(SYSDATE) BETWEEN a1.start_date AND
WHERE a1.trx_category = 'CONTRACT'
nvl(a1.end_date, trunc(SYSDATE))
AND a1.trx_id = cc.contract_id
AND a1.user_id = a2.owner_user_id
AND trunc(SYSDATE) BETWEEN a1.start_date AND
AND a1.trx_category = a2.trx_category
nvl(a1.end_date, trunc(SYSDATE))
AND a2.authorized_user_id = ${/session/@user_id}
AND a1.user_id = a2.owner_user_id
AND trunc(SYSDATE) BETWEEN a2.start_date AND
AND a1.trx_category = a2.trx_category
nvl(a2.end_date, trunc(SYSDATE))))
AND a2.authorized_user_id = ${/session/@user_id}
And ((decode(${/session/@user_id}, 10600, 1, 2) = 1
AND trunc(SYSDATE) BETWEEN a2.start_date AND
And exists(select 1
nvl(a2.end_date, trunc(SYSDATE))))
from hls_bp_master hb
And ((decode(${/session/@user_id}, 10600, 1, 2) = 1
where hb.bp_id = cc.bp_id_agent_level1
And exists(select 1
And hb.bp_code in
from hls_bp_master hb
('D00000028', 'D00000035', 'D00000016', 'D00000021', 'D00000039', 'D00000025', 'D00000034', 'D00000017', 'D00000018', 'D00000024', 'D00000032', 'D00000009', 'D00000012', 'D00000014', 'D00000015', 'D00000023')))
where hb.bp_id = cc.bp_id_agent_level1
or (decode(${/session/@user_id}, 10600, 1, 2) = 2))) t1
And hb.bp_code in
('D00000028', 'D00000035', 'D00000016', 'D00000021', 'D00000039', 'D00000025', 'D00000034', 'D00000017', 'D00000018', 'D00000024', 'D00000032', 'D00000009', 'D00000012', 'D00000014', 'D00000015', 'D00000023')))
or (decode(${/session/@user_id}, 10600, 1, 2) = 2)) and nvl(division,'-1') not IN ('70','92')
union all
SELECT
cc.contract_id,
cc.document_type,
cc.document_category,
--cc.contract_name,
(SELECT pp.project_number
FROM prj_project pp
WHERE pp.project_id = cc.project_id) project_number,
cc.bp_id_tenant,
to_char(cc.inception_of_lease, 'yyyy-mm-dd') inception_of_lease,
(SELECT hb.bp_name
FROM hls_bp_master hb, con_contract_bp ccb
WHERE hb.bp_category = 'AGENT'
AND ccb.bp_category = 'AGENT'
AND hb.bp_id = ccb.bp_id
AND ccb.contract_id = cc.contract_id) agent_id_n,
(SELECT bp_name
FROM hls_bp_master
WHERE bp_id = cc.bp_id_tenant
AND enabled_flag = 'Y') bp_id_tenant_desc,
cc.contract_number,
cc.bp_id_agent_level1,
(SELECT extra_nam
FROM hls_bp_master
WHERE bp_id = cc.bp_id_agent_level1
AND enabled_flag = 'Y') bp_id_agent_desc,
cc.owner_user_id,
(SELECT description
FROM sys_user
WHERE user_id = cc.owner_user_id) owner_user_id_desc,
cc.lease_organization,
(SELECT description
FROM hls_lease_organization
WHERE lease_organization = cc.lease_organization
AND enabled_flag =
'Y') lease_organization_desc,
(SELECT a.description value_name
FROM hls_business_type_v a
WHERE a.enabled_flag = 'Y'
AND a.business_type = cc.business_type) business_type_n,
cc.data_class,
-- add by lihh 20210317 租赁物
(SELECT v.code_value_name
FROM sys_code_values_v v
where v.code = 'DIVISION'
and v.code_value = cc.division) division_n,
cc.division,
contract_item_query_pkg.calc_ac_overdue_times(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) account_due_times,
contract_item_query_pkg.calc_ac_overdue_days(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) account_due_days,
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo, con_contract_cashflow ccw
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)
and gwo.cf_item = ccw.cf_item
and gwo.times = ccw.times
and ccw.cf_status='RELEASE'
and gwo.contract_id = ccw.contract_id
AND trunc(ccw.due_date)
<
= trunc(SYSDATE)), 0) account_due_amount,
contract_item_query_pkg.calc_business_overdue_times(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) business_due_times,
contract_item_query_pkg.calc_bussiness_overdue_days(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) business_due_days,
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo
WHERE cwo.reversed_flag = 'N'
AND cwo.contract_id = cc.contract_id
AND cwo.cf_item IN (1, 8, 250)
And Exists
(Select 1
From con_contract_cashflow cn
Where cn.cashflow_id = cwo.cashflow_id
And cn.cf_status = 'RELEASE'
And trunc(cn.due_date)
<
= trunc(Sysdate))),
0) business_due_amount,
--营业逾期总金额
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_item = 9
AND ccc.write_off_flag
<
> 'FULL'
and ccc.cf_status = 'RELEASE') over_due_amount,
--营业最早逾期的预定支付日
(SELECT MIN(ccc.due_date)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.due_amount > 0
and ccc.cf_status = 'RELEASE'
AND ccc.due_date
<
= sysdate
AND ccc.cf_item in (1, 8, 9)
AND ccc.write_off_flag
<
> 'FULL') min_overdue_date,
--营业已收租金
(SELECT SUM(nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
and ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN
(1, 8, 250)) business_received_amount,
--营业未收租金
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
and ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
) business_unreceived_amount,
--会计已收租金
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)),
0) ac_received_amount,
--会计未收租金
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
) -
nvl((SELECT SUM(nvl(gwo.write_off_amount, 0))
FROM gld_write_off gwo
WHERE gwo.reversed_flag = 'N'
AND gwo.contract_id = cc.contract_id
AND gwo.cf_item IN (1, 8, 250)),
0) ac_unreceived_amount,
--机型
(SELECT ccli.modelcd
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = cc.contract_id) modelcd,
--机号
(SELECT ccli.machine_number_70
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = cc.contract_id) machine_number,
to_char(cc.lease_start_date, 'yyyy-mm-dd') lease_start_date,
cc.lease_times,
--租金合计
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (1, 8, 250)
) total_due_amount,
cc.contract_status,
cc.BUSINESS_TYPE/*,
(Select Count(1)
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
And ccc.cf_item = 1
And ccc.cf_status = 'RELEASE'
And ccc.cf_direction
<
> 'NONCASH'
And nvl(ccc.overdue_status, 'N') = 'Y'
And ccc.due_amount > nvl(ccc.received_amount, 0)) As business_due_times, -- 营业逾期期数
(Select Max(ccc.overdue_max_days)
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
And ccc.cf_item = 1
And ccc.cf_status = 'RELEASE'
And ccc.cf_direction
<
> 'NONCASH'
And nvl(ccc.overdue_status, 'N') = 'Y'
And ccc.due_amount > nvl(ccc.received_amount, 0)) As business_due_days, -- 营业逾期天数
(Select Count(1)
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
And ccc.cf_item = 1
And ccc.cf_status = 'RELEASE'
And ccc.cf_direction
<
> 'NONCASH'
And nvl(ccc.overdue_status, 'N') = 'Y'
And ccc.due_amount >
nvl((Select Sum(nvl(gwo.write_off_amount, 0))
From gld_write_off gwo
Where gwo.reversed_flag = 'N'
And gwo.contract_id = ccc.contract_id
And gwo.times = ccc.times
And gwo.cf_item = ccc.cf_item),
0)) As account_due_times, -- 会计逾期期数
(Select floor(Sysdate - Min(ccc.due_date))
From con_contract_cashflow ccc
Where ccc.contract_id = cc.contract_id
--modify by shen 不统计留购价
And ccc.cf_item In (1)
And ccc.cf_status = 'RELEASE'
And trunc(ccc.due_date)
<
= trunc(Sysdate)
And ccc.due_amount >
nvl((Select Sum(nvl(gwo.write_off_amount, 0))
From gld_write_off gwo
Where gwo.reversed_flag = 'N'
And gwo.contract_id = ccc.contract_id
And gwo.times = ccc.times
And gwo.cf_item = ccc.cf_item),
0)) As account_due_days -- 会计逾期天数*/
,(select to_char(max(t.creation_date), 'yyyy-mm-dd')
from cux_rent_dun_msg t
where t.contract_id = cc.contract_id) dun_date,
cc.send_message,
(select v.code_value_name
From sys_code_values_v v
Where v.code = 'SEND_MESSAGE'
And cc.send_message = v.code_value ) send_message_n,
cc.cell_phone,
cc.lease_item_amount,
cc.contract_amount
FROM con_contract cc
WHERE
EXISTS(SELECT 1
FROM con_contract_cashflow ccw
WHERE ccw.contract_id = cc.contract_id
AND TRUNC(ccw.due_date)
<
= TRUNC(SYSDATE)
AND ccw.due_amount > nvl(ccw.received_amount, 0)
AND ccw.write_off_flag
<
> 'FULL'
And ccw.overdue_status = 'Y'
AND ccw.cf_status = 'RELEASE'
AND ccw.cf_direction = 'INFLOW')
AND ('Y' = 'Y' AND EXISTS
(SELECT 1
FROM aut_trx_user_authorize a1, aut_owner_user_authorize a2
WHERE a1.trx_category = 'CONTRACT'
AND a1.trx_id = cc.contract_id
AND trunc(SYSDATE) BETWEEN a1.start_date AND
nvl(a1.end_date, trunc(SYSDATE))
AND a1.user_id = a2.owner_user_id
AND a1.trx_category = a2.trx_category
AND a2.authorized_user_id = ${/session/@user_id}
AND trunc(SYSDATE) BETWEEN a2.start_date AND
nvl(a2.end_date, trunc(SYSDATE))))
And ((decode(${/session/@user_id}, 10600, 1, 2) = 1
And exists(select 1
from hls_bp_master hb
where hb.bp_id = cc.bp_id_agent_level1
And hb.bp_code in
('D00000028', 'D00000035', 'D00000016', 'D00000021', 'D00000039', 'D00000025', 'D00000034', 'D00000017', 'D00000018', 'D00000024', 'D00000032', 'D00000009', 'D00000012', 'D00000014', 'D00000015', 'D00000023')))
or (decode(${/session/@user_id}, 10600, 1, 2) = 2))
and nvl(division,'-1') IN ('70','92')) t1
#WHERE_CLAUSE#
#WHERE_CLAUSE#
]]>
]]>
</bm:query-sql>
</bm:query-sql>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/classes/cont/CON620/con_contract_dun_for_repur_query.lwm
View file @
73c4d691
...
@@ -188,7 +188,181 @@
...
@@ -188,7 +188,181 @@
where hb.bp_id = cc.bp_id_agent_level1
where hb.bp_id = cc.bp_id_agent_level1
And hb.bp_code in
And hb.bp_code in
('D00000028', 'D00000035', 'D00000016', 'D00000021', 'D00000039', 'D00000025', 'D00000034', 'D00000017', 'D00000018', 'D00000024', 'D00000032', 'D00000009', 'D00000012', 'D00000014', 'D00000015', 'D00000023')))
('D00000028', 'D00000035', 'D00000016', 'D00000021', 'D00000039', 'D00000025', 'D00000034', 'D00000017', 'D00000018', 'D00000024', 'D00000032', 'D00000009', 'D00000012', 'D00000014', 'D00000015', 'D00000023')))
or (decode(${/session/@user_id}, 10600, 1, 2) = 2))) t1
or (decode(${/session/@user_id}, 10600, 1, 2) = 2))
and nvl(division,'-1') not IN ('70','92')
union all
SELECT
cc.contract_id,
cc.document_type,
cc.document_category,
--cc.contract_name,
(SELECT pp.project_number
FROM prj_project pp
WHERE pp.project_id = cc.project_id) project_number,
cc.bp_id_tenant,
to_char(cc.inception_of_lease, 'yyyy-mm-dd') inception_of_lease,
(SELECT hb.bp_name
FROM hls_bp_master hb, con_contract_bp ccb
WHERE hb.bp_category = 'AGENT'
AND ccb.bp_category = 'AGENT'
AND hb.bp_id = ccb.bp_id
AND ccb.contract_id = cc.contract_id) agent_id_n,
(SELECT bp_name
FROM hls_bp_master
WHERE bp_id = cc.bp_id_tenant
AND enabled_flag = 'Y') bp_id_tenant_desc,
cc.contract_number,
cc.bp_id_agent_level1,
(SELECT extra_nam
FROM hls_bp_master
WHERE bp_id = cc.bp_id_agent_level1
AND enabled_flag = 'Y') bp_id_agent_desc,
cc.owner_user_id,
(SELECT description
FROM sys_user
WHERE user_id = cc.owner_user_id) owner_user_id_desc,
cc.lease_organization,
(SELECT description
FROM hls_lease_organization
WHERE lease_organization = cc.lease_organization
AND enabled_flag =
'Y') lease_organization_desc,
(SELECT a.description value_name
FROM hls_business_type_v a
WHERE a.enabled_flag = 'Y'
AND a.business_type = cc.business_type) business_type_n,
cc.data_class,
(SELECT hd.description
FROM hls_division hd
WHERE hd.enabled_flag = 'Y'
AND hd.division = cc.division) division_n,
cc.division,
null account_due_times,
null account_due_days,
null account_due_amount,
contract_item_query_pkg.calc_business_overdue_times(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) business_due_times,
contract_item_query_pkg.calc_bussiness_overdue_days(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) business_due_days,
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (250)
AND trunc(ccc.due_date)
<
= trunc(SYSDATE)) -
nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo
WHERE cwo.reversed_flag = 'N'
AND cwo.contract_id = cc.contract_id
AND cwo.cf_item IN ( 250)
And Exists
(Select 1
From con_contract_cashflow cn
Where cn.cashflow_id = cwo.cashflow_id
And cn.cf_status = 'RELEASE'
And trunc(cn.due_date)
<
= trunc(Sysdate))),
0) business_due_amount,
--营业逾期总金额
contract_item_query_pkg.calc_repur_penalty(p_contract_id => cc.contract_id,
p_calc_date => SYSDATE,
p_user_id => -1) over_due_amount,
--营业最早逾期的预定支付日
(SELECT MIN(ccc.due_date)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.due_amount > 0
AND ccc.due_date
<
= sysdate
and ccc.cf_status='RELEASE'
AND ccc.cf_item in (250)
AND ccc.write_off_flag
<
> 'FULL') min_overdue_date,
--营业已收租金
(SELECT SUM(nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
and ccc.cf_status='RELEASE'
AND ccc.cf_item IN
(250)) business_received_amount,
--营业未收租金
(SELECT SUM(ccc.due_amount - nvl(ccc.received_amount, 0))
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
and ccc.cf_status='RELEASE'
AND ccc.cf_item IN ( 250)
) business_unreceived_amount,
--会计已收租金
null ac_received_amount,
--会计未收租金
null ac_unreceived_amount,
--机型
(SELECT ccli.modelcd
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = cc.contract_id) modelcd,
--机号
(SELECT ccli.machine_number_70
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = cc.contract_id) machine_number,
to_char(cc.repurchase_date, 'yyyy-mm-dd') lease_start_date,
cc.PAYMENT_PERIOD lease_times,
--租金合计
(SELECT SUM(ccc.due_amount)
FROM con_contract_cashflow ccc
WHERE ccc.contract_id = cc.contract_id
AND ccc.cf_status = 'RELEASE'
AND ccc.cf_item IN (250)
) total_due_amount,
cc.contract_status,
cc.BUSINESS_TYPE,
cc.repurchase_types
,(select to_char(max(t.creation_date), 'yyyy-mm-dd')
from cux_rent_dun_msg t
where t.contract_id = cc.contract_id) dun_date,
cc.send_message,
(select v.code_value_name
From sys_code_values_v v
Where v.code = 'SEND_MESSAGE'
And cc.send_message = v.code_value ) send_message_n,
cc.cell_phone
FROM con_contract cc
WHERE
cc.contract_status='REPURING'
and cc.repurchase_types='STAGE_REPURCHASE'
and EXISTS(SELECT 1
FROM con_contract_cashflow ccw
WHERE ccw.contract_id = cc.contract_id
AND TRUNC(ccw.due_date)
<
= TRUNC(SYSDATE)
AND ccw.due_amount > nvl(ccw.received_amount, 0)
AND ccw.write_off_flag
<
> 'FULL'
And ccw.cf_item = '250'
AND ccw.cf_status = 'RELEASE'
AND ccw.cf_direction = 'INFLOW')
AND ('Y' = 'Y' AND EXISTS
(SELECT 1
FROM aut_trx_user_authorize a1, aut_owner_user_authorize a2
WHERE a1.trx_category = 'CONTRACT'
AND a1.trx_id = cc.contract_id
AND trunc(SYSDATE) BETWEEN a1.start_date AND
nvl(a1.end_date, trunc(SYSDATE))
AND a1.user_id = a2.owner_user_id
AND a1.trx_category = a2.trx_category
AND a2.authorized_user_id = ${/session/@user_id}
AND trunc(SYSDATE) BETWEEN a2.start_date AND
nvl(a2.end_date, trunc(SYSDATE))))
And ((decode(${/session/@user_id}, 10600, 1, 2) = 1
And exists(select 1
from hls_bp_master hb
where hb.bp_id = cc.bp_id_agent_level1
And hb.bp_code in
('D00000028', 'D00000035', 'D00000016', 'D00000021', 'D00000039', 'D00000025', 'D00000034', 'D00000017', 'D00000018', 'D00000024', 'D00000032', 'D00000009', 'D00000012', 'D00000014', 'D00000015', 'D00000023')))
or (decode(${/session/@user_id}, 10600, 1, 2) = 2)) and nvl(division,'-1') IN ('70','92')
) t1
#WHERE_CLAUSE#
#WHERE_CLAUSE#
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
73c4d691
...
@@ -782,7 +782,7 @@
...
@@ -782,7 +782,7 @@
var
secondary_lease =
record.get('secondary_lease')
;
var
secondary_lease =
record.get('secondary_lease')
;
var
contract_id =
record.get('contract_id');
var
contract_id =
record.get('contract_id');
var
contract_status =
record.get('contract_status');
var
contract_status =
record.get('contract_status');
console.log(contract_record)
;
var
contract_status_result =
''
;
//校验合同状态
//校验合同状态
if(!Leaf.isEmpty(contract_status)){
if(!Leaf.isEmpty(contract_status)){
Leaf.request({
Leaf.request({
...
@@ -791,16 +791,18 @@
...
@@ -791,16 +791,18 @@
contract_id:
contract_id
contract_id:
contract_id
},
},
scope:
this,
scope:
this,
sync:
true,
success:
function
(res)
{
success:
function
(res)
{
if(contract_status
!=
res.result.record.contract_status){
contract_status_result =
res.result.record.contract_status;
$L.showErrorMessage('提示',
'合同状态已发生改变,需要重新刷新页面!');
return
false;
}
},
},
failure:
function
()
{
failure:
function
()
{
return
false;
return
false;
},
},
});
});
if
(contract_status
!=
contract_status_result)
{
$L.showErrorMessage('提示',
'合同状态已发生改变,需要重新刷新页面!');
return
false;
}
}
}
if(!Leaf.isEmpty(secondary_lease)
&&
secondary_lease!='YES')
{
if(!Leaf.isEmpty(secondary_lease)
&&
secondary_lease!='YES')
{
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON620/con_contract_account_detail.lview
View file @
73c4d691
...
@@ -19,6 +19,20 @@
...
@@ -19,6 +19,20 @@
<a:link
id=
"${/parameter/@layout_code}_con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"${/parameter/@layout_code}_con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<script
type=
"text/javascript"
>
<![CDATA[
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.onReady(function() {
if (document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER")) {
if ("${/parameter/@division}" == '70' || "${/parameter/@division}" == '92') {
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER").style.display = "none";
}
if (document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_70")) {
if ("${/parameter/@division}" != '70' && "${/parameter/@division}" != '92') {
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_70_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_70").style.display = "none";
}
}
}
});
]]>
</script>
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON620/con_contract_rent_detail.lview
View file @
73c4d691
...
@@ -217,8 +217,18 @@
...
@@ -217,8 +217,18 @@
}
}
}
}
if(document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER")){
if("${/parameter/@division}"=='70'
||
"${/parameter/@division}"=='92'
){
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_prompt")
.style.display =
"none"
;
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER")
.style.display =
"none"
;
}
if
(document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_70"))
{
if
("${/parameter/@division}"
!='70'
&&
"${/parameter/@division}"
!='92')
{
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_70_prompt")
.style.display =
"none"
;
document.getElementById("${/parameter/@layout_code}_F_BASIC_CON_CONTRACT_MACHINE_NUMBER_70")
.style.display =
"none"
;
}
}
}
});
});
//新增催款函pdf打印(盖章)
//新增催款函pdf打印(盖章)
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON620/con_contract_rent_dun_query.lview
View file @
73c4d691
...
@@ -730,6 +730,10 @@
...
@@ -730,6 +730,10 @@
<a:column
name=
"lease_times"
align=
"center"
prompt=
"期数"
width=
"100"
/>
<a:column
name=
"lease_times"
align=
"center"
prompt=
"期数"
width=
"100"
/>
<a:column
name=
"total_due_amount"
align=
"right"
prompt=
"租金合计"
width=
"100"
<a:column
name=
"total_due_amount"
align=
"right"
prompt=
"租金合计"
width=
"100"
renderer=
"Leaf.formatMoney"
/>
renderer=
"Leaf.formatMoney"
/>
<a:column
name=
"lease_item_amount"
align=
"right"
prompt=
"设备价格"
width=
"100"
renderer=
"Leaf.formatMoney"
/>
<a:column
name=
"contract_amount"
align=
"right"
prompt=
"合同金额"
width=
"100"
renderer=
"Leaf.formatMoney"
/>
<a:column
name=
"send_message_n"
align=
"center"
prompt=
"发送催收短信"
width=
"60"
/>
<a:column
name=
"send_message_n"
align=
"center"
prompt=
"发送催收短信"
width=
"60"
/>
<a:column
name=
"dun_date"
align=
"center"
prompt=
"催收短信发送日期"
width=
"120"
/>
<a:column
name=
"dun_date"
align=
"center"
prompt=
"催收短信发送日期"
width=
"120"
/>
<!-- <a:column name="contract_status" align="center" prompt="合同状态" width="100"/>-->
<!-- <a:column name="contract_status" align="center" prompt="合同状态" width="100"/>-->
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON731/hls_con_contract_change_detail.lview
View file @
73c4d691
...
@@ -892,6 +892,17 @@
...
@@ -892,6 +892,17 @@
$(ds_id).query();
$(ds_id).query();
}
}
}
}
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item');
if(ds.id == lease_ds_id
&&
lease_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' || record.data.division=='92'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('machine_number');
}else {
$(gridId).hideColumn('lease_name');
$(gridId).hideColumn('machine_number_70');
}
};
};
};
//选择事件(grid,attach,gridbox,table)
//选择事件(grid,attach,gridbox,table)
/*window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_before_select'] = function(ds, record, bp_seq) {
/*window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_before_select'] = function(ds, record, bp_seq) {
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON_ET001/con_early_termination_et_detail.lview
View file @
73c4d691
...
@@ -89,7 +89,6 @@
...
@@ -89,7 +89,6 @@
var clc_flag = 'N';
var clc_flag = 'N';
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
debugger;
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract_change_req');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract_change_req');
if (ds == $(ds_id)) {
if (ds == $(ds_id)) {
if(value!=old_value){
if(value!=old_value){
...
@@ -682,9 +681,20 @@
...
@@ -682,9 +681,20 @@
});
});
}
}
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, qpara, bp_seq) {
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
};
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item');
if(ds.id == lease_ds_id
&&
lease_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' || record.data.division=='92'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('machine_number');
}else {
$(gridId).hideColumn('lease_name');
$(gridId).hideColumn('machine_number_70');
}
};
}
//图片渲染
//图片渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
...
@@ -759,7 +769,6 @@
...
@@ -759,7 +769,6 @@
}
}
};
};
window['${/parameter/@layout_code}_user_button5_layout_dynamic_click'] = function () {
window['${/parameter/@layout_code}_user_button5_layout_dynamic_click'] = function () {
debugger;
var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract_change_req');
var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract_change_req');
var req_record = $(req_ds_id).getAt(0);
var req_record = $(req_ds_id).getAt(0);
calc_flag = req_record.get('calc_flag')||'N';
calc_flag = req_record.get('calc_flag')||'N';
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON_REPO001/con_contract_change_repo_detail.lview
View file @
73c4d691
...
@@ -519,9 +519,20 @@
...
@@ -519,9 +519,20 @@
});
});
});
});
};
};
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, qpara, bp_seq) {
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
};
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item');
if(ds.id == lease_ds_id
&&
lease_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' || record.data.division=='92'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('machine_number');
}else {
$(gridId).hideColumn('lease_name');
$(gridId).hideColumn('machine_number_70');
}
};
}
//图片渲染
//图片渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
var result = name.match(/(.*)_pic$/);
var result = name.match(/(.*)_pic$/);
...
...
This diff is collapsed.
Click to expand it.
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