|
@@ -24,10 +24,8 @@ import com.qs.mp.utils.ExcelUtil;
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.Comparator;
|
|
|
|
-import java.util.Date;
|
|
|
|
-import java.util.List;
|
|
|
|
|
|
+
|
|
|
|
+import java.util.*;
|
|
|
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponses;
|
|
import io.swagger.annotations.ApiResponses;
|
|
@@ -139,7 +137,16 @@ public class UserDeliverOrderMgrController extends BaseApiController {
|
|
|
|
|
|
Integer deliveryType = shipParam.getDeliveryType();
|
|
Integer deliveryType = shipParam.getDeliveryType();
|
|
if (null == deliveryType) {
|
|
if (null == deliveryType) {
|
|
- deliveryType = 0;
|
|
|
|
|
|
+ deliveryType = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (DeliverTypeEnum.DELIVER.getValue().equals(deliveryType)) {
|
|
|
|
+ if (Objects.isNull(shipParam.getDeliveryId())) {
|
|
|
|
+ return AjaxResult.error("快递公司不能为空");
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isBlank(shipParam.getDeliveryFlowId())) {
|
|
|
|
+ return AjaxResult.error("快递单号不能为空");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
List<UserDeliverOrderItem> itemList = new ArrayList<UserDeliverOrderItem>();
|
|
List<UserDeliverOrderItem> itemList = new ArrayList<UserDeliverOrderItem>();
|
|
@@ -191,9 +198,19 @@ public class UserDeliverOrderMgrController extends BaseApiController {
|
|
|
|
|
|
Integer deliveryType = shipParam.getDeliveryType();
|
|
Integer deliveryType = shipParam.getDeliveryType();
|
|
if (null == deliveryType) {
|
|
if (null == deliveryType) {
|
|
- deliveryType = 0;
|
|
|
|
|
|
+ shipParam.setDeliveryType(1);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (DeliverTypeEnum.DELIVER.getValue().equals(shipParam.getDeliveryType())) {
|
|
|
|
+ if (Objects.isNull(shipParam.getDeliveryId())) {
|
|
|
|
+ return AjaxResult.error("快递公司不能为空");
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isBlank(shipParam.getDeliveryFlowId())) {
|
|
|
|
+ return AjaxResult.error("快递单号不能为空");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
// 修改物流信息
|
|
// 修改物流信息
|
|
boolean res = userDeliverOrderService.updateShipInfo(shipParam);
|
|
boolean res = userDeliverOrderService.updateShipInfo(shipParam);
|
|
|
|
|