| | |
| | | planRes.set(1, false, "出现异常" + e.getMessage()); |
| | | } |
| | | map.put("planRes", planRes); |
| | | //map.put("planList", planList); |
| | | map.put("planList", planList); |
| | | //今日实时告警 |
| | | Response bAlmRes = bAlmService.getBalmToday(userId); |
| | | map.put("bAlmRes", bAlmRes); |
| | |
| | | </insert> |
| | | |
| | | <select id="getPlanStaticToday" resultType="com.whyc.pojo.BattdischargePlan"> |
| | | select discharge_state |
| | | from web_site.tb_battdischarge_plan |
| | | where TO_DAYS(discharge_starttime) = TO_DAYS(NOW()) |
| | | select tb_battdischarge_plan.*, tb_battinf.StationName |
| | | from web_site.tb_battdischarge_plan, |
| | | db_battinf.tb_battinf |
| | | where tb_battdischarge_plan.battgroupid = db_battinf.tb_battinf.BattGroupId |
| | | and TO_DAYS(discharge_starttime) = TO_DAYS(NOW()) |
| | | and discharge_state not in (2, 4) |
| | | and tb_battdischarge_plan.battgroupid in (select distinct db_battinf.tb_battinf.battgroupid |
| | | from db_battinf.tb_battinf, |