Commit 5e97159b authored by panhong18943's avatar panhong18943

Merge branch 'remote_dev' of https://hel.hand-china.com/hlcm/leaf-hlcm into remote_dev

parents a1fde9fd b1c419db
......@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import com.google.common.util.concurrent.RateLimiter;
import java.util.Arrays;
import java.util.List;
import leaf.database.service.BusinessModelService;
import uncertain.composite.CompositeMap;
......@@ -17,52 +19,106 @@ import java.io.IOException;
@Controller
public class JYCInterfaceController extends BaseController {
private static final RateLimiter rateLimiter = RateLimiter.create(1.0); // 每秒允许1个请求
private static final RateLimiter rateLimiter = RateLimiter.create(2.0); // 每秒允许2个请求
private static final String IP_LIMIT="39.97.244.233,39.98.188.246";
private static final String WJ="wj";
private static final String BM_PATH="cont.jyc_equno_query" ;
private static final String WJFL_FIELD="WJFL" ;
DatabaseServiceFactory dsf = ObjectRegistryHolder.getInstanceOfType(DatabaseServiceFactory.class);
CompositeMap context = new CompositeMap();
public boolean checkInterfacePara(String equNo,String type,String reqClientIp,JSONObject resultjson){
String[] ipLimit = IP_LIMIT.split(",");
if( equNo == null || equNo.isEmpty()||type == null || type.isEmpty()||reqClientIp == null || reqClientIp.isEmpty()){
resultjson.put("JYCResponseBody",null);
resultjson.put("ResponseCode","02");
resultjson.put("ResponseMsg","交易异常,入参缺少必填字段!");
return false;
}
if(!type.equals(WJ)){
resultjson.put("JYCResponseBody",null);
resultjson.put("ResponseCode","05");
resultjson.put("ResponseMsg","查询渠道不正确!");
return false;
}
if(!Arrays.asList(ipLimit).contains(reqClientIp)){
resultjson.put("JYCResponseBody",null);
resultjson.put("ResponseCode","04");
resultjson.put("ResponseMsg","客户实际IP不在自名单内!");
return false;
}
return true;
}
@RequestMapping(value = "/wjflwar2/getEquStatus")
@ResponseBody
public JSONObject getEquStatus(@RequestParam(value = "equNo",required = true) String equNo,
@RequestParam(value = "type",required = true) String type,
@RequestParam(value = "reqClientIp",required = true) String reqClientIp,
public JSONObject getEquStatus(@RequestParam(value = "equNo") String equNo,
@RequestParam(value = "type") String type,
@RequestParam(value = "reqClientIp") String reqClientIp,
HttpServletResponse response) {
//机易查接口
JSONObject resultjson = new JSONObject();
if(rateLimiter.tryAcquire()){
try {
DatabaseServiceFactory dsf = ObjectRegistryHolder.getInstanceOfType(DatabaseServiceFactory.class);
String queryBm = "cont.jyc_equno_query";
CompositeMap context = new CompositeMap();
CompositeMap param = new CompositeMap();
Boolean existsFlag = false;
if (equNo != null) {
param.put("machine_number", equNo);
}
BusinessModelService bms = dsf.getModelService(queryBm, context);
CompositeMap result = bms.queryAsMap(param);
if (result != null) {
List<CompositeMap> valueList = result.getChilds();
if (valueList != null) {
for (CompositeMap child : valueList) {
if (child == null) {
continue;
}
Long existcont = child.getLong("existcont");
if (existcont > 0) {
boolean checkFlag= checkInterfacePara(equNo,type,reqClientIp,resultjson);
if(checkFlag) {
//DatabaseServiceFactory dsf = ObjectRegistryHolder.getInstanceOfType(DatabaseServiceFactory.class);
//CompositeMap context = new CompositeMap();
CompositeMap param = new CompositeMap();
Boolean existsFlag = false;
if (equNo != null) {
param.put("machine_number", equNo);
}
BusinessModelService bms = dsf.getModelService(BM_PATH, context);
CompositeMap result = bms.queryAsMap(param);
if (result != null) {
List<CompositeMap> valueList = result.getChilds();
if (valueList != null) {
if(valueList.size()>0){
existsFlag = true;
CompositeMap child=valueList.get(0);
JSONObject JYCResponseBody= new JSONObject();
JYCResponseBody.put("equNm",child.getString("equnm"));
JYCResponseBody.put("brandName",child.getString("brandname"));
JYCResponseBody.put("equMdl",child.getString("equmdl"));
JYCResponseBody.put("vinNo",child.getString("vinno"));
JYCResponseBody.put("machineNo",child.getString("machineno"));
JYCResponseBody.put("status",child.getString("status"));
JYCResponseBody.put("platform",WJFL_FIELD);
resultjson.put("JYCResponseBody",JYCResponseBody);
resultjson.put("ResponseCode","01");
resultjson.put("ResponseMsg","交易正常");
}
/*for (CompositeMap child : valueList) {
existsFlag = true;
if (child == null) {
continue;
}
Long existcont = child.getLong("existcont");
if (existcont > 0) {
}
}*/
}
}
}
if (existsFlag) {
resultjson.put("message", "查得");
} else {
resultjson.put("message", "未查得");
if (!existsFlag) {
resultjson.put("JYCResponseBody",null);
resultjson.put("ResponseCode","03");
resultjson.put("ResponseMsg","未查到该车架号/整车编号对应信息");
}
}
}catch(Exception e){
resultjson.put("message", "接口故障");
resultjson.put("JYCResponseBody",null);
resultjson.put("ResponseCode","06");
resultjson.put("ResponseMsg","接口故障!"+e.getMessage());
}
}else{
resultjson.put("message","接口次数超出限制");
resultjson.put("JYCResponseBody",null);
resultjson.put("ResponseCode","06");
resultjson.put("ResponseMsg","接口1秒内查询次数超出限制!");
}
return resultjson;
}
......
......@@ -91,6 +91,6 @@
(t1.sign_contract_status = 'NEW' AND t1.contract_status = 'NEW' and
nvl(t1.sign_type, 'PAPER_SIGN') = 'ELE_SIGN') OR
t1.sign_type = 'ELE_SIGN' and t1.sign_contract_status = 'SIGN' and
(t1.contract_status = 'NEW' or t1.contract_status = 'INCEPT_RETURN'))"/>
(t1.contract_status = 'NEW' or t1.contract_status = 'INCEPT_RETURN')) and t1.document_type!='PUR_ORDER'"/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: lpc 9874
$Date: 2017/11/21 9:39:12
$Revision: 1.0
$Purpose:
$Author: lpc 9874
$Date: 2017/11/21 9:39:12
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:s="leaf.plugin.script" xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select count(1) existcont from prj_project_lease_item li where li.machine_number=${@machine_number}
select t2.equnm,
t2.brandname,
t2.equmdl,
t2.vinno,
t2.machineno,
t2.status
from (select t1.*
from (select li.LEASE_NAME equnm,
li.BRAND_VALUE brandname,
li.PATTERN equmdl,
nvl(li.machine_number, li.machine_number_70) vinno,
null machineno,
'1' status,
p.creation_date
from prj_project p, prj_project_lease_item li
where p.project_status not in ('CLOSED', 'CONTRACT_CREATED')
and p.project_id = li.project_id
and p.division != '95'
and (li.machine_number=${@machine_number} or li.machine_number_70=${@machine_number})
union
select li.LEASE_NAME equnm,
li.BRAND_VALUE brandname,
li.PATTERN equmdl,
nvl(li.machine_number, li.machine_number_70) vinno,
null machineno,
CASE
WHEN CC.CONTRACT_STATUS IN
('REPUR', 'ET', 'TERMINATE') then
'3'
else
nvl((select '2'
from con_unearned_finance_income ci
where ci.contract_id = cc.contract_id
and rownum = 1),
'1')
end status,
cc.inception_of_lease creation_date
from con_contract cc, prj_project_lease_item li
where cc.project_id = li.project_id
and cc.data_class = 'NORMAL'
and cc.contract_status not in
('RESCIND', 'CANCEL', 'CLOSED')
and cc.division != '95'
and (li.machine_number=${@machine_number} or li.machine_number_70=${@machine_number})
union
select lil.ASSET_NAME equnm,
li.BRAND_VALUE brandname,
lil.SPECIFICATION equmdl,
lil.ASSET_NUM vinno,
null machineno,
'1' status,
p.creation_date
from prj_project p,
prj_project_lease_item li,
prj_project_lease_item_list lil
where p.project_status not in ('CLOSED', 'CONTRACT_CREATED')
and p.project_id = li.project_id
and li.project_lease_item_id = lil.project_lease_item_id
and p.division != '95'
and lil.ASSET_NUM=${@machine_number}
union
select lil.ASSET_NAME equnm,
li.BRAND_VALUE brandname,
lil.SPECIFICATION equmdl,
lil.ASSET_NUM vinno,
null machineno,
CASE
WHEN CC.CONTRACT_STATUS IN
('REPUR', 'ET', 'TERMINATE') then
'3'
else
nvl((select '2'
from con_unearned_finance_income ci
where ci.contract_id = cc.contract_id
and rownum = 1),
'1')
end status,
cc.inception_of_lease creation_date
from con_contract cc,
prj_project_lease_item li,
prj_project_lease_item_list lil
where cc.project_id = li.project_id
and cc.data_class = 'NORMAL'
and cc.contract_status not in
('RESCIND', 'CANCEL', 'CLOSED')
and li.project_lease_item_id = lil.project_lease_item_id
and cc.division != '95'
and lil.ASSET_NUM=${/@machine_number}
) t1
order by nvl(t1.creation_date, to_date('2000-01-01', 'yyyy-mm-dd')) desc) t2
where rownum = 1
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="existcont" databaseType="NUMBER" datatype="java.lang.Long"/>
<bm:field name="equnm" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="brandname" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="equmdl" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="vinno" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="machineno" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String"/>
</bm:fields>
</bm:model>
......@@ -148,7 +148,10 @@ select fa.file_name,fa.file_path,fa.attachment_id
'CSH_PAYMENT_REQ_TJ_RE','CSH_PAYMENT_REQ_TJ_E',
--'CSH_PAYMENT_REQ_KJ_1_RE','CSH_PAYMENT_REQ_KJ_1_E',
'CSH_PAYMENT_REQ_KJ_1_RE','CSH_PAYMENT_REQ_TJ_E',
'CSH_LEASEBACK_YNTQ_RE','CSH_PAYMENT_REQ_TJ_E'
'CSH_LEASEBACK_YNTQ_RE','CSH_PAYMENT_REQ_TJ_E',
--广东鑫源 保证函(广东鑫众实控人)
'FINANCE_LEASE_CONTRACT_GXZ_S_E','FINANCE_LEASE_CONTRACT_GXZ_S_E',
'GUA_PERSONAL_CREDIT_MJ_SE','PERSONAL_CREDIT'
)
from con_ele_signer_file cf, con_contract_ele_signer cs
where cf.con_ele_signer_id = cs.con_ele_signer_id
......
......@@ -64,7 +64,8 @@ select fa.file_name, fa.file_path, fa.file_size, ct.order_seq
from con_contract_bp cb, hls_bp_master hm
where cb.bp_id = hm.bp_id
and hm.social_code = ${@id_no}
and cb.contract_id = cc.contract_id)))
and cb.contract_id = cc.contract_id))
and cf.templet_code not in('FINANCE_LEASE_CONTRACT_GXZ_S_E','GUA_PERSONAL_CREDIT_MJ_SE'))
order by ct.order_seq
]]></bm:query-sql>
</bm:operation>
......
<?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 decode(v.exc_num, 0, 'N', 'Y') statusFlag
from (select count(1) exc_num
from sign_auth_exc t
where t.id_no = ${@id_no}
and t.bp_name = ${@bp_name}
and t.agent_bp_code='D00010039') v
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="statusFlag"/>
</bm:fields>
</bm:model>
......@@ -216,7 +216,7 @@
return;
}
//代理店北京慧珠不支持打印纸质合同文本
if(bp_id_agent_code=='D00010038'||bp_id_agent_code=='D00010023'){
if(bp_id_agent_code=='D00010038'||bp_id_agent_code=='D00010023'||bp_id_agent_code=='D00010039'){
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
return;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -61,6 +61,11 @@
}
function con7000_submit() {
var gld_write_record = $('con7000_gld_write_off_ds').getAll();
if(Ext.isEmpty(gld_write_record)){
Leaf.showMessage('提示', '请先保存!');
return false;
}
var hd_record = $('con_rent_trans_penalty_hd_ds').getAt(0);
var gld_record = $('con_rent_trans_penalty_hd_ds').getAll();
if (gld_record.length < 1) {
......
......@@ -23,10 +23,10 @@
function efile_archive_pool_batch_trans() {
var records=$('pool_temp_ds').getAll();
var records=$('pool_temp_ds').getAll();
var saveData = [];
var param = {};
Leaf.showConfirm('${l:PROMPT}', '是否确定批量传输?', function() {
Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致上个月满足条件的电子档案全部传输!!!如果不需要传输所有数据,请一定点击取消按钮!!!</span>', function() {
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
for (var i = 0;i < records.length;i++) {
......@@ -42,19 +42,20 @@
para: param,
success: function() {
Leaf.Masker.unmask(detail_mask);
Leaf.showMessage('提示','传输成功',function(){
Leaf.showMessage('提示','传输成功',function(){
$('efile_archive_pool_ds').query();
});
},
},
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
},
error: function() {
Leaf.Masker.unmask(detail_mask);
},
},
scope: this
});
});
}, function () {
}, 300, 150);
}
......@@ -198,7 +199,7 @@
<!--<a:screenTitle/>-->
<a:gridButton click="efile_archive_pool_query" text="HLS.QUERY"/>
<a:gridButton click="efile_archive_pool_reset" text="重置"/>
<a:gridButton click="efile_archive_pool_batch_trans" text="启动批量传输"/>
<a:gridButton id="efile_archive_pool_batch_id" click="efile_archive_pool_batch_trans" text="启动批量传输"/>
<a:gridButton click="efile_archive_pool_manual_trans" text="手动传输"/>
</a:screenTopToolbar>
<a:form column="4" marginWidth="30" title="查询条件">
......
......@@ -178,7 +178,7 @@ function send_query(batch_id) {
'payer_number': fieldValueMap['PAYER_ACCOUNT'],//付款方账户
'payer_name': fieldValueMap['PAYER_NAME'],//付款方户名
'zy': fieldValueMap['ZY'],//摘要
'receipt_no': fieldValueMap['DOC_CODE'].substring(4,14),//回单编号
'receipt_no': fieldValueMap['DOC_CODE'].substring(3,13),//回单编号
'beneficiary_bank': fieldValueMap['BENEFICIARY_BANK'],//收款方银行
'bank_num': fieldValueMap['BENEFICIARY_ACCOUNT'],//收款方账户
'beneficiary_name': fieldValueMap['BENEFICIARY_NAME'],//收款方户名
......@@ -312,7 +312,7 @@ function send_query(batch_id) {
'payer_number': fieldValueMap['PAYER_ACCOUNT'],//付款方账户
'payer_name': fieldValueMap['PAYER_NAME'],//付款方户名
'zy': fieldValueMap['ZY'],//摘要
'receipt_no': fieldValueMap['DOC_CODE'].substring(4,14),//回单编号
'receipt_no': fieldValueMap['DOC_CODE'].substring(3,13),//回单编号
'beneficiary_bank': fieldValueMap['BENEFICIARY_BANK'],//收款方银行
'bank_num': fieldValueMap['BENEFICIARY_ACCOUNT'],//收款方账户
'beneficiary_name': fieldValueMap['BENEFICIARY_NAME'],//收款方户名
......
......@@ -196,7 +196,6 @@
};
//法人供应商经办人身份证号非必填 18083 2022/12/1
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var sign_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_SIGNER', 'hls_bp_master_signer');
......@@ -209,6 +208,19 @@
}
}
}
//经办人身份信息校验
if(sign_ds_id==ds.id && sign_ds_id){
var sign_record = $(sign_ds_id).getAll();
var check_num=0;
if(sign_record[0].data.id_card != undefined){
check_num++;
}
if(check_num==0){
$(sign_ds_id).remove(sign_record[0]);
Leaf.showErrorMessage("提示","请先保存!");
return false;
}
}
}
......@@ -555,6 +567,24 @@
}
}
}
// 经办人信息校验
var signer_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer');
if(signer_ds_id){
var signer_record = $(signer_ds_id).getAll();
var v_signer_count=0;
if(signer_record.length > 1){
for (var i = 1;i < signer_record.length;i++) {
if(signer_record[i].get('id_card') == signer_record[i-1].get('id_card')){
v_signer_count=v_signer_count+1;
}
}
}
if(v_signer_count >= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是” 18083 2022/11/30
if (head_record.get('invoice_type')=='PAPER'){
if(head_record.get('full_elec_invoice_flag')=='Y'){
......
......@@ -82,7 +82,24 @@
return false;
}
// 经办人信息校验
var signer_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer');
if(signer_ds_id){
var signer_record = $(signer_ds_id).getAll();
var v_signer_count=0;
if(signer_record.length > 1){
for (var i = 1;i < signer_record.length;i++) {
if(signer_record[i].get('id_card') == signer_record[i-1].get('id_card')){
v_signer_count=v_signer_count+1;
}
}
}
if(v_signer_count >= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord();
......@@ -571,6 +588,19 @@
}
}
}
//经办人身份信息校验
if(sign_ds_id==ds.id && sign_ds_id){
var sign_record = $(sign_ds_id).getAll();
var check_num=0;
if(sign_record[0].data.id_card != undefined){
check_num++;
}
if(check_num==0){
$(sign_ds_id).remove(sign_record[0]);
Leaf.showErrorMessage("提示","请先保存!");
return false;
}
}
}
//更新时调用 add by liukang
......
......@@ -73,6 +73,24 @@
Leaf.showErrorMessage('${l:PROMPT}', '第三方不能含有其他角色类型');
return false;
}
// 经办人信息校验
var signer_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer_req');
if(signer_ds_id){
var signer_record = $(signer_ds_id).getAll();
var v_signer_count=0;
if(signer_record.length > 1){
for (var i = 1;i < signer_record.length;i++) {
if(signer_record[i].get('id_card') == signer_record[i-1].get('id_card')){
v_signer_count=v_signer_count+1;
}
}
}
if(v_signer_count >= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
var bp_record = $(ds_id).getCurrentRecord();
var address_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_address_req');
......
......@@ -754,6 +754,12 @@
ds.unSelect(record);
ds.Select(record);
}
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
//实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除担保人!');
ds.unSelect(record);
ds.Select(record);
}
}
};
......@@ -1411,6 +1417,10 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
......
......@@ -655,6 +655,15 @@
ds.unSelect(record);
}, 1);
}
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
//实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除担保人!');
// ds.unSelect(record);
// ds.select(record);
setTimeout(function () {
ds.unSelect(record);
}, 1);
}
}
};
......@@ -1128,6 +1137,10 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
......
......@@ -633,6 +633,15 @@
ds.unSelect(record);
}, 1);
}
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
//实际为不选中
Leaf.showMessage('${l:HLS.PROMPT}', '无法删除担保人!');
// ds.unSelect(record);
// ds.select(record);
setTimeout(function () {
ds.unSelect(record);
}, 1);
}
}
};
......@@ -705,6 +714,10 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
if (record.get('bp_code') == 'C00007065' || record.get('bp_code') == 'C00007066') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70' &&division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
......
<?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 sign_auth_status_query() {
var statusFlag_map;
var statusFlag;
try {
var statusFlag_query = $bm('wx.WX100.sign_auth_status_query');
statusFlag_map = statusFlag_query.queryAsMap({
id_no:$ctx.parameter.idNo,
bp_name:$ctx.parameter.name
});
var statusFlag_details = statusFlag_map.getChildren();
statusFlag = statusFlag_details[0].statusFlag;
$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);
statusFlag = 'Y'
}
//返回结果
var result = {
code: $ctx.parameter.return_status,
message: $ctx.parameter.return_message,
statusFlag: statusFlag
};
$ctx.parameter.json = JSON.stringify(result);
}
if ($ctx.parameter.return_status != 'E' && $ctx.parameter.return_status != 'TIMEOUT') {
sign_auth_status_query();
}
]]></s:server-script>
</a:init-procedure>
<a:service-output output="/parameter/@json"/>
</a:service>
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