Commit e4108d33 by sunxin

最终版1

parent a7a4d918
......@@ -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();
......
......@@ -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>
......
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