Commit e7f80413739e3c3f4b469ebbea1f8968cef5fbc5
1 parent
5ace7d78
审计报表修改
统计日报导出加入日期
Showing
5 changed files
with
52 additions
and
22 deletions
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -2668,6 +2668,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 2668 | 2668 | sdfSimple = new SimpleDateFormat("yyyyMMdd"); |
| 2669 | 2669 | List<Iterator<?>> listI = new ArrayList<Iterator<?>>(); |
| 2670 | 2670 | Map<String, Object> m = new HashMap<String, Object>(); |
| 2671 | + m.put("date", date+"至"+date2); | |
| 2671 | 2672 | ReportUtils ee = new ReportUtils(); |
| 2672 | 2673 | try { |
| 2673 | 2674 | listI.add(lMap.iterator()); | ... | ... |
src/main/java/com/bsth/service/report/impl/ReportServiceImpl.java
| ... | ... | @@ -2687,29 +2687,57 @@ public class ReportServiceImpl implements ReportService{ |
| 2687 | 2687 | dlbSql += " and xlbm = '"+line+"'"; |
| 2688 | 2688 | } |
| 2689 | 2689 | List<Dlb> dlbList=dlbList(dlbSql); |
| 2690 | - String sql="select r.xl_bm,r.schedule_date_str,r.cl_zbh,r.j_gh,r.s_gh" | |
| 2691 | - + " from bsth_c_s_sp_info_real r where" | |
| 2692 | - + " r.schedule_date_str BETWEEN '"+date+"' and '"+date2+"'"; | |
| 2693 | - if(line.equals("")){ | |
| 2694 | - sql +="and r.gs_bm='"+gsdm+"' " | |
| 2695 | - + " and r.fgs_bm='"+fgsdm+"'"; | |
| 2690 | + List<Map<String, Object>> listGroupBy =null; | |
| 2691 | + String sql=""; | |
| 2692 | + if(zt.equals("zbh")){ | |
| 2693 | + sql+="select r.xl_bm,r.schedule_date_str,r.cl_zbh" | |
| 2694 | + + " from bsth_c_s_sp_info_real r where" | |
| 2695 | + + " r.schedule_date_str BETWEEN '"+date+"' and '"+date2+"'"; | |
| 2696 | + if(line.equals("")){ | |
| 2697 | + sql +="and r.gs_bm='"+gsdm+"' " | |
| 2698 | + + " and r.fgs_bm='"+fgsdm+"'"; | |
| 2699 | + }else{ | |
| 2700 | + sql += " and r.xl_bm = '"+line+"'"; | |
| 2701 | + } | |
| 2702 | + sql += " group by r.xl_bm,r.cl_zbh,r.schedule_date_str"; | |
| 2703 | + listGroupBy=jdbcTemplate.query(sql, new RowMapper<Map<String, Object>>() { | |
| 2704 | + @Override | |
| 2705 | + public Map<String, Object> mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 2706 | + Map<String, Object> map=new HashMap<String,Object>(); | |
| 2707 | + map.put("line",arg0.getString("xl_bm")); | |
| 2708 | + map.put("date", arg0.getString("schedule_date_str")); | |
| 2709 | + map.put("nbbm", arg0.getString("cl_zbh")); | |
| 2710 | + return map; | |
| 2711 | + } | |
| 2712 | + }); | |
| 2696 | 2713 | }else{ |
| 2697 | - sql += " and r.xl_bm = '"+line+"'"; | |
| 2714 | + sql+="select r.xl_bm,r.schedule_date_str,r.cl_zbh,r.j_gh,r.s_gh" | |
| 2715 | + + " from bsth_c_s_sp_info_real r where" | |
| 2716 | + + " r.schedule_date_str BETWEEN '"+date+"' and '"+date2+"'"; | |
| 2717 | + if(line.equals("")){ | |
| 2718 | + sql +="and r.gs_bm='"+gsdm+"' " | |
| 2719 | + + " and r.fgs_bm='"+fgsdm+"'"; | |
| 2720 | + }else{ | |
| 2721 | + sql += " and r.xl_bm = '"+line+"'"; | |
| 2722 | + } | |
| 2723 | + sql += " group by r.xl_bm,r.cl_zbh,r.schedule_date_str,r.j_gh,r.s_gh"; | |
| 2724 | + listGroupBy=jdbcTemplate.query(sql, new RowMapper<Map<String, Object>>() { | |
| 2725 | + @Override | |
| 2726 | + public Map<String, Object> mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 2727 | + Map<String, Object> map=new HashMap<String,Object>(); | |
| 2728 | + map.put("line",arg0.getString("xl_bm")); | |
| 2729 | + map.put("date", arg0.getString("schedule_date_str")); | |
| 2730 | + map.put("nbbm", arg0.getString("cl_zbh")); | |
| 2731 | + map.put("jGh", arg0.getString("j_gh")); | |
| 2732 | + map.put("sGh", arg0.getString("s_gh")); | |
| 2733 | + return map; | |
| 2734 | + } | |
| 2735 | + }); | |
| 2698 | 2736 | } |
| 2699 | - sql += " group by r.xl_bm,r.cl_zbh,r.schedule_date_str,r.j_gh,r.s_gh"; | |
| 2737 | + | |
| 2700 | 2738 | |
| 2701 | - List<Map<String, Object>> listGroupBy=jdbcTemplate.query(sql, new RowMapper<Map<String, Object>>() { | |
| 2702 | - @Override | |
| 2703 | - public Map<String, Object> mapRow(ResultSet arg0, int arg1) throws SQLException { | |
| 2704 | - Map<String, Object> map=new HashMap<String,Object>(); | |
| 2705 | - map.put("line",arg0.getString("xl_bm")); | |
| 2706 | - map.put("date", arg0.getString("schedule_date_str")); | |
| 2707 | - map.put("nbbm", arg0.getString("cl_zbh")); | |
| 2708 | - map.put("jGh", arg0.getString("j_gh")); | |
| 2709 | - map.put("sGh", arg0.getString("s_gh")); | |
| 2710 | - return map; | |
| 2711 | - } | |
| 2712 | - }); | |
| 2739 | + | |
| 2740 | + | |
| 2713 | 2741 | for (int i = 0; i < listGroupBy.size(); i++) { |
| 2714 | 2742 | Map<String, Object> m=listGroupBy.get(i); |
| 2715 | 2743 | String xl_bm=m.get("line")==null?"":m.get("line").toString(); | ... | ... |
src/main/resources/static/pages/forms/mould/statisticsDaily_.xls
No preview for this file type
src/main/resources/static/pages/forms/statement/scheduleDaily.html
| ... | ... | @@ -66,7 +66,7 @@ |
| 66 | 66 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 67 | 67 | <thead> |
| 68 | 68 | <tr> |
| 69 | - <th colspan="40"><lable id="xlmc"></lable>线路调度日报</th> | |
| 69 | + <th colspan="40"><label id="xlmc"></label>线路调度日报</th> | |
| 70 | 70 | </tr> |
| 71 | 71 | <tr> |
| 72 | 72 | <td rowspan="3"><span>路线</span></td> | ... | ... |
src/main/resources/static/pages/forms/statement/statisticsDaily.html
| ... | ... | @@ -70,7 +70,7 @@ |
| 70 | 70 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 71 | 71 | <thead> |
| 72 | 72 | <tr> |
| 73 | - <th colspan="44">线路调度日报</th> | |
| 73 | + <th colspan="44"><label id="tjrq"></label> 线路统计日报</th> | |
| 74 | 74 | </tr> |
| 75 | 75 | <tr> |
| 76 | 76 | <td rowspan="3"><span >路线名</span></td> |
| ... | ... | @@ -275,6 +275,7 @@ |
| 275 | 275 | if(date==null || date =="" ||date2==null || date2 ==""){ |
| 276 | 276 | layer.msg('请选择时间段.'); |
| 277 | 277 | }else{ |
| 278 | + $("#tjrq").html(date+"至"+date2); | |
| 278 | 279 | var params = {}; |
| 279 | 280 | params['gsdm'] = gsdm; |
| 280 | 281 | params['fgsdm'] =fgsdm ; | ... | ... |