Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
Overview
Overview
Details
Activity
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
java-sunac-report
sunac_report
Commits
e4108d33
Commit
e4108d33
authored
Sep 11, 2019
by
sunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最终版1
parent
a7a4d918
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
TimedTask.java
src/main/java/com/ejweb/modules/report/utils/TimedTask.java
+1
-1
CtBbtcTypeAreaDao.xml
src/main/resources/mappings/modules/report/CtBbtcTypeAreaDao.xml
+8
-8
No files found.
src/main/java/com/ejweb/modules/report/utils/TimedTask.java
View file @
e4108d33
...
...
@@ -20,7 +20,7 @@ public class TimedTask {
@Autowired
private
ReportDao
reportDao
;
@Scheduled
(
cron
=
"0
23 15 * * ?"
)
//cron表达式 每天中午
12执行
@Scheduled
(
cron
=
"0
0 0 * * ?"
)
//cron表达式 每天凌晨
12执行
public
void
job1
()
{
//获取所有转为线索的举报信息
ReportEntity
reportEntity
=
new
ReportEntity
();
...
...
src/main/resources/mappings/modules/report/CtBbtcTypeAreaDao.xml
View file @
e4108d33
...
...
@@ -11,8 +11,8 @@
</sql>
<sql
id=
"ctBbtcTypeAreaJoins"
>
LEFT JOIN ct_bbtc_sys_dict b on b.id = a.
group_name
LEFT JOIN CT_BBTC_REGION c on c.id = a.
area
LEFT JOIN ct_bbtc_sys_dict b on b.id = a.
GROUP_ID
LEFT JOIN CT_BBTC_REGION c on c.id = a.
AREA_ID
LEFT JOIN CT_BBTC_BUS_TYPE d on d.id = a.parent_id
</sql>
...
...
@@ -38,9 +38,9 @@
FROM CT_BBTC_TYPE_AREA a
<include
refid=
"ctBbtcTypeAreaJoins"
/>
<where>
a.
group_name
=#{group}
a.
GROUP_ID
=#{group}
<if
test=
"area != null and area != ''"
>
AND a.
area
= #{area}
AND a.
AREA_ID
= #{area}
</if>
</where>
GROUP BY a.parent_id
...
...
@@ -65,8 +65,8 @@
<insert
id=
"insert"
>
INSERT INTO CT_BBTC_TYPE_AREA(
id,
group_name
,
area
,
GROUP_ID
,
AREA_ID
,
parent_id
) VALUES (
#{id},
...
...
@@ -78,8 +78,8 @@
<update
id=
"update"
>
UPDATE CT_BBTC_TYPE_AREA SET
group_name
= #{group},
area
= #{area},
GROUP_ID
= #{group},
AREA_ID
= #{area},
parent_id = #{parentId}
WHERE id = #{id}
</update>
...
...
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