|
@@ -198,12 +198,14 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
|
|
String con,String userId) throws ParseException {
|
|
String con,String userId) throws ParseException {
|
|
if (con != null && !con.equals("undefined")) {
|
|
if (con != null && !con.equals("undefined")) {
|
|
mapValue.put("con","%" + con + "%");
|
|
mapValue.put("con","%" + con + "%");
|
|
|
|
+ }else {
|
|
|
|
+ mapValue.put("con","%" +"%");
|
|
}
|
|
}
|
|
- if (userId != null && !userId.equals("undefined")) {
|
|
|
|
- //查询承运商ID
|
|
|
|
- String carrierName1 = amsContractTruckPriceService.getCarrierNameForDetail(userId);
|
|
|
|
- mapValue.put("carrierName1","%" + carrierName1 + "%");
|
|
|
|
- }
|
|
|
|
|
|
+// if (userId != null && !userId.equals("undefined")) {
|
|
|
|
+// //查询承运商ID
|
|
|
|
+// String carrierName1 = amsContractTruckPriceService.getCarrierNameForDetail(userId);
|
|
|
|
+// mapValue.put("carrierName1","%" + carrierName1 + "%");
|
|
|
|
+// }
|
|
//1.先查询出收货地址的所有收货ID
|
|
//1.先查询出收货地址的所有收货ID
|
|
List<Map<String, Object>> receiveAddress = amsContractTruckPriceService.getReceiveAddressId(mapValue);
|
|
List<Map<String, Object>> receiveAddress = amsContractTruckPriceService.getReceiveAddressId(mapValue);
|
|
//2.查询出该收货所有的单价信息
|
|
//2.查询出该收货所有的单价信息
|
|
@@ -224,6 +226,9 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
|
|
String address2 = (String) stringObjectMap.get("address");
|
|
String address2 = (String) stringObjectMap.get("address");
|
|
//单价的执行日期
|
|
//单价的执行日期
|
|
Date priceDate = (Date) stringObjectMap.get("priceDate");
|
|
Date priceDate = (Date) stringObjectMap.get("priceDate");
|
|
|
|
+ if (address2 ==null||priceDate==null){
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
String format = simpleDateFormat.format(priceDate);
|
|
String format = simpleDateFormat.format(priceDate);
|
|
Date parse = simpleDateFormat.parse(format);
|
|
Date parse = simpleDateFormat.parse(format);
|
|
//Date parse1 = simpleDateFormat.parse("2022-12-10")
|
|
//Date parse1 = simpleDateFormat.parse("2022-12-10")
|