Commit f1ed2335 by yangll

开发1.28.0 优化地址显示

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@34901 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0321fedd
......@@ -868,7 +868,12 @@ public class CarOrderServiceImpl extends BaseOrderService implements CarOrderSer
orderStatus.setUpdateBy(order.getUpdateBy());
Integer district = order.getDistrict();
String fullDistrict = (district != null) ? this.areaService.getFullAreaByDistrictId(district) : "";
String fullAddress = fullDistrict + order.getAddress();
String fullAddress = "";
if (StringUtils.isEmpty(order.getAddress())) {
fullAddress = fullDistrict;
} else {
fullAddress = fullDistrict + order.getAddress();
}
orderStatus.setProperty1(fullAddress);
orderStatus.setProperty2(order.getMechanicAddress());
orderStatus.setReason(order.getReserveInstallReason());
......@@ -1717,6 +1722,9 @@ public class CarOrderServiceImpl extends BaseOrderService implements CarOrderSer
sysOrderStatus.setUpdateBy(userId);
Integer districtId = order.getDistrict();
String address = order.getAddress();
if (StringUtils.isEmpty(address)) {
address = "";
}
String fullArea = "";
if (districtId != null) {
fullArea = areaService.getFullAreaByDistrictId(districtId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!