njcb涉农完善
This commit is contained in:
+2
-2
@@ -389,7 +389,7 @@ public class AddrSvcController {
|
||||
District district = districtService.findByNameAndAlias(dto.getCity(), dto.getDistrict(), dto.getName(), "district");
|
||||
if (null != district) {
|
||||
//DistrictStatBo statBo = districtStatService.findCurrentDistrictStat(new DistrictKey(dto.getCity(), dto.getDistrict(), dto.getName()));
|
||||
DistrictAvgBo statBo = districtStatService.findDistrictStat(district, "district", null) ;
|
||||
DistrictAvgBo statBo = districtStatService.findDistrictStat(district, "district", null);
|
||||
if (null != statBo) {
|
||||
dto.setAvgPrice(statBo.getAvgPrice());
|
||||
}
|
||||
@@ -514,7 +514,7 @@ public class AddrSvcController {
|
||||
} else {
|
||||
try {
|
||||
//如果是江苏省或者浙江省 调用齐梁的结果
|
||||
if ("江苏省".equals(result.getString("province")) || "浙江省".equals(result.getString("province"))) {
|
||||
if (result.containsKey("province") && ("江苏省".equals(result.getString("province")) || "浙江省".equals(result.getString("province")))) {
|
||||
//结果比较,如果涉农结果不一致
|
||||
//调用齐梁 type :1 对公 0 对私
|
||||
//我们 type :1 对私 2 对共
|
||||
|
||||
Reference in New Issue
Block a user