perryhsu
2020-09-28 72751db22da348624e92f93d894b0a9197e16ec3
fix BattInf interface
2个文件已修改
20 ■■■■ 已修改文件
zijing/src/com/fgkj/actions/BattInfAction.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zijing/src/com/fgkj/dao/impl/BattInfImpl.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zijing/src/com/fgkj/actions/BattInfAction.java
@@ -155,6 +155,10 @@
    //--查询所有的区县
    public String serchAllStationName5(){
        BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
        User_inf uinf = (User_inf) getUser();
        binf.setNum(uinf.getUId());
        model=service.serchAllStationName5(binf);
        result = ActionUtil.tojson(model);
        return SUCCESS;
@@ -162,6 +166,10 @@
    //--查询所有的机房
    public String serchAllStationName(){
        BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
        User_inf uinf = (User_inf) getUser();
        binf.setNum(uinf.getUId());
        model=service.serchAllStationName(binf);
        result = ActionUtil.tojson(model);
        return SUCCESS;
zijing/src/com/fgkj/dao/impl/BattInfImpl.java
@@ -899,9 +899,11 @@
    public List serchAllStationName5(Object obj){
        BattInf binf=(BattInf) obj;
        String sql=" select DISTINCT(StationName5) from db_battinf.tb_battinf "
                + " where StationName1 like ?  and StationName2 like ? "
                + " where StationName1 like ?  and StationName2 like ? and StationId in("+
                " select distinct db_user.tb_user_battgroup_baojigroup_battgroup.StationId from db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr where db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id=db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id  and db_user.tb_user_battgroup_baojigroup_usr.uId=?" +
                ") "
                + " ORDER BY CONVERT( StationName5 USING gbk ) COLLATE gbk_chinese_ci ASC  ";
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%"}, new CallBack() {
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%",binf.getNum()}, new CallBack() {
            
            public List getResults(ResultSet rs) {
                List list=new ArrayList();
@@ -925,9 +927,11 @@
        BattInf binf=(BattInf) obj;
        String sql="select DISTINCT StationName1,StationName2,StationName3,StationName5 " +
                " FROM db_battinf.tb_battinf " +
                " where StationName1 like ? and StationName2 like ?  and StationName5 like ? " +
                " where StationName1 like ? and StationName2 like ?  and StationName5 like ? and StationId in("+
                " select distinct db_user.tb_user_battgroup_baojigroup_battgroup.StationId from db_user.tb_user_battgroup_baojigroup_battgroup,db_user.tb_user_battgroup_baojigroup_usr where db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id=db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id  and db_user.tb_user_battgroup_baojigroup_usr.uId=?" +
                ")"  +
                " ORDER BY CONVERT( StationName USING gbk ) COLLATE gbk_chinese_ci ASC ";
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName5()+"%"},new CallBack() {
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName5()+"%",binf.getNum()},new CallBack() {
            
            public List getResults(ResultSet rs) {
                List list=new ArrayList();