提交 7eea58ea 作者: zhenjie

订单类型修改

上级 fb125a7d
...@@ -220,7 +220,7 @@ public class CodeUtil { ...@@ -220,7 +220,7 @@ public class CodeUtil {
return "RN" + CodeUtil.getRandomNum(8); return "RN" + CodeUtil.getRandomNum(8);
} }
public static String uavOrderCode(Long id) { public static String uavOrderCode() {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append("UD"); sb.append("UD");
sb.append(TDateUtil.getCurrentDateByType("yyyyMMddHHmmss")); sb.append(TDateUtil.getCurrentDateByType("yyyyMMddHHmmss"));
......
...@@ -67,7 +67,7 @@ public class KdnExpressUtil { ...@@ -67,7 +67,7 @@ public class KdnExpressUtil {
return KdnExpressUtil.orderOnlineByJson("", exCode, logisticCode); return KdnExpressUtil.orderOnlineByJson("", exCode, logisticCode);
} }
public static String monitorPush(String port, Long orderId, String shipperCode, String logisticCode, String phone) throws Exception { public static String monitorPush(String port, Integer orderId, String shipperCode, String logisticCode, String phone) throws Exception {
String callbackTag = port + "-" + orderId; String callbackTag = port + "-" + orderId;
String customerName = phone.substring(phone.length() - 4, phone.length()); String customerName = phone.substring(phone.length() - 4, phone.length());
return kdApiSearchMonitorPush(callbackTag, shipperCode, logisticCode, customerName); return kdApiSearchMonitorPush(callbackTag, shipperCode, logisticCode, customerName);
......
...@@ -69,7 +69,7 @@ public class AMOrderController extends BaseController { ...@@ -69,7 +69,7 @@ public class AMOrderController extends BaseController {
@ApiOperation(value = "取消订单", hidden = true) @ApiOperation(value = "取消订单", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("closeOrder") @GetMapping("closeOrder")
public ResultBody closeOrder(@RequestParam Long orderId, @RequestParam(required = false) String shutReason, public ResultBody closeOrder(@RequestParam Integer orderId, @RequestParam(required = false) String shutReason,
HttpServletRequest request) { HttpServletRequest request) {
return mallOrderService.closeOrder(orderId, shutReason, this.getCurrentAccount(request)); return mallOrderService.closeOrder(orderId, shutReason, this.getCurrentAccount(request));
} }
...@@ -84,7 +84,7 @@ public class AMOrderController extends BaseController { ...@@ -84,7 +84,7 @@ public class AMOrderController extends BaseController {
@ApiOperation(value = "发送服务消息通知", hidden = true) @ApiOperation(value = "发送服务消息通知", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("sendOrderStatusChangeMsg") @GetMapping("sendOrderStatusChangeMsg")
public void sendOrderStatusChangeMsg(@RequestParam Long orderId) { public void sendOrderStatusChangeMsg(@RequestParam Integer orderId) {
mallOrderService.sendOrderStatusChangeMsg(orderId); mallOrderService.sendOrderStatusChangeMsg(orderId);
} }
} }
...@@ -54,21 +54,21 @@ public class AppMallOrderController extends BaseController { ...@@ -54,21 +54,21 @@ public class AppMallOrderController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@ApiIgnore @ApiIgnore
@GetMapping("getShareOrderStatus") @GetMapping("getShareOrderStatus")
public ResultBody getShareOrderStatus(@RequestParam @ApiParam(value = "订单id") Long orderId) { public ResultBody getShareOrderStatus(@RequestParam @ApiParam(value = "订单id") Integer orderId) {
return appMallOrderService.getShareOrderStatus(orderId); return appMallOrderService.getShareOrderStatus(orderId);
} }
@ApiOperation(value = "订单信息--接受共享", hidden = true) @ApiOperation(value = "订单信息--接受共享", hidden = true)
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@GetMapping("acceptShare") @GetMapping("acceptShare")
public ResultBody acceptShare(@RequestParam @ApiParam(value = "订单id") Long orderId, @RequestParam @ApiParam(value = "分享人id") Integer shareId) { public ResultBody acceptShare(@RequestParam @ApiParam(value = "订单id") Integer orderId, @RequestParam @ApiParam(value = "分享人id") Integer shareId) {
return appMallOrderService.acceptShare(orderId,shareId); return appMallOrderService.acceptShare(orderId,shareId);
} }
@ApiOperation(value = "退回合同", hidden = true) @ApiOperation(value = "退回合同", hidden = true)
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@GetMapping("returnContractById") @GetMapping("returnContractById")
public ResultBody returnContractById(@RequestParam @ApiParam(value = "订单id") Long orderId) { public ResultBody returnContractById(@RequestParam @ApiParam(value = "订单id") Integer orderId) {
return appMallOrderService.returnContractById(orderId); return appMallOrderService.returnContractById(orderId);
} }
...@@ -89,7 +89,7 @@ public class AppMallOrderController extends BaseController { ...@@ -89,7 +89,7 @@ public class AppMallOrderController extends BaseController {
@ApiOperation(value = "订单详情V1.0.0", hidden = true) @ApiOperation(value = "订单详情V1.0.0", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = MallOrderDTO.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = MallOrderDTO.class) })
@GetMapping("getMallOrderDetailById") @GetMapping("getMallOrderDetailById")
public ResultBody<MallOrderDTO> getMallOrderDetailById(@RequestParam Long orderId, HttpServletRequest request) { public ResultBody<MallOrderDTO> getMallOrderDetailById(@RequestParam Integer orderId, HttpServletRequest request) {
return ResultBody.success(appMallOrderService.getMallOrderDetailById(orderId,this.getCurrentAccount(request))); return ResultBody.success(appMallOrderService.getMallOrderDetailById(orderId,this.getCurrentAccount(request)));
} }
} }
...@@ -62,20 +62,20 @@ public class MallOrderController extends BaseController { ...@@ -62,20 +62,20 @@ public class MallOrderController extends BaseController {
@ApiOperation(value = "订单-查看支付凭证", hidden = true) @ApiOperation(value = "订单-查看支付凭证", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = OrderPayDTO.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = OrderPayDTO.class) })
@GetMapping("getOrderPay") @GetMapping("getOrderPay")
public ResultBody getOrderPay(@RequestParam Long orderId, @ApiParam("凭证类型(留空则全部):0全款 1预付款 2尾款 3验收单") @RequestParam(required = false) Integer payType, HttpServletRequest request) { public ResultBody getOrderPay(@RequestParam Integer orderId, @ApiParam("凭证类型(留空则全部):0全款 1预付款 2尾款 3验收单") @RequestParam(required = false) Integer payType, HttpServletRequest request) {
return ResultBody.success(mallOrderService.listOrderPayInfo(orderId, payType, this.getCurrentAccount(request))); return ResultBody.success(mallOrderService.listOrderPayInfo(orderId, payType, this.getCurrentAccount(request)));
} }
@ApiOperation(value = "修改订单的付款期限", hidden = true) @ApiOperation(value = "修改订单的付款期限", hidden = true)
@GetMapping("updateMallOrder") @GetMapping("updateMallOrder")
@ApiIgnore @ApiIgnore
public ResultBody updateMallOrder(@RequestParam Long orderId, @RequestParam Date singerTime){ public ResultBody updateMallOrder(@RequestParam Integer orderId, @RequestParam Date singerTime){
return mallOrderService.updateMallOrder(orderId,singerTime); return mallOrderService.updateMallOrder(orderId,singerTime);
} }
@ApiOperation(value = "修改订单的合同状态", hidden = true) @ApiOperation(value = "修改订单的合同状态", hidden = true)
@GetMapping("updateStatusMallOrder") @GetMapping("updateStatusMallOrder")
public ResultBody updateStatusMallOrder(@RequestParam Long orderId, @RequestParam Integer signStatus){ public ResultBody updateStatusMallOrder(@RequestParam Integer orderId, @RequestParam Integer signStatus){
return mallOrderService.updateStatusMallOrder(orderId,signStatus); return mallOrderService.updateStatusMallOrder(orderId,signStatus);
} }
...@@ -87,7 +87,7 @@ public class MallOrderController extends BaseController { ...@@ -87,7 +87,7 @@ public class MallOrderController extends BaseController {
@ApiOperation(value = "测试物流订阅", hidden = true) @ApiOperation(value = "测试物流订阅", hidden = true)
@GetMapping("testCallbackExpressInfo") @GetMapping("testCallbackExpressInfo")
public ResultBody testCallbackExpressInfo(@RequestParam String port, @RequestParam Long orderId, @RequestParam String shipperCode, public ResultBody testCallbackExpressInfo(@RequestParam String port, @RequestParam Integer orderId, @RequestParam String shipperCode,
@RequestParam String logisticCode, @RequestParam String phone) throws Exception { @RequestParam String logisticCode, @RequestParam String phone) throws Exception {
return kdnExpService.testCallbackExpressInfo(port, orderId, shipperCode, logisticCode, phone); return kdnExpService.testCallbackExpressInfo(port, orderId, shipperCode, logisticCode, phone);
} }
......
...@@ -74,7 +74,7 @@ public class PMOrderController extends BaseController { ...@@ -74,7 +74,7 @@ public class PMOrderController extends BaseController {
@ApiOperation(value = "确认库存", hidden = true) @ApiOperation(value = "确认库存", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("confirmInventory") @GetMapping("confirmInventory")
public ResultBody confirmInventory(@RequestParam Long orderId, HttpServletRequest request) { public ResultBody confirmInventory(@RequestParam Integer orderId, HttpServletRequest request) {
return mallOrderService.confirmInventory(orderId, this.getCurrentAccount(request)); return mallOrderService.confirmInventory(orderId, this.getCurrentAccount(request));
} }
......
...@@ -58,7 +58,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -58,7 +58,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiOperation(value = "v1.0.0订单管理-详情(改版后)") @ApiOperation(value = "v1.0.0订单管理-详情(改版后)")
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = MallOrderDTO.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = MallOrderDTO.class) })
@GetMapping("getMallOrderDetailById") @GetMapping("getMallOrderDetailById")
public ResultBody<MallOrderDTO> getMallOrderDetailById(@RequestParam Long orderId, HttpServletRequest request) { public ResultBody<MallOrderDTO> getMallOrderDetailById(@RequestParam Integer orderId, HttpServletRequest request) {
return ResultBody.success(mallOrderService.getMallOrderDetailById(orderId,this.getCurrentAccount(request), request.getHeader("token"))); return ResultBody.success(mallOrderService.getMallOrderDetailById(orderId,this.getCurrentAccount(request), request.getHeader("token")));
} }
...@@ -74,7 +74,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -74,7 +74,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiOperation(value = "订单管理-修改订单备注(管理员专属)", hidden = true) @ApiOperation(value = "订单管理-修改订单备注(管理员专属)", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("updateMallOrderRemark") @GetMapping("updateMallOrderRemark")
public ResultBody updateMallOrderRemark(@RequestParam Long orderId, @RequestParam(required = false) String remark, HttpServletRequest request) { public ResultBody updateMallOrderRemark(@RequestParam Integer orderId, @RequestParam(required = false) String remark, HttpServletRequest request) {
return mallOrderService.updateMallOrderRemark(orderId, remark); return mallOrderService.updateMallOrderRemark(orderId, remark);
} }
...@@ -95,7 +95,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -95,7 +95,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiOperation(value = "批量生产导出数据", hidden = true) @ApiOperation(value = "批量生产导出数据", hidden = true)
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@PostMapping("/exportMultiSheet") @PostMapping("/exportMultiSheet")
public void exportMultiSheet(HttpServletResponse response, @ApiParam("订单id") @RequestBody List<Long> orderIds) throws IOException { public void exportMultiSheet(HttpServletResponse response, @ApiParam("订单id") @RequestBody List<Integer> orderIds) throws IOException {
mallOrderService.exportMultiSheet(response,orderIds); mallOrderService.exportMultiSheet(response,orderIds);
} }
...@@ -109,7 +109,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -109,7 +109,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiOperation(value = "订单管理-运营数据导出(改版后)", hidden = true) @ApiOperation(value = "订单管理-运营数据导出(改版后)", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@PostMapping("operationalDataExport") @PostMapping("operationalDataExport")
public void operationalDataExport(@ApiParam("订单id") @RequestBody List<Long> orderIds, HttpServletResponse response, HttpServletRequest request) throws IOException { public void operationalDataExport(@ApiParam("订单id") @RequestBody List<Integer> orderIds, HttpServletResponse response, HttpServletRequest request) throws IOException {
mallOrderService.operationalDataExport(orderIds,response,this.getCurrentAccount(request)); mallOrderService.operationalDataExport(orderIds,response,this.getCurrentAccount(request));
} }
...@@ -140,7 +140,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -140,7 +140,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("feignOrderUseCoupon") @GetMapping("feignOrderUseCoupon")
@ApiIgnore @ApiIgnore
public ResultBody feignOrderUseCoupon(@RequestParam List<Long> orderId){ public ResultBody feignOrderUseCoupon(@RequestParam List<Integer> orderId){
return mallOrderService.feignOrderUseCoupon(orderId); return mallOrderService.feignOrderUseCoupon(orderId);
} }
...@@ -154,7 +154,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -154,7 +154,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiOperation(value = "分配运营", hidden = true) @ApiOperation(value = "分配运营", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("allocateOperation") @GetMapping("allocateOperation")
public ResultBody allocateOperation(@ApiParam(value = "订单id")@RequestParam(value = "orderId") Long orderId, public ResultBody allocateOperation(@ApiParam(value = "订单id")@RequestParam(value = "orderId") Integer orderId,
@ApiParam(value = "运营id") @RequestParam(value = "operationId") Integer operationId) { @ApiParam(value = "运营id") @RequestParam(value = "operationId") Integer operationId) {
return mallOrderService.allocateOperation(orderId,operationId); return mallOrderService.allocateOperation(orderId,operationId);
} }
...@@ -162,7 +162,7 @@ public class PMOrderControllerVerOne extends BaseController { ...@@ -162,7 +162,7 @@ public class PMOrderControllerVerOne extends BaseController {
@ApiOperation(value = "订单关闭-根据id", hidden = true) @ApiOperation(value = "订单关闭-根据id", hidden = true)
@ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) }) @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = ResultBody.class) })
@GetMapping("deleteById") @GetMapping("deleteById")
public ResultBody closeMallOrder(@RequestParam Long id, HttpServletRequest request) { public ResultBody closeMallOrder(@RequestParam Integer id, HttpServletRequest request) {
return mallOrderService.closeMallOrder(id,this.getCurrentAccount(request)); return mallOrderService.closeMallOrder(id,this.getCurrentAccount(request));
} }
......
...@@ -22,11 +22,11 @@ public interface AppMallOrderDao { ...@@ -22,11 +22,11 @@ public interface AppMallOrderDao {
void batchInsertOrderGoodsIndstProdListDO(List<OrderGoodsIndstProdListDO> orderGoodsIndstProdListDOS); void batchInsertOrderGoodsIndstProdListDO(List<OrderGoodsIndstProdListDO> orderGoodsIndstProdListDOS);
List<MallOrderSimpleDO> listMallOrderSkuSpec(List<Long> orderIds); List<MallOrderSimpleDO> listMallOrderSkuSpec(List<Integer> orderIds);
void updateOrderShareInfo(Long orderId, Integer shareId); void updateOrderShareInfo(Integer orderId, Integer shareId);
void batchInsertOrderCoupon(List<OrderCouponDO> orderCouponDOS); void batchInsertOrderCoupon(List<OrderCouponDO> orderCouponDOS);
List<OrderCouponDO> listOrderCoupon(Long orderId); List<OrderCouponDO> listOrderCoupon(Integer orderId);
} }
...@@ -34,13 +34,13 @@ public interface MallOrderDao { ...@@ -34,13 +34,13 @@ public interface MallOrderDao {
// //
// List<OrderGoodsDO> listOrderGoodsInfo(Long orderId); // List<OrderGoodsDO> listOrderGoodsInfo(Long orderId);
MallOrderDO getMallOrderInfo(Long orderId); MallOrderDO getMallOrderInfo(Integer orderId);
/** /**
* 获取订单付款期限,和状态(未付款) * 获取订单付款期限,和状态(未付款)
* @param orderId * @param orderId
*/ */
List<MallOrderDO> getMallOrderCreditPeriod(List<Long> orderId); List<MallOrderDO> getMallOrderCreditPeriod(List<Integer> orderId);
Integer updateMallOrder(MallOrderDO order); Integer updateMallOrder(MallOrderDO order);
...@@ -48,13 +48,13 @@ public interface MallOrderDao { ...@@ -48,13 +48,13 @@ public interface MallOrderDao {
int updateOrderPay(OrderPayDO pay); int updateOrderPay(OrderPayDO pay);
OrderPayDO getOrderPayInfo(Long orderId, Integer payType); OrderPayDO getOrderPayInfo(Integer orderId, Integer payType);
List<MallOrderStatusDO> listOrderStatus(); List<MallOrderStatusDO> listOrderStatus();
int insertOrderExpress(MallOrderExpressDO express); int insertOrderExpress(MallOrderExpressDO express);
MallOrderExpressDO getOrderExpress(Long orderId); MallOrderExpressDO getOrderExpress(Integer orderId);
int countPagePmOrder(MallOrderQO param); int countPagePmOrder(MallOrderQO param);
...@@ -62,9 +62,9 @@ public interface MallOrderDao { ...@@ -62,9 +62,9 @@ public interface MallOrderDao {
int batchInsertOrderService(List<OrderServiceDO> list); int batchInsertOrderService(List<OrderServiceDO> list);
List<OrderServiceDO> listOrderService(Long orderId); List<OrderServiceDO> listOrderService(Integer orderId);
List<OrderPayDO> listOrderPay(Long orderId, Integer payType); List<OrderPayDO> listOrderPay(Integer orderId, Integer payType);
int countPMOrderConfirm(Integer statusCode); int countPMOrderConfirm(Integer statusCode);
...@@ -82,7 +82,7 @@ public interface MallOrderDao { ...@@ -82,7 +82,7 @@ public interface MallOrderDao {
Integer updateMallOrderAddreId(@Param("mallOrderId") Long mallOrderId, @Param("userAddressId") Integer userAddressId); Integer updateMallOrderAddreId(@Param("mallOrderId") Long mallOrderId, @Param("userAddressId") Integer userAddressId);
void updateMallOrderRemark(Long mallOrderId, String remark); void updateMallOrderRemark(Integer mallOrderId, String remark);
/** /**
* 商城订单列表 * 商城订单列表
...@@ -90,13 +90,13 @@ public interface MallOrderDao { ...@@ -90,13 +90,13 @@ public interface MallOrderDao {
* @param orderIds 订单id * @param orderIds 订单id
* @return {@link List}<{@link MallOrderDO}> * @return {@link List}<{@link MallOrderDO}>
*/ */
List<MallOrderDO> listMallOrder(List<Long> orderIds); List<MallOrderDO> listMallOrder(List<Integer> orderIds);
List<MallOrderDO> getMallOrderByStatus(@Param("code") Integer code); List<MallOrderDO> getMallOrderByStatus(@Param("code") Integer code);
void saveOrderPay(OrderPayDO upPay); void saveOrderPay(OrderPayDO upPay);
Integer countOrderForCouponUse(@Param("orderIds") List<Long> orderIds, Integer orderStatus); Integer countOrderForCouponUse(@Param("orderIds") List<Integer> orderIds, Integer orderStatus);
MallOrderDO getOrderInfoByOrderNo(String orderNo); MallOrderDO getOrderInfoByOrderNo(String orderNo);
...@@ -106,7 +106,7 @@ public interface MallOrderDao { ...@@ -106,7 +106,7 @@ public interface MallOrderDao {
int countListFinishMallOrder(OrderBonusQO orderBonusQO); int countListFinishMallOrder(OrderBonusQO orderBonusQO);
int countPageOrderInfo(List<Long> orderIds); int countPageOrderInfo(List<Integer> orderIds);
List<MallOrderDO> listOperationalExportOrder(List<Long> orderIds); List<MallOrderDO> listOperationalExportOrder(List<Integer> orderIds);
} }
...@@ -21,5 +21,5 @@ public interface OrderExpressDao { ...@@ -21,5 +21,5 @@ public interface OrderExpressDao {
void updateOrderExpress(MallOrderExpressDO orderExpressDO); void updateOrderExpress(MallOrderExpressDO orderExpressDO);
List<Long> listReceivedOrderIds(); List<Integer> listReceivedOrderIds();
} }
...@@ -20,9 +20,9 @@ import java.util.List; ...@@ -20,9 +20,9 @@ import java.util.List;
@Mapper @Mapper
public interface OrderGoodsIndstDao { public interface OrderGoodsIndstDao {
List<OrderGoodsIndstProdListBO> getProductInfoByMallId(@Param("orderId") Long orderId); List<OrderGoodsIndstProdListBO> getProductInfoByMallId(@Param("orderId") Integer orderId);
List<MallOrderSimpleDO> listOrderGoodsIndstBaseInfo(List<Long> mallOrderIds); List<MallOrderSimpleDO> listOrderGoodsIndstBaseInfo(List<Integer> mallOrderIds);
List<OrderGoodsIndstProdListDO> listIMallOrderProdList(Long orderId); List<OrderGoodsIndstProdListDO> listIMallOrderProdList(Integer orderId);
} }
...@@ -20,9 +20,9 @@ import java.util.List; ...@@ -20,9 +20,9 @@ import java.util.List;
@Mapper @Mapper
public interface OrderGoodsProdDao { public interface OrderGoodsProdDao {
List<OrderGoodsProdDetailBO> getProductInfoByMallId(@Param("orderId") Long orderId); List<OrderGoodsProdDetailBO> getProductInfoByMallId(@Param("orderId") Integer orderId);
List<MallOrderSimpleDO> listOrderGoodsProdBaseInfo(List<Long> mallOrderIds); List<MallOrderSimpleDO> listOrderGoodsProdBaseInfo(List<Integer> mallOrderIds);
List<OrderGoodsProdDetailDO> listPMallOrderProdList(Long orderId); List<OrderGoodsProdDetailDO> listPMallOrderProdList(Integer orderId);
} }
...@@ -26,7 +26,7 @@ public class MallOrderDO implements Serializable { ...@@ -26,7 +26,7 @@ public class MallOrderDO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty("id") @ApiModelProperty("id")
private Long id; private Integer id;
@ApiModelProperty("pid") @ApiModelProperty("pid")
private Integer pid; private Integer pid;
......
...@@ -21,7 +21,7 @@ public class MallOrderExpressDO implements Serializable { ...@@ -21,7 +21,7 @@ public class MallOrderExpressDO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Integer id; private Integer id;
private Long orderId; private Integer orderId;
private String sendExpNo; private String sendExpNo;
private String sendExpCode; private String sendExpCode;
private String takeName; private String takeName;
......
...@@ -20,7 +20,7 @@ import java.util.List; ...@@ -20,7 +20,7 @@ import java.util.List;
@ApiModel("商城订单simple信息") @ApiModel("商城订单simple信息")
public class MallOrderSimpleDO implements Serializable { public class MallOrderSimpleDO implements Serializable {
private static final long serialVersionUID = 7783643628653457384L; private static final long serialVersionUID = 7783643628653457384L;
private Long id; private Integer id;
private Integer userAccountId; private Integer userAccountId;
private BigDecimal orderAmount; private BigDecimal orderAmount;
private List<OrderGoodsCommonDO> orderGoodsCommonDOS; private List<OrderGoodsCommonDO> orderGoodsCommonDOS;
......
...@@ -23,7 +23,7 @@ import java.util.List; ...@@ -23,7 +23,7 @@ import java.util.List;
public class OrderGoodsIndstDO implements Serializable { public class OrderGoodsIndstDO implements Serializable {
private static final long serialVersionUID = -3279631619974911234L; private static final long serialVersionUID = -3279631619974911234L;
private Integer id; private Integer id;
private Long orderId; private Integer orderId;
private Integer mallIndstShopCarId; private Integer mallIndstShopCarId;
private Integer goodsInfoId; private Integer goodsInfoId;
private Integer directoryId; private Integer directoryId;
......
...@@ -23,7 +23,7 @@ import java.util.stream.Collectors; ...@@ -23,7 +23,7 @@ import java.util.stream.Collectors;
public class OrderGoodsProdDO implements Serializable { public class OrderGoodsProdDO implements Serializable {
private static final long serialVersionUID = 698431955075119489L; private static final long serialVersionUID = 698431955075119489L;
private Integer id; private Integer id;
private Long orderId; private Integer orderId;
private Integer mallProdShopCarId; private Integer mallProdShopCarId;
private Integer goodsInfoId; private Integer goodsInfoId;
private Integer directoryId; private Integer directoryId;
......
...@@ -21,7 +21,7 @@ import java.util.Date; ...@@ -21,7 +21,7 @@ import java.util.Date;
public class OrderPayDO implements Serializable { public class OrderPayDO implements Serializable {
private static final long serialVersionUID = -2577204623479240233L; private static final long serialVersionUID = -2577204623479240233L;
private Integer id; private Integer id;
private Long orderId; private Integer orderId;
private Integer userAccountId; private Integer userAccountId;
private Integer payType; private Integer payType;
private Integer payStatus; private Integer payStatus;
......
...@@ -20,13 +20,13 @@ import java.util.Date; ...@@ -20,13 +20,13 @@ import java.util.Date;
public class OrderServiceDO implements Serializable { public class OrderServiceDO implements Serializable {
private static final long serialVersionUID = -2938941346648852627L; private static final long serialVersionUID = -2938941346648852627L;
private Integer id; private Integer id;
private Long orderId; private Integer orderId;
private Integer goodsInfoId; private Integer goodsInfoId;
private String serviceName; private String serviceName;
private String remark; private String remark;
private Date createTime; private Date createTime;
public OrderServiceDO(GoodsServiceDTO d, Long orderId) { public OrderServiceDO(GoodsServiceDTO d, Integer orderId) {
this.orderId = orderId; this.orderId = orderId;
this.goodsInfoId = d.getGoodsInfoId(); this.goodsInfoId = d.getGoodsInfoId();
this.serviceName = d.getServiceName(); this.serviceName = d.getServiceName();
......
...@@ -38,7 +38,7 @@ public class AuthSignatureFilter implements AuthFilter { ...@@ -38,7 +38,7 @@ public class AuthSignatureFilter implements AuthFilter {
/** /**
* 无需登录白名单 * 无需登录白名单
*/ */
private static final String[] IGNORE_URLS = {"/oms/swagger-resources", "/oms/v2/api-docs", "/oms/doc.html"}; private static final String[] IGNORE_URLS = {"/oms/swagger-resources", "/oms/v2/api-docs", "/oms/doc.html", "/oms/mallorder/listStatus"};
/*无需加密狗无需登录白名单*/ /*无需加密狗无需登录白名单*/
private static final String[] USE_KEY = {"/oms/account/loginByUsbKey"}; private static final String[] USE_KEY = {"/oms/account/loginByUsbKey"};
......
...@@ -29,7 +29,7 @@ public class MallOrderDTO implements Serializable { ...@@ -29,7 +29,7 @@ public class MallOrderDTO implements Serializable {
private static final long serialVersionUID = -5495994390870097181L; private static final long serialVersionUID = -5495994390870097181L;
@ApiModelProperty("id") @ApiModelProperty("id")
private Long id; private Integer id;
@ApiModelProperty("订单编号") @ApiModelProperty("订单编号")
private String orderNo; private String orderNo;
......
...@@ -19,7 +19,7 @@ import java.io.Serializable; ...@@ -19,7 +19,7 @@ import java.io.Serializable;
public class MallOrderExpressDTO implements Serializable { public class MallOrderExpressDTO implements Serializable {
private static final long serialVersionUID = 6804508364845777867L; private static final long serialVersionUID = 6804508364845777867L;
@ApiModelProperty(value = "orderId") @ApiModelProperty(value = "orderId")
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "发货-快递公司编码") @ApiModelProperty(value = "发货-快递公司编码")
private String sendExpNo; private String sendExpNo;
@ApiModelProperty(value = "发货-快递单号") @ApiModelProperty(value = "发货-快递单号")
......
...@@ -23,7 +23,7 @@ import java.math.BigDecimal; ...@@ -23,7 +23,7 @@ import java.math.BigDecimal;
public class MallOrderFinishDTO implements Serializable { public class MallOrderFinishDTO implements Serializable {
private static final long serialVersionUID = 4577011678089794859L; private static final long serialVersionUID = 4577011678089794859L;
@ApiModelProperty("订单id") @ApiModelProperty("订单id")
private Long orderId; private Integer orderId;
@ApiModelProperty("订单编号") @ApiModelProperty("订单编号")
private String orderNo; private String orderNo;
......
...@@ -26,7 +26,7 @@ import java.util.List; ...@@ -26,7 +26,7 @@ import java.util.List;
public class MallOrderPageDTO implements Serializable { public class MallOrderPageDTO implements Serializable {
private static final long serialVersionUID = 56353980620113181L; private static final long serialVersionUID = 56353980620113181L;
@ApiModelProperty("id") @ApiModelProperty("id")
private Long id; private Integer id;
@ApiModelProperty("订单编号") @ApiModelProperty("订单编号")
private String orderNo; private String orderNo;
......
...@@ -26,7 +26,7 @@ public class OrderGoodsIndstDTO implements Serializable { ...@@ -26,7 +26,7 @@ public class OrderGoodsIndstDTO implements Serializable {
@ApiModelProperty(value = "id") @ApiModelProperty(value = "id")
private Integer id; private Integer id;
@ApiModelProperty(value = "订单id") @ApiModelProperty(value = "订单id")
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "购物车id") @ApiModelProperty(value = "购物车id")
private Integer mallIndstShopCarId; private Integer mallIndstShopCarId;
@ApiModelProperty(value = "商品id") @ApiModelProperty(value = "商品id")
......
...@@ -26,7 +26,7 @@ public class OrderGoodsProdDTO implements Serializable { ...@@ -26,7 +26,7 @@ public class OrderGoodsProdDTO implements Serializable {
@ApiModelProperty(value = "orderGoodsProdId") @ApiModelProperty(value = "orderGoodsProdId")
private Integer id; private Integer id;
@ApiModelProperty(value = "订单id") @ApiModelProperty(value = "订单id")
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "产品购物车id") @ApiModelProperty(value = "产品购物车id")
private Integer mallProdShopCarId; private Integer mallProdShopCarId;
@ApiModelProperty(value = "商品id") @ApiModelProperty(value = "商品id")
......
...@@ -23,7 +23,7 @@ import java.util.List; ...@@ -23,7 +23,7 @@ import java.util.List;
public class OrderPayDTO implements Serializable { public class OrderPayDTO implements Serializable {
private static final long serialVersionUID = -3966470399037847912L; private static final long serialVersionUID = -3966470399037847912L;
@ApiModelProperty(value = "orderId") @ApiModelProperty(value = "orderId")
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "凭证类型:0全款 1预付款 2尾款") @ApiModelProperty(value = "凭证类型:0全款 1预付款 2尾款")
private Integer payType; private Integer payType;
@ApiModelProperty(value = "支付备注") @ApiModelProperty(value = "支付备注")
......
...@@ -21,7 +21,7 @@ import java.io.Serializable; ...@@ -21,7 +21,7 @@ import java.io.Serializable;
@ApiModel(value = "com.mmc.csf.mall.dto.OrderServiceDTO", description = "订单商品信息DTO") @ApiModel(value = "com.mmc.csf.mall.dto.OrderServiceDTO", description = "订单商品信息DTO")
public class OrderServiceDTO implements Serializable { public class OrderServiceDTO implements Serializable {
private static final long serialVersionUID = 3384622935297961674L; private static final long serialVersionUID = 3384622935297961674L;
private Long orderId; private Integer orderId;
private Integer goodsInfoId; private Integer goodsInfoId;
@ApiModelProperty(value = "服务名") @ApiModelProperty(value = "服务名")
private String serviceName; private String serviceName;
......
...@@ -16,7 +16,7 @@ public class UavContractInfoDTO implements Serializable { ...@@ -16,7 +16,7 @@ public class UavContractInfoDTO implements Serializable {
private static final long serialVersionUID = 8595958456591915448L; private static final long serialVersionUID = 8595958456591915448L;
private Integer id; private Integer id;
private Integer userAccountId; private Integer userAccountId;
private Long mallOrderId; private Integer mallOrderId;
private String contractTitle; private String contractTitle;
@ApiModelProperty(value = "状态:(0:等待用户签署、1:用户签署失败、2:等待甲方签署(用户签署成功) 3:用户签署失败、4:甲方签署成功、5:已完成") @ApiModelProperty(value = "状态:(0:等待用户签署、1:用户签署失败、2:等待甲方签署(用户签署成功) 3:用户签署失败、4:甲方签署成功、5:已完成")
private Integer signStatus; private Integer signStatus;
......
...@@ -19,7 +19,7 @@ public class ConfirmAfPayVO implements Serializable { ...@@ -19,7 +19,7 @@ public class ConfirmAfPayVO implements Serializable {
@ApiModelProperty(value = "订单id",required = true) @ApiModelProperty(value = "订单id",required = true)
@NotNull @NotNull
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "审核状态:0拒绝/1通过",required = true) @ApiModelProperty(value = "审核状态:0拒绝/1通过",required = true)
@NotNull @NotNull
private Integer checkStatus; private Integer checkStatus;
......
...@@ -20,7 +20,7 @@ public class MallOrderExpressVO implements Serializable { ...@@ -20,7 +20,7 @@ public class MallOrderExpressVO implements Serializable {
private static final long serialVersionUID = 4364047174162933119L; private static final long serialVersionUID = 4364047174162933119L;
@ApiModelProperty(value = "orderId") @ApiModelProperty(value = "orderId")
@NotNull @NotNull
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "物流公司代号") @ApiModelProperty(value = "物流公司代号")
@NotNull @NotNull
private String sendExpCode; private String sendExpCode;
......
...@@ -26,7 +26,7 @@ public class MallOrderVO implements Serializable { ...@@ -26,7 +26,7 @@ public class MallOrderVO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "订单id") @ApiModelProperty(value = "订单id")
private Long id; private Integer id;
@ApiModelProperty(value = "0全款购买 1分期付款") @ApiModelProperty(value = "0全款购买 1分期付款")
private Integer payMethod; private Integer payMethod;
......
...@@ -24,7 +24,7 @@ public class OrderPayVO implements Serializable { ...@@ -24,7 +24,7 @@ public class OrderPayVO implements Serializable {
private static final long serialVersionUID = -7118568598001208480L; private static final long serialVersionUID = -7118568598001208480L;
@ApiModelProperty(value = "orderId") @ApiModelProperty(value = "orderId")
@NotNull(message = "订单ID不能为空", groups = { Auto.class, Confirm.class }) @NotNull(message = "订单ID不能为空", groups = { Auto.class, Confirm.class })
private Long orderId; private Integer orderId;
@ApiModelProperty(value = "支付凭证-图片") @ApiModelProperty(value = "支付凭证-图片")
@NotNull(message = "支付凭证-图片不能为空", groups = { Confirm.class }) @NotNull(message = "支付凭证-图片不能为空", groups = { Confirm.class })
private List<String> vouchr; private List<String> vouchr;
......
...@@ -34,7 +34,7 @@ public interface AppMallOrderService { ...@@ -34,7 +34,7 @@ public interface AppMallOrderService {
* @param orderId 订单id * @param orderId 订单id
* @return {@link ResultBody} * @return {@link ResultBody}
*/ */
ResultBody getShareOrderStatus(Long orderId); ResultBody getShareOrderStatus(Integer orderId);
/** /**
* 接受分享 * 接受分享
...@@ -43,11 +43,11 @@ public interface AppMallOrderService { ...@@ -43,11 +43,11 @@ public interface AppMallOrderService {
* @param shareId 共享id * @param shareId 共享id
* @return {@link ResultBody} * @return {@link ResultBody}
*/ */
ResultBody acceptShare(Long orderId, Integer shareId); ResultBody acceptShare(Integer orderId, Integer shareId);
CountShowTypeDTO countListPage(BaseAccountDTO currentAccount); CountShowTypeDTO countListPage(BaseAccountDTO currentAccount);
ResultBody returnContractById(Long orderId); ResultBody returnContractById(Integer orderId);
/** /**
* v1.0.0确认订单 * v1.0.0确认订单
...@@ -73,5 +73,5 @@ public interface AppMallOrderService { ...@@ -73,5 +73,5 @@ public interface AppMallOrderService {
* @param currentAccount * @param currentAccount
* @return * @return
*/ */
MallOrderDTO getMallOrderDetailById(Long orderId, BaseAccountDTO currentAccount); MallOrderDTO getMallOrderDetailById(Integer orderId, BaseAccountDTO currentAccount);
} }
...@@ -17,5 +17,5 @@ public interface KdnExpService { ...@@ -17,5 +17,5 @@ public interface KdnExpService {
KDNCallBackResponse callbackExpressInfo(Map<String, Object> map); KDNCallBackResponse callbackExpressInfo(Map<String, Object> map);
ResultBody testCallbackExpressInfo(String port, Long orderId, String shipperCode, String logisticCode, String phone) throws Exception; ResultBody testCallbackExpressInfo(String port, Integer orderId, String shipperCode, String logisticCode, String phone) throws Exception;
} }
...@@ -51,9 +51,9 @@ public interface MallOrderService { ...@@ -51,9 +51,9 @@ public interface MallOrderService {
* @param cuser * @param cuser
* @return * @return
*/ */
ResultBody confirmCost(Long orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser);// 平台确认收款 ResultBody confirmCost(Integer orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser);// 平台确认收款
ResultBody confirmAfPay(Long orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser); ResultBody confirmAfPay(Integer orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser);
/** /**
* 平台确认库存-已确认收款(待确认库存)》已确认库存(待发货) * 平台确认库存-已确认收款(待确认库存)》已确认库存(待发货)
...@@ -62,7 +62,7 @@ public interface MallOrderService { ...@@ -62,7 +62,7 @@ public interface MallOrderService {
* @param cuser * @param cuser
* @return * @return
*/ */
ResultBody confirmInventory(Long orderId, BaseAccountDTO cuser);// 平台确认库存 ResultBody confirmInventory(Integer orderId, BaseAccountDTO cuser);// 平台确认库存
/** /**
* 买家确认收货-已发货(待收货)》已收货(待订单完成) * 买家确认收货-已发货(待收货)》已收货(待订单完成)
...@@ -75,7 +75,7 @@ public interface MallOrderService { ...@@ -75,7 +75,7 @@ public interface MallOrderService {
/** /**
* 取消订单 * 取消订单
*/ */
ResultBody closeOrder(Long orderId, String shutReason, BaseAccountDTO cuser); ResultBody closeOrder(Integer orderId, String shutReason, BaseAccountDTO cuser);
/** /**
* 订单详情 * 订单详情
...@@ -87,13 +87,13 @@ public interface MallOrderService { ...@@ -87,13 +87,13 @@ public interface MallOrderService {
*/ */
// MallOrderDTO appOrderDetail(Long orderId, BaseAccountDTO cuser); // MallOrderDTO appOrderDetail(Long orderId, BaseAccountDTO cuser);
List<OrderPayDTO> listOrderPayInfo(Long orderId, Integer payType, BaseAccountDTO cuser); List<OrderPayDTO> listOrderPayInfo(Integer orderId, Integer payType, BaseAccountDTO cuser);
int countMenuRedPoint(BaseAccountDTO cuser); int countMenuRedPoint(BaseAccountDTO cuser);
ResultBody confirmOrderVerOne(ConfirmOrderVO confirmOrderVO, BaseAccountDTO currentAccount); ResultBody confirmOrderVerOne(ConfirmOrderVO confirmOrderVO, BaseAccountDTO currentAccount);
void sendOrderStatusChangeMsg(Long mallOrderId); void sendOrderStatusChangeMsg(Integer mallOrderId);
/** /**
* 关闭订单 * 关闭订单
...@@ -101,11 +101,11 @@ public interface MallOrderService { ...@@ -101,11 +101,11 @@ public interface MallOrderService {
* @param baseAccountDTO * @param baseAccountDTO
* @return * @return
*/ */
ResultBody closeMallOrder(Long id, BaseAccountDTO baseAccountDTO); ResultBody closeMallOrder(Integer id, BaseAccountDTO baseAccountDTO);
ResultBody updateMallOrder(Long orderId, Date singerTime); ResultBody updateMallOrder(Integer orderId, Date singerTime);
ResultBody allocateOperation(Long orderId , Integer operationId); ResultBody allocateOperation(Integer orderId , Integer operationId);
ResultBody afterPayAndCheck(List<OrderPayVO> param, BaseAccountDTO currentAccount); ResultBody afterPayAndCheck(List<OrderPayVO> param, BaseAccountDTO currentAccount);
...@@ -115,7 +115,7 @@ public interface MallOrderService { ...@@ -115,7 +115,7 @@ public interface MallOrderService {
ResultBody confirmCostVerOne(ConfirmAfPayVO confirmPay, BaseAccountDTO currentAccount); ResultBody confirmCostVerOne(ConfirmAfPayVO confirmPay, BaseAccountDTO currentAccount);
ResultBody updateStatusMallOrder(Long orderId, Integer signStatus); ResultBody updateStatusMallOrder(Integer orderId, Integer signStatus);
void mallOrderCreditPeriodTask(); void mallOrderCreditPeriodTask();
...@@ -126,21 +126,21 @@ public interface MallOrderService { ...@@ -126,21 +126,21 @@ public interface MallOrderService {
void listPageManagerExportVerOne(MallOrderQO param, HttpServletResponse response, BaseAccountDTO currentAccount, String token); void listPageManagerExportVerOne(MallOrderQO param, HttpServletResponse response, BaseAccountDTO currentAccount, String token);
MallOrderDTO getMallOrderDetailById(Long orderId, BaseAccountDTO currentAccount, String token); MallOrderDTO getMallOrderDetailById(Integer orderId, BaseAccountDTO currentAccount, String token);
ResultBody updateMallOrderRemark(Long orderId, String remark); ResultBody updateMallOrderRemark(Integer orderId, String remark);
ResultBody confirmOrderNew(ConfirmOrderNewVO confirmOrderNewVO, BaseAccountDTO currentAccount); ResultBody confirmOrderNew(ConfirmOrderNewVO confirmOrderNewVO, BaseAccountDTO currentAccount);
ResultBody sendOrderGoodsNew(MallOrderExpressVO param, BaseAccountDTO currentAccount) throws Exception; ResultBody sendOrderGoodsNew(MallOrderExpressVO param, BaseAccountDTO currentAccount) throws Exception;
void exportMultiSheet(HttpServletResponse response, List<Long> orderIds) throws IOException; void exportMultiSheet(HttpServletResponse response, List<Integer> orderIds) throws IOException;
void listOperationalDataExport(MallOrderQO param, HttpServletResponse response, BaseAccountDTO currentAccount, String token) throws IOException; void listOperationalDataExport(MallOrderQO param, HttpServletResponse response, BaseAccountDTO currentAccount, String token) throws IOException;
ResultBody feignOrderUseCoupon(List<Long> orderIds); ResultBody feignOrderUseCoupon(List<Integer> orderIds);
ResultBody getOrderInfoByOrderNo(String orderNo); ResultBody getOrderInfoByOrderNo(String orderNo);
void operationalDataExport(List<Long> orderIds, HttpServletResponse response, BaseAccountDTO currentAccount) throws IOException; void operationalDataExport(List<Integer> orderIds, HttpServletResponse response, BaseAccountDTO currentAccount) throws IOException;
} }
...@@ -20,9 +20,9 @@ public interface OrderGoodsIndstService { ...@@ -20,9 +20,9 @@ public interface OrderGoodsIndstService {
/** /**
* 根据订单id,查询产品信息和产品规格 * 根据订单id,查询产品信息和产品规格
*/ */
List<OrderGoodsIndstProdListBO> getProductInfoByMallId(Long orderId); List<OrderGoodsIndstProdListBO> getProductInfoByMallId(Integer orderId);
List<MallOrderSimpleDO> listOrderGoodsIndstBaseInfo(List<Long> mallOrderIds); List<MallOrderSimpleDO> listOrderGoodsIndstBaseInfo(List<Integer> mallOrderIds);
List<OrderGoodsIndstProdListDO> listIMallOrderProdList(Long orderId); List<OrderGoodsIndstProdListDO> listIMallOrderProdList(Integer orderId);
} }
...@@ -18,9 +18,9 @@ import java.util.List; ...@@ -18,9 +18,9 @@ import java.util.List;
*/ */
public interface OrderGoodsProdService { public interface OrderGoodsProdService {
List<OrderGoodsProdDetailBO> getProductInfoByMallId(Long orderId); List<OrderGoodsProdDetailBO> getProductInfoByMallId(Integer orderId);
List<MallOrderSimpleDO> listOrderGoodsProdBaseInfo(List<Long> mallOrderIds); List<MallOrderSimpleDO> listOrderGoodsProdBaseInfo(List<Integer> mallOrderIds);
List<OrderGoodsProdDetailDO> listPMallOrderProdList(Long orderId); List<OrderGoodsProdDetailDO> listPMallOrderProdList(Integer orderId);
} }
...@@ -467,7 +467,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -467,7 +467,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
List<MallOrderDO> orders = mallOrderDao.listAppPageAmOrder((pageNo - 1) * pageSize, pageSize, keyword, orderType, statusCodes, currentAccount.getUserAccountId()); List<MallOrderDO> orders = mallOrderDao.listAppPageAmOrder((pageNo - 1) * pageSize, pageSize, keyword, orderType, statusCodes, currentAccount.getUserAccountId());
List<MallOrderPageDTO> mallOrderPageDTOList = mallOrderService.buildMallOrderPageDTO(orders, token); List<MallOrderPageDTO> mallOrderPageDTOList = mallOrderService.buildMallOrderPageDTO(orders, token);
//需要处理所选规格 //需要处理所选规格
List<Long> orderIds = orders.stream().map(MallOrderDO::getId).collect(Collectors.toList()); List<Integer> orderIds = orders.stream().map(MallOrderDO::getId).collect(Collectors.toList());
List<MallOrderSimpleDO> mallOrderSimpleDOList = appMallOrderDao.listMallOrderSkuSpec(orderIds); List<MallOrderSimpleDO> mallOrderSimpleDOList = appMallOrderDao.listMallOrderSkuSpec(orderIds);
List<MallOrderPageDTO> collect = mallOrderPageDTOList.stream().map(d -> { List<MallOrderPageDTO> collect = mallOrderPageDTOList.stream().map(d -> {
for (MallOrderSimpleDO mallOrderSimpleDO : mallOrderSimpleDOList) { for (MallOrderSimpleDO mallOrderSimpleDO : mallOrderSimpleDOList) {
...@@ -501,8 +501,8 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -501,8 +501,8 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
List<OrderGoodsIndstDTO> orderGoodsIndstDTOList = new ArrayList<>(); List<OrderGoodsIndstDTO> orderGoodsIndstDTOList = new ArrayList<>();
//生成总订单id //生成总订单id
SnowFlake snowFlake = new SnowFlake(2, 3); SnowFlake snowFlake = new SnowFlake(2, 3);
Long orderId = snowFlake.nextId(); Integer orderId = null;
String orderNo = CodeUtil.uavOrderCode(orderId); String orderNo = CodeUtil.uavOrderCode();
BigDecimal couponDiscount = BigDecimal.ZERO; BigDecimal couponDiscount = BigDecimal.ZERO;
// 多个购物车只取最后一个,有则有,没有则没有 // 多个购物车只取最后一个,有则有,没有则没有
Integer recMallUserId = null; Integer recMallUserId = null;
...@@ -902,7 +902,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -902,7 +902,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
return mallDiscountInfoDTO; return mallDiscountInfoDTO;
} }
private List<OrderServiceDO> getOrderServiceDO(List<OrderGoodsProdDTO> orderGoodsProdDTOList, List<OrderGoodsIndstDTO> orderGoodsIndstDTOList, Long orderId){ private List<OrderServiceDO> getOrderServiceDO(List<OrderGoodsProdDTO> orderGoodsProdDTOList, List<OrderGoodsIndstDTO> orderGoodsIndstDTOList, Integer orderId){
List<OrderServiceDO> orderServiceDOS = new ArrayList<>(); List<OrderServiceDO> orderServiceDOS = new ArrayList<>();
Date cDate = new Date(); Date cDate = new Date();
for ( OrderGoodsProdDTO orderGoodsProdDTO : orderGoodsProdDTOList){ for ( OrderGoodsProdDTO orderGoodsProdDTO : orderGoodsProdDTOList){
...@@ -1132,7 +1132,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -1132,7 +1132,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
* @return {@link ResultBody} * @return {@link ResultBody}
*/ */
@Override @Override
public ResultBody getShareOrderStatus(Long orderId) { public ResultBody getShareOrderStatus(Integer orderId) {
// 将此订单id的分享状态进行变更 // 将此订单id的分享状态进行变更
MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId);
return ResultBody.success(mallOrderInfo.buildMallOrderDTO()); return ResultBody.success(mallOrderInfo.buildMallOrderDTO());
...@@ -1146,7 +1146,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -1146,7 +1146,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
* @return {@link ResultBody} * @return {@link ResultBody}
*/ */
@Override @Override
public ResultBody acceptShare(Long orderId, Integer shareId) { public ResultBody acceptShare(Integer orderId, Integer shareId) {
// 根据订单id判断此订单是否已经有人接受共享了 // 根据订单id判断此订单是否已经有人接受共享了
MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId);
if (mallOrderInfo.getShareStatus().equals(200)) { if (mallOrderInfo.getShareStatus().equals(200)) {
...@@ -1174,7 +1174,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -1174,7 +1174,7 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
@Transactional @Transactional
@Override @Override
public ResultBody returnContractById(Long orderId) { public ResultBody returnContractById(Integer orderId) {
//订单状态退回到 待确认订单,手动折扣改为0,相关字段设置为空 //订单状态退回到 待确认订单,手动折扣改为0,相关字段设置为空
MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId);
order.setStatusCode(OrderStatus.PLACE_ORDER.getCode()); order.setStatusCode(OrderStatus.PLACE_ORDER.getCode());
...@@ -1239,7 +1239,6 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -1239,7 +1239,6 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
} }
//判断是否有无效的产品商品 //判断是否有无效的产品商品
for (OrderGoodsProdDTO orderGoodsProdDTO : orderGoodsProdDTOList){ for (OrderGoodsProdDTO orderGoodsProdDTO : orderGoodsProdDTOList){
System.out.println("orderGoodsProdDTO:->>>" + orderGoodsProdDTO);
if(orderGoodsProdDTO.getDeleted() == 0 && orderGoodsProdDTO.getShelfStatus() == 1){ if(orderGoodsProdDTO.getDeleted() == 0 && orderGoodsProdDTO.getShelfStatus() == 1){
for (OrderGoodsProdDetailDTO orderGoodsProdDetailDTO : orderGoodsProdDTO.getOrderGoodsProdDetailDTOS()){ for (OrderGoodsProdDetailDTO orderGoodsProdDetailDTO : orderGoodsProdDTO.getOrderGoodsProdDetailDTOS()){
if( !(orderGoodsProdDetailDTO.getSpecDeleted() == 0 && orderGoodsProdDetailDTO.getSkuInfoDeleted() == 0 && orderGoodsProdDetailDTO.getSkuSpecDeleted() == 0)){ if( !(orderGoodsProdDetailDTO.getSpecDeleted() == 0 && orderGoodsProdDetailDTO.getSkuInfoDeleted() == 0 && orderGoodsProdDetailDTO.getSkuSpecDeleted() == 0)){
...@@ -1307,8 +1306,8 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -1307,8 +1306,8 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
List<OrderGoodsProdDTO> orderGoodsProdDTOList = new ArrayList<>(); List<OrderGoodsProdDTO> orderGoodsProdDTOList = new ArrayList<>();
//生成总订单id //生成总订单id
SnowFlake snowFlake = new SnowFlake(2, 3); SnowFlake snowFlake = new SnowFlake(2, 3);
Long orderId = snowFlake.nextId(); //Long orderId = snowFlake.nextId();
String orderNo = CodeUtil.uavOrderCode(orderId); String orderNo = CodeUtil.uavOrderCode();
BigDecimal couponDiscount = BigDecimal.ZERO; BigDecimal couponDiscount = BigDecimal.ZERO;
//处理产品商品 //处理产品商品
...@@ -1338,68 +1337,70 @@ public class AppMallOrderServiceImpl implements AppMallOrderService { ...@@ -1338,68 +1337,70 @@ public class AppMallOrderServiceImpl implements AppMallOrderService {
if(orderGoodsProdDOS == null){ if(orderGoodsProdDOS == null){
return ResultBody.error(ResultEnum.SPEC_NOT_CONFIG_PRICE); return ResultBody.error(ResultEnum.SPEC_NOT_CONFIG_PRICE);
} }
//把每个商品所有规格金额加起来,订单金额 //把每个商品所有规格金额加起来,订单金额;
for (OrderGoodsProdDO orderGoodsProdDO : orderGoodsProdDOS){ BigDecimal prodOrderAmount = orderGoodsProdDOS.stream().map(OrderGoodsProdDO::getGoodsAmount).reduce(BigDecimal.ZERO, BigDecimal::add);
orderAmount = orderAmount.add(orderGoodsProdDO.getGoodsAmount());
} //插入订单主订单
//插入总订单信息
Date cdate = new Date();
MallOrderDO order = new MallOrderDO();
//order.setId(orderId);
order.setOrderNo(orderNo);
order.setPid(0);
order.setStatusCode(OrderStatus.PENDING_ASSIGNMENT.getCode());
order.setUserAccountId(currentAccount.getUserAccountId());
order.setUid(currentAccount.getUid());
order.setUserName(currentAccount.getUserName());
order.setPhoneNum(currentAccount.getPhoneNum());
order.setCreateTime(cdate);
order.setUserAddressId(param.getUserAddressId());
order.setOrderAmount(prodOrderAmount);
order.setRealityAmount(prodOrderAmount.subtract(couponDiscount));
order.setRemark(param.getRemark());
order.setCouponDiscountAmount(couponDiscount);
order.setRcdOrderAmount(rcdOrderAmount);
mallOrderDao.insertMallOrder(order);
List<OrderGoodsProdDO> orderGoodsProdDOList = orderGoodsProdDOS.stream().map(d -> {
d.setOrderId(order.getId());
return d;
}).collect(Collectors.toList());
List<OrderGoodsProdDetailDO> orderGoodsProdDetailDOList = new ArrayList<>(); List<OrderGoodsProdDetailDO> orderGoodsProdDetailDOList = new ArrayList<>();
for (OrderGoodsProdDO orderGoodsProdDO : orderGoodsProdDOS){
//设置订单id
orderGoodsProdDO.setOrderId(orderId);
}
//插入产品商品 //插入产品商品
appMallOrderDao.batchInsertOrderGoodsProdDO(orderGoodsProdDOS); appMallOrderDao.batchInsertOrderGoodsProdDO(orderGoodsProdDOS);
for (OrderGoodsProdDO orderGoodsProdDO : orderGoodsProdDOS){ List<OrderGoodsProdDO> goodsProdDOList = orderGoodsProdDOList.stream().map(d -> {
if(!CollectionUtils.isEmpty(orderGoodsProdDO.getOrderGoodsProdDetailDOList())){ if (!CollectionUtils.isEmpty(d.getOrderGoodsProdDetailDOList())) {
for (OrderGoodsProdDetailDO orderGoodsProdDetailDO : orderGoodsProdDO.getOrderGoodsProdDetailDOList()){ d.getOrderGoodsProdDetailDOList().stream().map(dd -> {
//设置商品订单id //设置商品订单id
orderGoodsProdDetailDO.setOrderGoodsProdId(orderGoodsProdDO.getId()); dd.setOrderGoodsProdId(d.getId());
orderGoodsProdDetailDOList.add(orderGoodsProdDetailDO); orderGoodsProdDetailDOList.add(dd);
} return dd;
}).collect(Collectors.toList());
} }
} return d;
}).collect(Collectors.toList());
//批量插入产品商品规格 //批量插入产品商品规格
appMallOrderDao.batchInsertOrderGoodsProdDetailDO(orderGoodsProdDetailDOList); appMallOrderDao.batchInsertOrderGoodsProdDetailDO(orderGoodsProdDetailDOList);
}
//插入总订单信息 //订单服务
Date cdate = new Date(); List<OrderServiceDO> orderServiceDOS = this.getOrderServiceDO(orderGoodsProdDTOList, null, order.getId());
MallOrderDO order = new MallOrderDO(); if (!CollectionUtils.isEmpty(orderServiceDOS)) {
order.setId(orderId); mallOrderDao.batchInsertOrderService(orderServiceDOS);
order.setOrderNo(orderNo); }
order.setPid(0); MallOrderExpressDO orderExpressDO = new MallOrderExpressDO(userAddressDTO);
order.setStatusCode(OrderStatus.PENDING_ASSIGNMENT.getCode()); orderExpressDO.setOrderId(order.getId());
order.setUserAccountId(currentAccount.getUserAccountId()); //插入订单收货地址
order.setUid(currentAccount.getUid()); mallOrderDao.insertOrderExpress(orderExpressDO);
order.setUserName(currentAccount.getUserName()); MallOrderDTO morder = order.buildMallOrderDTO();
order.setPhoneNum(currentAccount.getPhoneNum()); morder.setExp(orderExpressDO.buildOrderExpressDTO());
order.setCreateTime(cdate); return ResultBody.success(morder);
order.setUserAddressId(param.getUserAddressId());
order.setOrderAmount(orderAmount);
order.setRealityAmount(orderAmount.subtract(couponDiscount));
order.setRemark(param.getRemark());
order.setCouponDiscountAmount(couponDiscount);
order.setRcdOrderAmount(rcdOrderAmount);
mallOrderDao.insertMallOrder(order);
//订单服务
List<OrderServiceDO> orderServiceDOS = this.getOrderServiceDO(orderGoodsProdDTOList, null, orderId);
if (!CollectionUtils.isEmpty(orderServiceDOS)) {
mallOrderDao.batchInsertOrderService(orderServiceDOS);
} }
MallOrderExpressDO orderExpressDO = new MallOrderExpressDO(userAddressDTO); return ResultBody.success();
orderExpressDO.setOrderId(orderId);
//插入订单收货地址
mallOrderDao.insertOrderExpress(orderExpressDO);
MallOrderDTO morder = order.buildMallOrderDTO();
morder.setExp(orderExpressDO.buildOrderExpressDTO());
return ResultBody.success(morder);
} }
@Override @Override
public MallOrderDTO getMallOrderDetailById(Long orderId, BaseAccountDTO currentAccount) { public MallOrderDTO getMallOrderDetailById(Integer orderId, BaseAccountDTO currentAccount) {
return null; return null;
} }
......
...@@ -64,7 +64,7 @@ public class KdnExpServiceImpl implements KdnExpService { ...@@ -64,7 +64,7 @@ public class KdnExpServiceImpl implements KdnExpService {
String callBack = jsonObject.getString("CallBack"); String callBack = jsonObject.getString("CallBack");
String[]orderTag = callBack.split("-"); String[]orderTag = callBack.split("-");
if(orderTag.length > 1 && orderTag[0].equals("UAV")){ if(orderTag.length > 1 && orderTag[0].equals("UAV")){
Long orderId = Long.parseLong(orderTag[1]); Integer orderId = Integer.parseInt(orderTag[1]);
MallOrderExpressDO orderExpressDO = new MallOrderExpressDO(); MallOrderExpressDO orderExpressDO = new MallOrderExpressDO();
orderExpressDO.setOrderId(orderId); orderExpressDO.setOrderId(orderId);
orderExpressDO.setReceiveTime(new Date()); orderExpressDO.setReceiveTime(new Date());
...@@ -79,7 +79,7 @@ public class KdnExpServiceImpl implements KdnExpService { ...@@ -79,7 +79,7 @@ public class KdnExpServiceImpl implements KdnExpService {
} }
@Override @Override
public ResultBody testCallbackExpressInfo(String port, Long orderId, String shipperCode, String logisticCode, String phone) throws Exception { public ResultBody testCallbackExpressInfo(String port, Integer orderId, String shipperCode, String logisticCode, String phone) throws Exception {
String s = KdnExpressUtil.monitorPush(port, orderId, shipperCode, logisticCode, phone); String s = KdnExpressUtil.monitorPush(port, orderId, shipperCode, logisticCode, phone);
if(!JSONObject.parseObject(s).getString("Success").equals("true")){ if(!JSONObject.parseObject(s).getString("Success").equals("true")){
throw new BizException("快递信息错误,请重新填写后发货!"); throw new BizException("快递信息错误,请重新填写后发货!");
......
...@@ -414,7 +414,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -414,7 +414,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody confirmCost(Long orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser) { public ResultBody confirmCost(Integer orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser) {
MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId);
Integer nextStatus; Integer nextStatus;
Integer payStatus; Integer payStatus;
...@@ -456,7 +456,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -456,7 +456,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody confirmInventory(Long orderId, BaseAccountDTO cuser) { public ResultBody confirmInventory(Integer orderId, BaseAccountDTO cuser) {
MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId);
ResultBody result = this.orderEvolution(order, OrderStatus.CONFIRM_INVENTORY.getCode()); ResultBody result = this.orderEvolution(order, OrderStatus.CONFIRM_INVENTORY.getCode());
if (!ResultBody.isSuccess(result)) { if (!ResultBody.isSuccess(result)) {
...@@ -566,7 +566,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -566,7 +566,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody closeOrder(Long orderId, String shutReason, BaseAccountDTO cuser) { public ResultBody closeOrder(Integer orderId, String shutReason, BaseAccountDTO cuser) {
MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId);
StringBuffer stringBuffer = new StringBuffer(); StringBuffer stringBuffer = new StringBuffer();
if (StringUtils.isEmpty(shutReason)){ if (StringUtils.isEmpty(shutReason)){
...@@ -632,7 +632,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -632,7 +632,7 @@ public class MallOrderServiceImpl implements MallOrderService {
// return 0; // return 0;
// } // }
private String getOrderName(Long orderId){ private String getOrderName(Integer orderId){
// 获取订单名字 // 获取订单名字
String orderName = ""; String orderName = "";
List<MallOrderSimpleDO> pMallOrderSimpleDOList = orderGoodsProdService.listOrderGoodsProdBaseInfo(Arrays.asList(orderId)); List<MallOrderSimpleDO> pMallOrderSimpleDOList = orderGoodsProdService.listOrderGoodsProdBaseInfo(Arrays.asList(orderId));
...@@ -1029,7 +1029,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1029,7 +1029,7 @@ public class MallOrderServiceImpl implements MallOrderService {
// } // }
@Override @Override
public List<OrderPayDTO> listOrderPayInfo(Long orderId, Integer payType, BaseAccountDTO cuser) { public List<OrderPayDTO> listOrderPayInfo(Integer orderId, Integer payType, BaseAccountDTO cuser) {
List<OrderPayDTO> list = mallOrderDao.listOrderPay(orderId, payType).stream().map(d -> { List<OrderPayDTO> list = mallOrderDao.listOrderPay(orderId, payType).stream().map(d -> {
return d.buildOrderPayDTO(); return d.buildOrderPayDTO();
}).collect(Collectors.toList()); }).collect(Collectors.toList());
...@@ -1038,7 +1038,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1038,7 +1038,7 @@ public class MallOrderServiceImpl implements MallOrderService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public ResultBody confirmAfPay(Long orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser) { public ResultBody confirmAfPay(Integer orderId, Integer checkStatus, String refuseReason, List<String> vouchr, Integer type, BaseAccountDTO cuser) {
MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(orderId);
Integer nextStatus; Integer nextStatus;
Integer payStatus; Integer payStatus;
...@@ -1160,7 +1160,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1160,7 +1160,7 @@ public class MallOrderServiceImpl implements MallOrderService {
if (mallOrderVO == null || mallOrderVO.getId() == null) { if (mallOrderVO == null || mallOrderVO.getId() == null) {
throw new BizException("订单id不能为空"); throw new BizException("订单id不能为空");
} }
Long mallOrderId = mallOrderVO.getId(); Integer mallOrderId = mallOrderVO.getId();
MallOrderDO order = mallOrderDao.getMallOrderInfo(mallOrderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(mallOrderId);
ResultBody result = this.orderEvolution(order, OrderStatus.CONFIRM_ORDER.getCode()); ResultBody result = this.orderEvolution(order, OrderStatus.CONFIRM_ORDER.getCode());
if (!ResultBody.isSuccess(result)) { if (!ResultBody.isSuccess(result)) {
...@@ -1186,7 +1186,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1186,7 +1186,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public void sendOrderStatusChangeMsg(Long mallOrderId) { public void sendOrderStatusChangeMsg(Integer mallOrderId) {
/** /**
MallOrderDO order = mallOrderDao.getMallOrderInfo(mallOrderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(mallOrderId);
MallUserDTO mallUserDTO = mallUserClient.feignGetSimpleUserInfo(order.getMallUserId()); MallUserDTO mallUserDTO = mallUserClient.feignGetSimpleUserInfo(order.getMallUserId());
...@@ -1246,7 +1246,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1246,7 +1246,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody closeMallOrder(Long id, BaseAccountDTO accountDTO) { public ResultBody closeMallOrder(Integer id, BaseAccountDTO accountDTO) {
// MallOrderDO beforeMallOrderDO = new MallOrderDO(); // MallOrderDO beforeMallOrderDO = new MallOrderDO();
// beforeMallOrderDO.setId(id); // beforeMallOrderDO.setId(id);
// beforeMallOrderDO.setStatusCode(OrderStatus.CLOSE.getCode()); // beforeMallOrderDO.setStatusCode(OrderStatus.CLOSE.getCode());
...@@ -1265,7 +1265,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1265,7 +1265,7 @@ public class MallOrderServiceImpl implements MallOrderService {
return ResultBody.success(); return ResultBody.success();
} }
private void rollbackCoupons(Long id) { private void rollbackCoupons(Integer id) {
List<OrderCouponDO> orderCouponDOS = appMallOrderDao.listOrderCoupon(id); List<OrderCouponDO> orderCouponDOS = appMallOrderDao.listOrderCoupon(id);
List<OrderCouponDTO> collect = orderCouponDOS.stream().map(d -> d.buildOrderCouponDTO()).collect(Collectors.toList()); List<OrderCouponDTO> collect = orderCouponDOS.stream().map(d -> d.buildOrderCouponDTO()).collect(Collectors.toList());
if (!CollectionUtils.isEmpty(collect)){ if (!CollectionUtils.isEmpty(collect)){
...@@ -1275,7 +1275,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1275,7 +1275,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody updateMallOrder(Long orderId, Date singerTime) { public ResultBody updateMallOrder(Integer orderId, Date singerTime) {
// MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId); // MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId);
// UavContractInfoDTO uavContractInfoDTO = fddServletClient.selectList(new UavContractInfoQO() {{ // UavContractInfoDTO uavContractInfoDTO = fddServletClient.selectList(new UavContractInfoQO() {{
// setMallOrderId(orderId); // setMallOrderId(orderId);
...@@ -1290,7 +1290,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1290,7 +1290,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody allocateOperation(Long order, Integer operationId) { public ResultBody allocateOperation(Integer order, Integer operationId) {
MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(order); MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(order);
if (!mallOrderInfo.getStatusCode().equals(OrderStatus.PENDING_ASSIGNMENT.getCode())) { if (!mallOrderInfo.getStatusCode().equals(OrderStatus.PENDING_ASSIGNMENT.getCode())) {
return ResultBody.error(ResultEnum.ORDER_STATUS_ERROR); return ResultBody.error(ResultEnum.ORDER_STATUS_ERROR);
...@@ -1342,7 +1342,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1342,7 +1342,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody updateStatusMallOrder(Long orderId, Integer signStatus) { public ResultBody updateStatusMallOrder(Integer orderId, Integer signStatus) {
Integer count = mallOrderDao.updateMallOrder(new MallOrderDO() {{ Integer count = mallOrderDao.updateMallOrder(new MallOrderDO() {{
setId(orderId); setId(orderId);
setSignStatus(signStatus); setSignStatus(signStatus);
...@@ -1363,9 +1363,9 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1363,9 +1363,9 @@ public class MallOrderServiceImpl implements MallOrderService {
log.info("当前没有任何订单完成合同签署"); log.info("当前没有任何订单完成合同签署");
return; return;
} }
List<Long> mallOrderIds = new ArrayList<>(); List<Integer> mallOrderIds = new ArrayList<>();
for (UavContractInfoDTO uavContractInfoDTO : result) { for (UavContractInfoDTO uavContractInfoDTO : result) {
Long mallOrderId = uavContractInfoDTO.getMallOrderId(); Integer mallOrderId = uavContractInfoDTO.getMallOrderId();
Date singerTime = uavContractInfoDTO.getSingerTime(); Date singerTime = uavContractInfoDTO.getSingerTime();
if (singerTime == null) { if (singerTime == null) {
log.info("签署时间不能为空,其订单id[{}]", mallOrderId); log.info("签署时间不能为空,其订单id[{}]", mallOrderId);
...@@ -1384,11 +1384,11 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1384,11 +1384,11 @@ public class MallOrderServiceImpl implements MallOrderService {
return; return;
} }
Collections.sort(mallOrderIds); Collections.sort(mallOrderIds);
List<List<Long>> partition = Lists.partition(mallOrderIds, 500); List<List<Integer>> partition = Lists.partition(mallOrderIds, 500);
for (List<Long> orderIds : partition) { for (List<Integer> orderIds : partition) {
List<MallOrderDO> mallOrderDOs = mallOrderDao.getMallOrderCreditPeriod(orderIds); List<MallOrderDO> mallOrderDOs = mallOrderDao.getMallOrderCreditPeriod(orderIds);
for (MallOrderDO mallOrderDO : mallOrderDOs) { for (MallOrderDO mallOrderDO : mallOrderDOs) {
Long mallOrderId = mallOrderDO.getId(); Integer mallOrderId = mallOrderDO.getId();
Date creditPeriod = mallOrderDO.getCreditPeriod(); Date creditPeriod = mallOrderDO.getCreditPeriod();
if (mallOrderDO != null && creditPeriod != null) { if (mallOrderDO != null && creditPeriod != null) {
Integer statusCode = mallOrderDO.getStatusCode(); Integer statusCode = mallOrderDO.getStatusCode();
...@@ -1474,7 +1474,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1474,7 +1474,7 @@ public class MallOrderServiceImpl implements MallOrderService {
@Override @Override
public List<MallOrderPageDTO> buildMallOrderPageDTO(List<MallOrderDO> list, String token) { public List<MallOrderPageDTO> buildMallOrderPageDTO(List<MallOrderDO> list, String token) {
//1查出相关商品信息、2查出运营人员、3查出合同信息、4查出推荐人信息、5查出、6设置订单产品清单 //1查出相关商品信息、2查出运营人员、3查出合同信息、4查出推荐人信息、5查出、6设置订单产品清单
List<Long> mallOrderIds = list.stream().map(MallOrderDO::getId).collect(Collectors.toList()); List<Integer> mallOrderIds = list.stream().map(MallOrderDO::getId).collect(Collectors.toList());
//List<Integer> mallUserIds = list.stream().map(MallOrderDO::getMallUserId).collect(Collectors.toList()); //List<Integer> mallUserIds = list.stream().map(MallOrderDO::getMallUserId).collect(Collectors.toList());
List<Integer> rcdMallUserIds = list.stream().map(MallOrderDO::getRecMallUserId).collect(Collectors.toList()); List<Integer> rcdMallUserIds = list.stream().map(MallOrderDO::getRecMallUserId).collect(Collectors.toList());
//批量查出所有商品信息,有产品和行业两种商品订单信息,分别查出 //批量查出所有商品信息,有产品和行业两种商品订单信息,分别查出
...@@ -1644,7 +1644,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1644,7 +1644,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public MallOrderDTO getMallOrderDetailById(Long orderId, BaseAccountDTO currentAccount, String token) { public MallOrderDTO getMallOrderDetailById(Integer orderId, BaseAccountDTO currentAccount, String token) {
//1订单基本信息;2订单清单;3收货地址;4物流信息;5合同信息;6订单标题;7订单包含商品的数量;8订单服务;9订单状态转换;10渠道信息;11设置订单购买的规格信息;12查询使用的优惠券 //1订单基本信息;2订单清单;3收货地址;4物流信息;5合同信息;6订单标题;7订单包含商品的数量;8订单服务;9订单状态转换;10渠道信息;11设置订单购买的规格信息;12查询使用的优惠券
//1订单基本信息 //1订单基本信息
MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId);
...@@ -1679,7 +1679,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1679,7 +1679,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
} }
//6订单标题 //6订单标题
List<Long> orderIds = new ArrayList<>(); List<Integer> orderIds = new ArrayList<>();
orderIds.add(orderId); orderIds.add(orderId);
List<MallOrderSimpleDO> pMallOrderSimpleDOList = orderGoodsProdService.listOrderGoodsProdBaseInfo(orderIds); List<MallOrderSimpleDO> pMallOrderSimpleDOList = orderGoodsProdService.listOrderGoodsProdBaseInfo(orderIds);
// List<MallOrderSimpleDO> iMallOrderSimpleDOList = orderGoodsIndstService.listOrderGoodsIndstBaseInfo(orderIds); // List<MallOrderSimpleDO> iMallOrderSimpleDOList = orderGoodsIndstService.listOrderGoodsIndstBaseInfo(orderIds);
...@@ -1739,7 +1739,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1739,7 +1739,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody updateMallOrderRemark(Long orderId, String remark) { public ResultBody updateMallOrderRemark(Integer orderId, String remark) {
if (remark.length() > 600){ if (remark.length() > 600){
return ResultBody.error("备注长度大于600!"); return ResultBody.error("备注长度大于600!");
} }
...@@ -1754,7 +1754,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1754,7 +1754,7 @@ public class MallOrderServiceImpl implements MallOrderService {
if (mallOrderVO == null || mallOrderVO.getId() == null) { if (mallOrderVO == null || mallOrderVO.getId() == null) {
throw new BizException("订单id不能为空"); throw new BizException("订单id不能为空");
} }
Long mallOrderId = mallOrderVO.getId(); Integer mallOrderId = mallOrderVO.getId();
MallOrderDO order = mallOrderDao.getMallOrderInfo(mallOrderId); MallOrderDO order = mallOrderDao.getMallOrderInfo(mallOrderId);
//金额检验先注释20230406 //金额检验先注释20230406
//mallOrderVO = updateCheckAndFill(mallOrderVO,order); //mallOrderVO = updateCheckAndFill(mallOrderVO,order);
...@@ -1879,7 +1879,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1879,7 +1879,7 @@ public class MallOrderServiceImpl implements MallOrderService {
return ResultBody.success(); return ResultBody.success();
} }
private List<MallOrderProdListDTO> getMallOrderProdListDTOList(Long orderId){ private List<MallOrderProdListDTO> getMallOrderProdListDTOList(Integer orderId){
//订单商品清单 //订单商品清单
List<OrderGoodsProdDetailDO> pMallOrderProdListDTOS = orderGoodsProdService.listPMallOrderProdList(orderId); List<OrderGoodsProdDetailDO> pMallOrderProdListDTOS = orderGoodsProdService.listPMallOrderProdList(orderId);
//List<OrderGoodsIndstProdListDO> iMallOrderProdListDTOS = orderGoodsIndstService.listIMallOrderProdList(orderId); //List<OrderGoodsIndstProdListDO> iMallOrderProdListDTOS = orderGoodsIndstService.listIMallOrderProdList(orderId);
...@@ -1960,7 +1960,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1960,7 +1960,7 @@ public class MallOrderServiceImpl implements MallOrderService {
// } // }
@Override @Override
public void exportMultiSheet(HttpServletResponse response, List<Long> orderIds) throws IOException { public void exportMultiSheet(HttpServletResponse response, List<Integer> orderIds) throws IOException {
// 判断id数组的长度是否大于5000 // 判断id数组的长度是否大于5000
if (orderIds.size() == 0 || orderIds.size() > 5000) { if (orderIds.size() == 0 || orderIds.size() > 5000) {
throw new BizException("没有需要导出的数据或导出数据大于5000条!"); throw new BizException("没有需要导出的数据或导出数据大于5000条!");
...@@ -1990,7 +1990,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -1990,7 +1990,7 @@ public class MallOrderServiceImpl implements MallOrderService {
excelWriter.close(); excelWriter.close();
} }
private List<OrderExportDTO> listOrderBasicInfo(List<Long> orderIds) { private List<OrderExportDTO> listOrderBasicInfo(List<Integer> orderIds) {
List<OrderExportDTO> orderExportList = new ArrayList<>(); List<OrderExportDTO> orderExportList = new ArrayList<>();
// 根据订单id获取信息 // 根据订单id获取信息
List<MallOrderDO> mallOrderList = mallOrderDao.listMallOrder(orderIds); List<MallOrderDO> mallOrderList = mallOrderDao.listMallOrder(orderIds);
...@@ -2052,7 +2052,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -2052,7 +2052,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public void operationalDataExport(List<Long> orderIds, HttpServletResponse response, BaseAccountDTO currentAccount) throws IOException { public void operationalDataExport(List<Integer> orderIds, HttpServletResponse response, BaseAccountDTO currentAccount) throws IOException {
// // ①获取订单的基本信息 // // ①获取订单的基本信息
// int count = mallOrderDao.countPageOrderInfo(orderIds); // int count = mallOrderDao.countPageOrderInfo(orderIds);
// if (count == 0) { // if (count == 0) {
...@@ -2173,7 +2173,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -2173,7 +2173,7 @@ public class MallOrderServiceImpl implements MallOrderService {
} }
@Override @Override
public ResultBody feignOrderUseCoupon(List<Long> orderIds) { public ResultBody feignOrderUseCoupon(List<Integer> orderIds) {
//待付款订单 //待付款订单
Integer obligation = mallOrderDao.countOrderForCouponUse(orderIds, OrderStatus.CONFIRM_ORDER.getCode()); Integer obligation = mallOrderDao.countOrderForCouponUse(orderIds, OrderStatus.CONFIRM_ORDER.getCode());
//已经付款订单 //已经付款订单
...@@ -2184,7 +2184,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -2184,7 +2184,7 @@ public class MallOrderServiceImpl implements MallOrderService {
return ResultBody.success(map); return ResultBody.success(map);
} }
private List<OrderItem> getOrderItemList(Long orderId){ private List<OrderItem> getOrderItemList(Integer orderId){
//订单商品清单 //订单商品清单
List<OrderGoodsProdDetailDO> pMallOrderProdListDTOS = orderGoodsProdService.listPMallOrderProdList(orderId); List<OrderGoodsProdDetailDO> pMallOrderProdListDTOS = orderGoodsProdService.listPMallOrderProdList(orderId);
List<OrderGoodsIndstProdListDO> iMallOrderProdListDTOS = orderGoodsIndstService.listIMallOrderProdList(orderId); List<OrderGoodsIndstProdListDO> iMallOrderProdListDTOS = orderGoodsIndstService.listIMallOrderProdList(orderId);
...@@ -2200,7 +2200,7 @@ public class MallOrderServiceImpl implements MallOrderService { ...@@ -2200,7 +2200,7 @@ public class MallOrderServiceImpl implements MallOrderService {
return mallOrderItemList; return mallOrderItemList;
} }
private List<MallGoodsInfoDTO> buildMallGoodsInfoDTO(Long orderId){ private List<MallGoodsInfoDTO> buildMallGoodsInfoDTO(Integer orderId){
// 根据订单id获取下单用户信息 // 根据订单id获取下单用户信息
MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId); MallOrderDO mallOrderInfo = mallOrderDao.getMallOrderInfo(orderId);
// 推荐人id // 推荐人id
......
...@@ -29,9 +29,9 @@ public class MallOrderServiceSubImpl implements MallOrderServiceSub { ...@@ -29,9 +29,9 @@ public class MallOrderServiceSubImpl implements MallOrderServiceSub {
@Override @Override
public ResultBody feignAutoCompleteMOrder() { public ResultBody feignAutoCompleteMOrder() {
//查询需要自动完成的订单(签收超过3*24小时后的订单) //查询需要自动完成的订单(签收超过3*24小时后的订单)
List<Long> orderIds = orderExpressDao.listReceivedOrderIds(); List<Integer> orderIds = orderExpressDao.listReceivedOrderIds();
//调用确认收货功能,但是没有上传验收单 //调用确认收货功能,但是没有上传验收单
for (Long orderId : orderIds){ for (Integer orderId : orderIds){
OrderPayVO orderPayVO = new OrderPayVO(); OrderPayVO orderPayVO = new OrderPayVO();
orderPayVO.setOrderId(orderId); orderPayVO.setOrderId(orderId);
mallOrderService.confirmReceipt(orderPayVO, null); mallOrderService.confirmReceipt(orderPayVO, null);
......
...@@ -26,18 +26,18 @@ public class OrderGoodsIndstServiceImpl implements OrderGoodsIndstService { ...@@ -26,18 +26,18 @@ public class OrderGoodsIndstServiceImpl implements OrderGoodsIndstService {
private OrderGoodsIndstDao orderGoodsIndstDao; private OrderGoodsIndstDao orderGoodsIndstDao;
@Override @Override
public List<OrderGoodsIndstProdListBO> getProductInfoByMallId(Long orderId) { public List<OrderGoodsIndstProdListBO> getProductInfoByMallId(Integer orderId) {
return orderGoodsIndstDao.getProductInfoByMallId(orderId); return orderGoodsIndstDao.getProductInfoByMallId(orderId);
} }
@Override @Override
public List<MallOrderSimpleDO> listOrderGoodsIndstBaseInfo(List<Long> mallOrderIds) { public List<MallOrderSimpleDO> listOrderGoodsIndstBaseInfo(List<Integer> mallOrderIds) {
List<MallOrderSimpleDO> mallOrderSimpleDOList = orderGoodsIndstDao.listOrderGoodsIndstBaseInfo(mallOrderIds); List<MallOrderSimpleDO> mallOrderSimpleDOList = orderGoodsIndstDao.listOrderGoodsIndstBaseInfo(mallOrderIds);
return mallOrderSimpleDOList; return mallOrderSimpleDOList;
} }
@Override @Override
public List<OrderGoodsIndstProdListDO> listIMallOrderProdList(Long orderId) { public List<OrderGoodsIndstProdListDO> listIMallOrderProdList(Integer orderId) {
List<OrderGoodsIndstProdListDO> orderGoodsIndstProdListDOS = orderGoodsIndstDao.listIMallOrderProdList(orderId); List<OrderGoodsIndstProdListDO> orderGoodsIndstProdListDOS = orderGoodsIndstDao.listIMallOrderProdList(orderId);
return orderGoodsIndstProdListDOS; return orderGoodsIndstProdListDOS;
} }
......
...@@ -25,18 +25,18 @@ public class OrderGoodsProdServiceImpl implements OrderGoodsProdService { ...@@ -25,18 +25,18 @@ public class OrderGoodsProdServiceImpl implements OrderGoodsProdService {
private OrderGoodsProdDao orderGoodsProdDao; private OrderGoodsProdDao orderGoodsProdDao;
@Override @Override
public List<OrderGoodsProdDetailBO> getProductInfoByMallId(Long orderId) { public List<OrderGoodsProdDetailBO> getProductInfoByMallId(Integer orderId) {
return orderGoodsProdDao.getProductInfoByMallId(orderId); return orderGoodsProdDao.getProductInfoByMallId(orderId);
} }
@Override @Override
public List<MallOrderSimpleDO> listOrderGoodsProdBaseInfo(List<Long> mallOrderIds) { public List<MallOrderSimpleDO> listOrderGoodsProdBaseInfo(List<Integer> mallOrderIds) {
List<MallOrderSimpleDO> orderSimpleDOS = orderGoodsProdDao.listOrderGoodsProdBaseInfo(mallOrderIds); List<MallOrderSimpleDO> orderSimpleDOS = orderGoodsProdDao.listOrderGoodsProdBaseInfo(mallOrderIds);
return orderSimpleDOS; return orderSimpleDOS;
} }
@Override @Override
public List<OrderGoodsProdDetailDO> listPMallOrderProdList(Long orderId) { public List<OrderGoodsProdDetailDO> listPMallOrderProdList(Integer orderId) {
List<OrderGoodsProdDetailDO> orderGoodsProdDetailDOList = orderGoodsProdDao.listPMallOrderProdList(orderId); List<OrderGoodsProdDetailDO> orderGoodsProdDetailDOList = orderGoodsProdDao.listPMallOrderProdList(orderId);
return orderGoodsProdDetailDOList; return orderGoodsProdDetailDOList;
} }
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
from express_info from express_info
</select> </select>
<select id="listReceivedOrderIds" resultType="java.lang.Long"> <select id="listReceivedOrderIds" resultType="java.lang.Integer">
select * from mall_order mo INNER JOIN mall_order_express oe ON mo.id = oe.order_id select * from mall_order mo INNER JOIN mall_order_express oe ON mo.id = oe.order_id
where mo.status_code = 720 and oe.is_receive = 1 and TIMESTAMPDIFF(HOUR,'2023-02-10 16:15:00',NOW()) >= 72 where mo.status_code = 720 and oe.is_receive = 1 and TIMESTAMPDIFF(HOUR,'2023-02-10 16:15:00',NOW()) >= 72
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论