|
@@ -40,6 +40,7 @@ import com.unis.module.coding.dal.mysql.fmxx.FmxxMapper;
|
40
|
40
|
import com.unis.module.coding.dal.mysql.kqxx.KqxxMapper;
|
41
|
41
|
import com.unis.module.coding.dal.mysql.province.ProvinceMapper;
|
42
|
42
|
import com.unis.module.coding.dal.mysql.users.UsersMapper;
|
|
43
|
+import com.unis.module.core.enums.CityConstants;
|
43
|
44
|
import com.unis.module.core.enums.XZQHLEVEL;
|
44
|
45
|
import com.unis.module.core.enums.YXZT;
|
45
|
46
|
import com.unis.module.system.dal.dataobject.arealevel.AreaLevelDO;
|
|
@@ -244,6 +245,10 @@ public class DwxxServiceImpl implements DwxxService {
|
244
|
245
|
s.setCfzt(pageReqVO.getCfzt());
|
245
|
246
|
s.setCfEnd(pageReqVO.getCfEnd());
|
246
|
247
|
s.setCfStart(pageReqVO.getCfStart());
|
|
248
|
+ if (Arrays.asList(CityConstants.CITY).contains(s.getSheng())) {
|
|
249
|
+ s.setShi(s.getXian());
|
|
250
|
+ s.setXian(null);
|
|
251
|
+ }
|
247
|
252
|
});
|
248
|
253
|
}
|
249
|
254
|
}
|
|
@@ -722,11 +727,17 @@ public class DwxxServiceImpl implements DwxxService {
|
722
|
727
|
if (parts.length != 0) {
|
723
|
728
|
province = parts[0];
|
724
|
729
|
if (parts.length == 3) {
|
725
|
|
- city = parts[1];
|
726
|
|
- county = parts[2];
|
|
730
|
+ if (Arrays.asList(CityConstants.CITY).contains(province)) {
|
|
731
|
+ city = parts[2];
|
|
732
|
+ }else {
|
|
733
|
+ city = parts[1];
|
|
734
|
+ county = parts[2];
|
|
735
|
+ }
|
727
|
736
|
}
|
728
|
737
|
if (parts.length == 2) {
|
729
|
|
- city = parts[1];
|
|
738
|
+ if (!Arrays.asList(CityConstants.CITY).contains(province)) {
|
|
739
|
+ city = parts[1];
|
|
740
|
+ }
|
730
|
741
|
}
|
731
|
742
|
}
|
732
|
743
|
List<AreaLevelDO> areaLevelDOS = areaLevelMapper.selectListByName(Arrays.asList(province, city, county));
|