|
@@ -51,38 +51,34 @@ public class HyReleaseGoodsInfoServiceImpl extends ServiceImpl<HyReleaseGoodsInf
|
|
pageView.put("currentPage", hyReleaseGoodsInfo.getCurrentPage());
|
|
pageView.put("currentPage", hyReleaseGoodsInfo.getCurrentPage());
|
|
pageView.put("loadingPlaceCity", hyReleaseGoodsInfo.getLoadingPlaceCity());
|
|
pageView.put("loadingPlaceCity", hyReleaseGoodsInfo.getLoadingPlaceCity());
|
|
pageView.put("unLoadingPlaceCity", hyReleaseGoodsInfo.getUnLoadingPlaceCity());
|
|
pageView.put("unLoadingPlaceCity", hyReleaseGoodsInfo.getUnLoadingPlaceCity());
|
|
- if (hyReleaseGoodsInfo.getLoadingPlace().contains(",")){
|
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
|
- String[] temp = hyReleaseGoodsInfo.getLoadingPlace().split(",");
|
|
|
|
- for (int i = 0; i < temp.length; i++) {
|
|
|
|
- if (!"".equals(temp[i]) && temp[i] != null)
|
|
|
|
- sb.append("'" + temp[i] + "',");
|
|
|
|
|
|
+ if(hyReleaseGoodsInfo.getLoadingPlace() != null && !hyReleaseGoodsInfo.getLoadingPlace().isEmpty()){
|
|
|
|
+ String result = "";
|
|
|
|
+ String[] array = hyReleaseGoodsInfo.getLoadingPlace().split(",");
|
|
|
|
+ for (String tmp:array) {
|
|
|
|
+ result += "'"+tmp+"',";
|
|
}
|
|
}
|
|
- String result = sb.toString();
|
|
|
|
- String tp = result.substring(result.length() - 1, result.length());
|
|
|
|
- if (",".equals(tp)){
|
|
|
|
- hyReleaseGoodsInfo.setLoadingPlace(result.substring(0, result.length() - 1));
|
|
|
|
- } else{
|
|
|
|
- hyReleaseGoodsInfo.setLoadingPlace(result);
|
|
|
|
|
|
+ if(result.length() > 0){
|
|
|
|
+ result = result.substring(0,result.length()-1);
|
|
}
|
|
}
|
|
|
|
+ else{
|
|
|
|
+ result = "'"+hyReleaseGoodsInfo.getLoadingPlace()+"'";
|
|
|
|
+ }
|
|
|
|
+ pageView.put("loadingPlace", result);
|
|
}
|
|
}
|
|
- if (hyReleaseGoodsInfo.getUnLoadingPlace().contains(",")){
|
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
|
- String[] temp = hyReleaseGoodsInfo.getUnLoadingPlace().split(",");
|
|
|
|
- for (int i = 0; i < temp.length; i++) {
|
|
|
|
- if (!"".equals(temp[i]) && temp[i] != null)
|
|
|
|
- sb.append("'" + temp[i] + "',");
|
|
|
|
|
|
+ if(hyReleaseGoodsInfo.getUnLoadingPlace() != null && !hyReleaseGoodsInfo.getUnLoadingPlace().isEmpty()){
|
|
|
|
+ String result = "";
|
|
|
|
+ String[] array = hyReleaseGoodsInfo.getUnLoadingPlace().split(",");
|
|
|
|
+ for (String tmp:array) {
|
|
|
|
+ result += "'"+tmp+"',";
|
|
|
|
+ }
|
|
|
|
+ if(result.length() > 0){
|
|
|
|
+ result = result.substring(0,result.length()-1);
|
|
}
|
|
}
|
|
- String result = sb.toString();
|
|
|
|
- String tp = result.substring(result.length() - 1, result.length());
|
|
|
|
- if (",".equals(tp)){
|
|
|
|
- hyReleaseGoodsInfo.setUnLoadingPlace(result.substring(0, result.length() - 1));
|
|
|
|
- } else{
|
|
|
|
- hyReleaseGoodsInfo.setUnLoadingPlace(result);
|
|
|
|
|
|
+ else{
|
|
|
|
+ result = "'"+hyReleaseGoodsInfo.getUnLoadingPlace()+"'";
|
|
}
|
|
}
|
|
|
|
+ pageView.put("unLoadingPlace", result);
|
|
}
|
|
}
|
|
- pageView.put("loadingPlace", hyReleaseGoodsInfo.getLoadingPlace());
|
|
|
|
- pageView.put("unLoadingPlace", hyReleaseGoodsInfo.getUnLoadingPlace());
|
|
|
|
//货源列表
|
|
//货源列表
|
|
List<HyReleaseGoodsInfo> hyReleaseGoodsInfoList = new ArrayList<>();
|
|
List<HyReleaseGoodsInfo> hyReleaseGoodsInfoList = new ArrayList<>();
|
|
//按时间排序货源列表
|
|
//按时间排序货源列表
|
|
@@ -145,6 +141,7 @@ public class HyReleaseGoodsInfoServiceImpl extends ServiceImpl<HyReleaseGoodsInf
|
|
}
|
|
}
|
|
//周边信息列表
|
|
//周边信息列表
|
|
List<HyReleaseGoodsInfo> dataList1 = baseMapper.getAllListsByCondition(pageView);
|
|
List<HyReleaseGoodsInfo> dataList1 = baseMapper.getAllListsByCondition(pageView);
|
|
|
|
+ dataList1.removeAll(dataList);
|
|
if (!CollectionUtils.isEmpty(dataList1)) {
|
|
if (!CollectionUtils.isEmpty(dataList1)) {
|
|
if (!StringUtils.isEmpty(hyReleaseGoodsInfo.getLoadingPlaceCity())) {
|
|
if (!StringUtils.isEmpty(hyReleaseGoodsInfo.getLoadingPlaceCity())) {
|
|
//查询发货地经纬度
|
|
//查询发货地经纬度
|