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
f1338bb8
Commit
f1338bb8
authored
Dec 28, 2020
by
congzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[建机]电子合同开发 签署流程校验调整
parent
2e82e7d5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
65 deletions
+51
-65
con_agent_unsigned_file_query.lwm
...EB-INF/classes/wx/WX100/con_agent_unsigned_file_query.lwm
+2
-0
con_contract_query.lwm
...in/webapp/WEB-INF/classes/wx/WX100/con_contract_query.lwm
+2
-2
con_ele_signer_status_update.lwm
...WEB-INF/classes/wx/WX100/con_ele_signer_status_update.lwm
+13
-6
con_ele_unsigned_file_query.lwm
.../WEB-INF/classes/wx/WX100/con_ele_unsigned_file_query.lwm
+2
-0
con_et_signer_status_update.lwm
.../WEB-INF/classes/wx/WX100/con_et_signer_status_update.lwm
+0
-49
con_et_unsigned_file_query.lwm
...p/WEB-INF/classes/wx/WX100/con_et_unsigned_file_query.lwm
+2
-0
con_ele_agent_content_create.lsc
.../webapp/modules/wx/WX100/con_ele_agent_content_create.lsc
+30
-8
No files found.
src/main/webapp/WEB-INF/classes/wx/WX100/con_agent_unsigned_file_query.lwm
View file @
f1338bb8
...
...
@@ -20,6 +20,8 @@
and fm.table_name = 'CON_CONTRACT_CONTENT'
and cc.content_id = fm.table_pk_value
and cc.templet_id = ct.templet_id
and ct.ele_content_flag = 'Y'
and ct.enabled_flag = 'Y'
and ct.templet_usage = 'AGENT_CONTRACT'
and fm.table_pk_value in
(select t.content_id
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_contract_query.lwm
View file @
f1338bb8
...
...
@@ -87,8 +87,8 @@ select *
and exists (select 1 from con_contract_ele_flow cf where cf.contract_id = t1.contract_id)
and ((${@account_type} = 'PE' and exists
(select 1
from con_contract_bp ccb,
hls_bp_master hb
where ccb.bp_id =
hb
.bp_id
from con_contract_bp ccb,
con_contract_ele_signer cs
where ccb.bp_id =
cs
.bp_id
and ccb.contract_id = t1.contract_id
and ccb.bp_category in ('TENANT', 'GUARANTOR')
and (ccb.id_card_no = ${@id_no} or
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_ele_signer_status_update.lwm
View file @
f1338bb8
...
...
@@ -24,12 +24,6 @@
<bm:operation
name=
"insert"
>
<bm:update-sql>
<![CDATA[
BEGIN
update con_contract cc
set cc.ec_sign_type = 'SIGNED',
cc.sign_contract_status = 'SIGN',
cc.last_update_date = sysdate
where cc.contract_id = ${@contract_id};
update con_contract_ele_flow cf
set cf.flow_status = ${@flow_status},
cf.end_time = to_date(${@end_time},'yyyy-mm-dd HH24:MI:SS'),
...
...
@@ -41,6 +35,19 @@
cs.last_update_date = sysdate
where cs.contract_id = ${@contract_id};
update con_contract cc
set cc.ec_sign_type = 'SIGNED',
cc.sign_contract_status = 'SIGN',
cc.last_update_date = sysdate
where cc.contract_id = ${@contract_id}
and cc.sign_type = 'ELE_SIGN'
and cc.ec_sign_type != 'NEW'
and not exists
(select 1
from con_contract_ele_flow ce
where (ce.flow_status != '2' or ce.flow_status is null)
and ce.contract_id = cc.contract_id);
wx_ele_contract_pkg.downloadEleFile(p_contract_id =>
${@contract_id},
p_ele_flow_id => ${@flow_id},
p_user_id => 1,
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_ele_unsigned_file_query.lwm
View file @
f1338bb8
...
...
@@ -20,6 +20,8 @@
and fm.table_name = 'CON_CONTRACT_CONTENT'
and cc.content_id = fm.table_pk_value
and cc.templet_id = ct.templet_id
and ct.ele_content_flag = 'Y'
and ct.enabled_flag = 'Y'
and fm.table_pk_value in
(select t.content_id
from con_contract_content t
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_et_signer_status_update.lwm
deleted
100644 → 0
View file @
2e82e7d5
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
BEGIN
UPDATE con_contract_ele_signer cs
SET cs.ec_sign_status = 'Y',
cs.sign_time = to_date(${@sign_time},'yyyy-mm-dd HH24:MI:SS'),
cs.sign_result = ${@sign_result},
cs.last_update_date = sysdate
WHERE cs.contract_id = ${@contract_id}
AND cs.id_no = ${@id_no}
AND cs.esign_type = 'ET';
update con_contract_change_req cc
set cc.ec_sign_type = 'SIGNING',
cc.last_update_date = sysdate
where cc.ele_flow_id = ${@flow_id}
and cc.ec_sign_type != 'SIGNED';
END;
]]>
</bm:update-sql>
</bm:operation>
<bm:operation
name=
"insert"
>
<bm:update-sql>
<![CDATA[
BEGIN
update con_contract_change_req cc
set cc.ec_sign_type = 'SIGNED',
cc.flow_status = ${@flow_status},
cc.end_time = to_date(${@end_time},'yyyy-mm-dd HH24:MI:SS'),
cc.last_update_date = sysdate
where cc.ele_flow_id = ${@flow_id}
and cc.contract_id = ${@contract_id};
update con_contract_ele_signer cs
set cs.ec_sign_status = 'Y',
cs.last_update_date = sysdate
where cs.contract_id = ${@contract_id};
wx_ele_contract_pkg.downloadEleFile(p_contract_id =>
${@contract_id},
p_ele_flow_id => ${@flow_id},
p_user_id => 1,
p_company_id => 1);
COMMIT;
END;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/wx/WX100/con_et_unsigned_file_query.lwm
View file @
f1338bb8
...
...
@@ -20,6 +20,8 @@
and fm.table_name = 'CON_CONTRACT_CONTENT'
and cc.content_id = fm.table_pk_value
and cc.templet_id = ct.templet_id
and ct.ele_content_flag = 'Y'
and ct.enabled_flag = 'Y'
and fm.table_pk_value in
(select t.content_id
from con_contract_content t
...
...
src/main/webapp/modules/wx/WX100/con_ele_agent_content_create.lsc
View file @
f1338bb8
...
...
@@ -154,6 +154,36 @@
});
}
}
//获取token信息
var logs_bm = $bm('wx.WX100.con_ele_savelogs');
try {
var token_sign_result = EleFileUpHttpPost.post(up_file_token_url, null, null);
} catch (e) {
raise_app_error('上传文件获取token失败,请联系技术人员检查!');
}
var token_sign_result_ob = JSON.parse(token_sign_result);
var access_sign_token = token_sign_result_ob.access_token;
//校验签署人
var info = info_query('HL_ELE_ACCOUNT_CREATE_PATH');
var httpUrl = info.code_value;
var Param = {
userInfo: userInfoList
}
var result = EleFileUpHttpPost.post(httpUrl, JSON.stringify(Param), access_sign_token);
//var result = new HttpRequest().sendPost(httpUrl, JSON.stringify(signParam));
logs_bm.insert({
contract_id: $ctx.parameter.contract_id,
httpurl: httpUrl,
jsonPut: JSON.stringify(Param),
jsonResult: result,
tokenResult: token_sign_result
});
var result_ob = JSON.parse(result); //根据返回参数形式再定
if (result_ob.code != 0) {
//rollback
$bm('wx.WX100.rollback').update();
raise_app_error(result_ob.message.toString());
}
var ele_contract_signer_map = ele_contract_signer_bm.queryAsMap({
contract_id: $ctx.parameter.contract_id
});
...
...
@@ -199,14 +229,6 @@
conFileList:conFileList,
signer:signer
}
var logs_bm = $bm('wx.WX100.con_ele_savelogs');
try {
var token_sign_result = EleFileUpHttpPost.post(up_file_token_url, null, null);
} catch (e) {
raise_app_error('上传文件获取token失败,请联系技术人员检查!');
}
var token_sign_result_ob = JSON.parse(token_sign_result);
var access_sign_token = token_sign_result_ob.access_token;
var result = EleFileUpHttpPost.post(httpUrl, JSON.stringify(signParam), access_sign_token);
//var result = new HttpRequest().sendPost(httpUrl, JSON.stringify(signParam));
logs_bm.insert({
...
...
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