81041
2018-11-01 b0bcf175ff8bb19a127b9d4e2f7de59b554bab87
gx_tieta/src/com/fgkj/dao/impl/User_ChartImpl.java
@@ -53,7 +53,9 @@
      list.add(uchart.getChart_dev_alarm());
      list.add(uchart.getChart_pre_charge());
      list.add(uchart.getChart_online_charge());
      String sql="insert into web_site.tb_user_Chart(chart_name,chart_file,Chart_logo,Chart_normal,Chart_behind,Chart_warn,Chart_timeout,Chart_nuclear_cap,Chart_dev_alarm,Chart_pre_charge,Chart_online_charge) values(?,?,?,?,?,?,?,?,?,?,?)";
      list.add(uchart.getChart_poff());
      list.add(uchart.getChart_install());
      String sql="insert into web_site.tb_user_Chart(chart_name,chart_file,Chart_logo,Chart_normal,Chart_behind,Chart_warn,Chart_timeout,Chart_nuclear_cap,Chart_dev_alarm,Chart_pre_charge,Chart_online_charge,Chart_poff,Chart_install) values(?,?,?,?,?,?,?,?,?,?,?,?,?)";
      boolean bl=DAOHelper.executeUpdatePicture(DBUtil.getConn(), sql, list);
      return bl;
   }
@@ -143,8 +145,26 @@
         list.add(uchart.getChart_online_charge());
         sql+=online_chargeSql;
      }
      //Chart_poff图片
      String poffSql=" Chart_poff=? ";
      if(uchart.getChart_poff()!=null&&uchart.getChart_poff().length()>0){
         if(list.size()>0){
            sql+=",";
         }
         list.add(uchart.getChart_poff());
         sql+=poffSql;
      }
      //Chart_install图片
      String installSql=" Chart_install=? ";
      if(uchart.getChart_install()!=null&&uchart.getChart_install().length()>0){
         if(list.size()>0){
            sql+=",";
         }
         list.add(uchart.getChart_install());
         sql+=installSql;
      }
      //endSql
      String endSql=" where chart_file=?";
      String endSql=" where chart_file=? ";
      list.add(uchart.getChart_file());
      sql+=endSql;
      //System.out.println(list.size()+"  "+sql);