Commit ee60a1d1 by wubh

包活干V2.0.0-修改:代码调整

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28396 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 16f8ad06
...@@ -150,7 +150,7 @@ public class DeliveryController extends BaseController { ...@@ -150,7 +150,7 @@ public class DeliveryController extends BaseController {
* @return 结果 * @return 结果
*/ */
@RequestMapping(value = "/receive", method = {RequestMethod.POST, RequestMethod.GET}) @RequestMapping(value = "/receive", method = {RequestMethod.POST, RequestMethod.GET})
public R receive(@RequestBody SysDelivery delivery) { public R receive(SysDelivery delivery) {
super.logInfo("==== /delivery/receive param", delivery); super.logInfo("==== /delivery/receive param", delivery);
if (delivery.getId() == null) { if (delivery.getId() == null) {
......
...@@ -660,7 +660,7 @@ public class ReportController extends BaseReportController { ...@@ -660,7 +660,7 @@ public class ReportController extends BaseReportController {
SysArea area = order.getArea(); SysArea area = order.getArea();
StringBuffer areaTextSb = new StringBuffer(); StringBuffer areaTextSb = new StringBuffer();
while (area != null) { while (area != null) {
areaTextSb.append(area.getAreaName()).append('/'); areaTextSb.append(area.getAreaName()).append(' ');
List<SysArea> children = area.getChildren(); List<SysArea> children = area.getChildren();
area = CollectionUtils.isNotEmpty(children) ? children.get(0) : null; area = CollectionUtils.isNotEmpty(children) ? children.get(0) : null;
} }
...@@ -718,7 +718,7 @@ public class ReportController extends BaseReportController { ...@@ -718,7 +718,7 @@ public class ReportController extends BaseReportController {
SysArea senderArea = delivery.getSenderDistrictInfo(); SysArea senderArea = delivery.getSenderDistrictInfo();
StringBuffer senderAreaTextSb = new StringBuffer(); StringBuffer senderAreaTextSb = new StringBuffer();
while (senderArea != null) { while (senderArea != null) {
senderAreaTextSb.append(senderArea.getAreaName()).append('/'); senderAreaTextSb.append(senderArea.getAreaName()).append(' ');
List<SysArea> childrenArea = senderArea.getChildren(); List<SysArea> childrenArea = senderArea.getChildren();
senderArea = CollectionUtils.isNotEmpty(childrenArea) ? childrenArea.get(0) : null; senderArea = CollectionUtils.isNotEmpty(childrenArea) ? childrenArea.get(0) : null;
} }
...@@ -729,7 +729,7 @@ public class ReportController extends BaseReportController { ...@@ -729,7 +729,7 @@ public class ReportController extends BaseReportController {
SysArea receiverArea = delivery.getReceiverDistrictInfo(); SysArea receiverArea = delivery.getReceiverDistrictInfo();
StringBuffer receiverAreaTextSb = new StringBuffer(); StringBuffer receiverAreaTextSb = new StringBuffer();
while (receiverArea != null) { while (receiverArea != null) {
receiverAreaTextSb.append(receiverArea.getAreaName()).append('/'); receiverAreaTextSb.append(receiverArea.getAreaName()).append(' ');
List<SysArea> childrenArea = receiverArea.getChildren(); List<SysArea> childrenArea = receiverArea.getChildren();
receiverArea = CollectionUtils.isNotEmpty(childrenArea) ? childrenArea.get(0) : null; receiverArea = CollectionUtils.isNotEmpty(childrenArea) ? childrenArea.get(0) : null;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!