| | |
| | | StationInf sinf=pinf.getSinf(); |
| | | UpdateWrapper wrapper1=new UpdateWrapper(); |
| | | if(sinf.getStationName()!=null){ |
| | | //先查看机房名和stationid是不是匹配的 |
| | | QueryWrapper wrapper2=new QueryWrapper(); |
| | | wrapper2.eq("station_id",sinf.getStationId()); |
| | | wrapper2.last("limit 1"); |
| | | StationInf s=sinfMapper.selectOne(wrapper2); |
| | | if(!s.getStationName().equalsIgnoreCase(sinf.getStationName())){ |
| | | wrapper1.set("station_name",sinf.getStationName()); |
| | | String fullName=sinf.getProvice()+"_"+sinf.getCity()+"_"+sinf.getCountry()+"_"+sinf.getStationName(); |
| | | //检测该机房下要修改的电源名是否存在 |
| | |
| | | } |
| | | wrapper1.set("full_name",fullName); |
| | | } |
| | | } |
| | | if(sinf.getStationType()!=null){ |
| | | wrapper1.set("station_type",sinf.getStationType()); |
| | | } |