Commit 3a93db6a by wubh

包活干V2.4.1-调整代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30890 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 9a2be380
...@@ -3292,23 +3292,12 @@ public class OrderServiceImpl implements IOrderService { ...@@ -3292,23 +3292,12 @@ public class OrderServiceImpl implements IOrderService {
// 地区信息 // 地区信息
Integer districtId = order.getDistrict(); Integer districtId = order.getDistrict();
if (districtId != null && districtId > 0) { if (districtId != null && districtId > 0) {
String seperatedArea = areaMapper.getSeperatedArea(districtId); String fullArea = areaMapper.getSeperatedArea(districtId);
String[] areas = seperatedArea.split("\\|"); if (StringUtils.isNotBlank(fullArea)) {
String[] areas = fullArea.split("\\|");
order.setProvince(areas[0]); order.setProvince(areas[0]);
order.setCity(areas[1]); order.setCity(areas[1]);
//SysArea districtArea = areaMapper.selectByPrimaryKey(districtId); }
//if (districtArea != null) {
// Integer cityId = districtArea.getParentId();
// SysArea cityArea = areaMapper.selectByPrimaryKey(cityId);
// if (cityArea != null) {
// order.setCity(cityArea.getAreaName());
// Integer provinceId = cityArea.getParentId();
// SysArea provinceArea = areaMapper.selectByPrimaryKey(provinceId);
// if (provinceArea != null) {
// order.setProvince(provinceArea.getAreaName());
// }
// }
//}
} }
// 渠道名称 // 渠道名称
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!