|
|
@@ -368,7 +368,12 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
positionAddress.setCityId(Integer.parseInt(jsonObject.getString("cityId")));
|
|
|
positionAddress.setCountryId(Integer.parseInt(jsonObject.getString("countryId")));
|
|
|
positionAddress.setAdname(jsonObject.getString("adname"));
|
|
|
- positionAddress.setAddress(jsonObject.getString("address"));
|
|
|
+ String address=jsonObject.getString("address");
|
|
|
+ if("".equals(address)){
|
|
|
+ positionAddress.setAddress(null);
|
|
|
+ }else {
|
|
|
+ positionAddress.setAddress(jsonObject.getString("address"));
|
|
|
+ }
|
|
|
positionAddress.setIsThisAreaPublish(Integer.parseInt(jsonObject.getString("isThisAreaPublish")));
|
|
|
positionAddressService.save(positionAddress);
|
|
|
}
|
|
|
@@ -496,7 +501,12 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
positionAddress.setCityId(Integer.parseInt(jsonObject.getString("cityId")));
|
|
|
positionAddress.setCountryId(Integer.parseInt(jsonObject.getString("countryId")));
|
|
|
positionAddress.setAdname(jsonObject.getString("adname"));
|
|
|
- positionAddress.setAddress(jsonObject.getString("address"));
|
|
|
+ String address=jsonObject.getString("address");
|
|
|
+ if("".equals(address)){
|
|
|
+ positionAddress.setAddress(null);
|
|
|
+ }else {
|
|
|
+ positionAddress.setAddress(jsonObject.getString("address"));
|
|
|
+ }
|
|
|
positionAddress.setIsThisAreaPublish(Integer.parseInt(jsonObject.getString("isThisAreaPublish")));
|
|
|
positionAddressService.save(positionAddress);
|
|
|
}
|