Browse Source

修改年初始化上年用水量

luobo 4 years ago
parent
commit
729a208b3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/java/com/bus/dao/impl/BusOrgDaoImpl.java

+ 1 - 1
src/java/com/bus/dao/impl/BusOrgDaoImpl.java

@@ -81,7 +81,7 @@ public class BusOrgDaoImpl extends GenericDaoImpl<BusOrg, Long>
 				   + "    jan_reply,feb_reply,mar_reply,apr_reply,may_reply,jun_reply,jul_reply,aug_reply,sept_reply,oct_reply,nov_reply,dec_reply "
                    + " )                                                                                                 " 
                    + " (                                                                                                 "
-				   + " SELECT b.`org_id`,"+yearSql+","+yearSql+", "+yearSql+",                                  "
+				   + " SELECT b.`org_id`,SUM(bm.`water`),"+yearSql+", "+yearSql+",                                  "
 				   + "       "+quarterSql+", "+quarterSql+","+quarterSql+","+quarterSql+",                              "
                    + "        "+quarterSql+", "+quarterSql+","+quarterSql+","+quarterSql+",                             "
                    + "        ?,?,?,'yes',                  "