81041
2019-10-28 697c6a78247ef104994ab0311526f63588153ec1
修改
3个文件已修改
22 ■■■■ 已修改文件
zijing/src/com/fgkj/actions/BattInfAction.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zijing/src/com/fgkj/dao/impl/BattInfImpl.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zijing/src/com/fgkj/services/BattInfServices.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zijing/src/com/fgkj/actions/BattInfAction.java
@@ -131,13 +131,16 @@
    }
    //-----------查询所有的省份
    public String serchAllStationName1(){
        model=service.serchAllStationName1();
        User_inf uinf=(User_inf) getUser();
        model=service.serchAllStationName1(uinf);
        result = ActionUtil.tojson(model);
        return SUCCESS;
    }
    // ----------查询所有的市
    public String serchAllStationName2(){
        User_inf uinf=(User_inf) getUser();
        BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
        binf.setNum(uinf.getUId());
        model=service.serchAllStationName2(binf);
        result = ActionUtil.tojson(model);
        return SUCCESS;
zijing/src/com/fgkj/dao/impl/BattInfImpl.java
@@ -871,10 +871,14 @@
        return list;
    }
    //-----------查询所有的省份
    public List serchAllStationName1(){
    public List serchAllStationName1(Object obj){
        User_inf uinf=(User_inf) obj;
        String sql=" select DISTINCT(StationName1) from db_battinf.tb_battinf "
                + "  where 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( StationName1 USING gbk ) COLLATE gbk_chinese_ci ASC  ";
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), null, new CallBack() {
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{uinf.getUId()}, new CallBack() {
            
            public List getResults(ResultSet rs) {
                List list=new ArrayList();
@@ -897,8 +901,11 @@
        BattInf binf=(BattInf) obj;
        String sql=" select DISTINCT(StationName2) from db_battinf.tb_battinf "
                + " where StationName1 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( StationName2 USING gbk ) COLLATE gbk_chinese_ci ASC   ";
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%"}, new CallBack() {
        List list=DAOHelper.executeQuery(sql, DBUtil.getConn(), new Object[]{"%"+binf.getStationName1()+"%",binf.getNum()}, new CallBack() {
            
            public List getResults(ResultSet rs) {
                List list=new ArrayList();
zijing/src/com/fgkj/services/BattInfServices.java
@@ -233,8 +233,8 @@
        return model;
    }
    //-----------查询所有的省份
    public ServiceModel serchAllStationName1() {
        List list=((BattInfImpl)dao).serchAllStationName1();
    public ServiceModel serchAllStationName1(Object obj) {
        List list=((BattInfImpl)dao).serchAllStationName1(obj);
        if (list != null && list.size() > 0) {
            model.setCode(1);
            model.setData(list);