Commit a51e902d authored by 38823's avatar 38823

合同电子签约文件大小对比job优化

parent d66db242
...@@ -27,6 +27,7 @@ select F.ATTACHMENT_ID, ...@@ -27,6 +27,7 @@ select F.ATTACHMENT_ID,
BEGIN BEGIN
UPDATE fnd_atm_attachment f UPDATE fnd_atm_attachment f
set f.if_same = ${@if_same}, set f.if_same = ${@if_same},
f.new_file_size = ${@new_file_size},
f.last_update_date=sysdate, f.last_update_date=sysdate,
f.last_updated_by= nvl(${/session/@user_id},1) f.last_updated_by= nvl(${/session/@user_id},1)
where f.attachment_id=${@attachment_id} where f.attachment_id=${@attachment_id}
......
...@@ -20,7 +20,7 @@ var ele_con_file_path = info_query('HL_ELE_FILE_PATH').code_value; ...@@ -20,7 +20,7 @@ var ele_con_file_path = info_query('HL_ELE_FILE_PATH').code_value;
function fileSizeCheck() { function fileSizeCheck() {
var parameter_map = $bm('wx.WX100.con_ele_file_size_check').queryAsMap({ var parameter_map = $bm('wx.WX100.con_ele_file_size_check').queryAsMap({
ele_con_file_path:ele_con_file_path ele_con_file_path: 'Z:/project/hl_leasing/cmfile/APP'
}); });
var data = parameter_map.getChildren(); var data = parameter_map.getChildren();
var fixed_size_bm = $bm('wx.WX100.con_ele_file_size_check'); var fixed_size_bm = $bm('wx.WX100.con_ele_file_size_check');
...@@ -31,12 +31,14 @@ function fileSizeCheck() { ...@@ -31,12 +31,14 @@ function fileSizeCheck() {
if(file_size!=now_file_size){ if(file_size!=now_file_size){
fixed_size_bm.update({ fixed_size_bm.update({
if_same: 'N', if_same: 'N',
new_file_size: now_file_size,
attachment_id: data[i].attachment_id, attachment_id: data[i].attachment_id,
source_pk_value: data[i].source_pk_value source_pk_value: data[i].source_pk_value
}) })
}else { }else {
fixed_size_bm.update({ fixed_size_bm.update({
if_same: 'Y', if_same: 'Y',
new_file_size: now_file_size,
attachment_id: data[i].attachment_id, attachment_id: data[i].attachment_id,
source_pk_value: data[i].source_pk_value source_pk_value: data[i].source_pk_value
}) })
......
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