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
446f72be
Commit
446f72be
authored
Jan 10, 2025
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邮件发送优化
parent
c6a5977b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
sys_mail_sent.lwm
src/main/webapp/WEB-INF/classes/sys/SYS405/sys_mail_sent.lwm
+17
-0
zj_sys_mailing_list.lwm
...webapp/WEB-INF/classes/sys/SYS405/zj_sys_mailing_list.lwm
+2
-1
sys_mail_send_by_java.lsc
src/main/webapp/modules/sys/SYS405/sys_mail_send_by_java.lsc
+7
-0
No files found.
src/main/webapp/WEB-INF/classes/sys/SYS405/sys_mail_sent.lwm
0 → 100644
View file @
446f72be
<?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 v.job_count>
=2 then 'Y' else 'N' end as existsFlag
from (select count(1) job_count
from sch_concurrent_job t1
where task_code = 'SYS_SEND_MAIL_BY_JAVA'
and job_status in ('RUNNING')) v
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"existsFlag"
/>
</bm:fields>
</bm:model>
src/main/webapp/WEB-INF/classes/sys/SYS405/zj_sys_mailing_list.lwm
View file @
446f72be
...
@@ -23,12 +23,13 @@
...
@@ -23,12 +23,13 @@
zj_sys_mailing_list
zj_sys_mailing_list
WHERE
WHERE
sent_flag = 'N' AND
sent_flag = 'N' AND
mail_to is not null AND
error_times <= 3 AND
error_times <= 3 AND
(
(
sysdate - creation_date
sysdate - creation_date
)
)
< 3
< 3
and rownum<=
30
and rownum<=
15
]]>
</bm:query-sql>
]]>
</bm:query-sql>
</bm:operation>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:operation
name=
"update"
>
...
...
src/main/webapp/modules/sys/SYS405/sys_mail_send_by_java.lsc
View file @
446f72be
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
importPackage(Packages.com.hand.hls.hlcm.util);
importPackage(Packages.com.hand.hls.hlcm.util);
try {
try {
var existsFlag_query = $bm('sys.SYS405.sys_mail_sent');
existsFlag_map = existsFlag_query.queryAsMap({
});
var existsFlag_details = existsFlag_map.getChildren();
existsFlag = existsFlag_details[0].existsFlag;
if(existsFlag=='N'){
var mail_server_bm = $bm('sys.SYS405.sys_get_mail_server');
var mail_server_bm = $bm('sys.SYS405.sys_get_mail_server');
var mail_server_result = mail_server_bm.queryAsMap().getChildren();
var mail_server_result = mail_server_bm.queryAsMap().getChildren();
var mail_list_bm = $bm('sys.SYS405.zj_sys_mailing_list');
var mail_list_bm = $bm('sys.SYS405.zj_sys_mailing_list');
...
@@ -44,6 +50,7 @@
...
@@ -44,6 +50,7 @@
});
});
}
}
}
}
}
} catch (e) {
} catch (e) {
raise_app_error(e);
raise_app_error(e);
}
}
...
...
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