| | |
| | | import com.panzhihua.common.model.dtos.shop.*; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientElevatingPointOrderVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientElevatingPointVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientServiceCategoryVO; |
| | |
| | | * @param pageComFlowerOrderListDTO |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "未配送-开始配送-订单列表", response = ComShopFlowerOrderPageVO.class) |
| | | @ApiOperation(value = "未配送-开始配送-订单列表", response = ConvenientElevatingPointOrderVO.class) |
| | | @PostMapping("pageNoDeliveryOrderList") |
| | | public R pageNoDeliveryOrderList(@RequestBody PageComFlowerOrderListDTO pageComFlowerOrderListDTO) { |
| | | return communityService.pageNoDeliveryOrderList(pageComFlowerOrderListDTO); |
| | |
| | | return communityService.refundOrderDetail(id); |
| | | } |
| | | |
| | | /** |
| | | * 清点商品 确认送达详情 |
| | | * @param pageComFlowerOrderListDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("pageOrderByDeliveryNo") |
| | | @ApiOperation(value = "清点商品 确认送达详情",response = ComShopFlowerOrderDeliveryNoListVO.class) |
| | | public R pageOrderByDeliveryNo(@RequestBody PageComFlowerOrderListDTO pageComFlowerOrderListDTO){ |
| | | return communityService.pageOrderByDeliveryNo(pageComFlowerOrderListDTO); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "订单id集合") |
| | | private List<Long> orderIds; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long storeId; |
| | | } |
| | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long storeId; |
| | | |
| | | @ApiModelProperty(value = "配送单号") |
| | | private String deliveryNo; |
| | | @ApiModelProperty(value = "配送单id") |
| | | private Long deliveryId; |
| | | |
| | | @ApiModelProperty(value = "用户id", hidden = true) |
| | | private Long userId; |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community.convenient; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @ClassName: ConvenientElevatingPointVO |
| | | * @Author: yh |
| | | * @Date: 2022/11/8 9:54 |
| | | * @Description: 便民服自提点 |
| | | */ |
| | | @Data |
| | | @ApiModel("开始配送/未配送详情") |
| | | public class ConvenientElevatingPointOrderVO { |
| | | |
| | | @ApiModelProperty("自提点信息") |
| | | private ConvenientElevatingPointVO convenientElevatingPointVO; |
| | | @ApiModelProperty("订单分页") |
| | | private Object iPage; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.shop; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel("商家配送单订单VO") |
| | | public class ComShopFlowerOrderDeliveryNoListVO { |
| | | |
| | | @ApiModelProperty(value = "配送单VO") |
| | | private ComShopFlowerOrderDeliveryVO comShopFlowerOrderDeliveryVO; |
| | | |
| | | @ApiModelProperty(value = "分页数据") |
| | | private Object page; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "退款金额") |
| | | private BigDecimal refundAmount; |
| | | |
| | | @ApiModelProperty(value = "规格名称") |
| | | private String goodsAttrName; |
| | | |
| | | @ApiModelProperty(value = "购买数量") |
| | | private Integer amount; |
| | | |
| | | @ApiModelProperty(value = "商品规格价格") |
| | | private BigDecimal goodsAttrPrice; |
| | | |
| | | @ApiModelProperty(value = "商品规格图") |
| | | private String goodsAttrPic; |
| | | } |
| | |
| | | @GetMapping("/shopFlower/refundOrderDetail") |
| | | R refundOrderDetail(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 清点商品 确认送达详情 |
| | | * @param pageComFlowerOrderListDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/shopFlower/pageOrderByDeliveryNo") |
| | | R pageOrderByDeliveryNo(@RequestBody PageComFlowerOrderListDTO pageComFlowerOrderListDTO); |
| | | |
| | | } |
| | |
| | | return comShopFlowerRefundOrderService.refundOrderDetail(id); |
| | | } |
| | | |
| | | /** |
| | | * 清点商品 确认送达详情 |
| | | * @param pageComFlowerOrderListDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("pageOrderByDeliveryNo") |
| | | public R pageOrderByDeliveryNo(@RequestBody PageComFlowerOrderListDTO pageComFlowerOrderListDTO){ |
| | | return comShopFlowerOrderService.pageOrderByDeliveryNo(pageComFlowerOrderListDTO); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientElevatingPointDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComFlowerOrderDeliveryDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComFlowerOrderListDTO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientElevatingPointVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.service_community.model.dos.ConvenientElevatingPointDO; |
| | |
| | | |
| | | /** |
| | | * 删除 |
| | | * |
| | | * @param pointId |
| | | * @param operator |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 分页查询未配送的自提点 |
| | | * |
| | | * @param page |
| | | * @param pageComFlowerOrderDeliveryDTO |
| | | * @return |
| | | */ |
| | | IPage<ConvenientElevatingPointVO> pageNoDelivery(@Param("page") Page page, @Param("pageComFlowerOrderDeliveryDTO") PageComFlowerOrderDeliveryDTO pageComFlowerOrderDeliveryDTO); |
| | | |
| | | ConvenientElevatingPointVO selectOrderNum(@Param("pageComFlowerOrderListDTO") PageComFlowerOrderListDTO pageComFlowerOrderListDTO); |
| | | } |
| | |
| | | */ |
| | | R selectOrderLineChart(Long storeId,Integer type); |
| | | |
| | | /** |
| | | * 清点商品 确认送达详情 |
| | | * @param pageComFlowerOrderListDTO |
| | | * @return |
| | | */ |
| | | R pageOrderByDeliveryNo(PageComFlowerOrderListDTO pageComFlowerOrderListDTO); |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.shop.PageComFlowerOrderDeliveryDTO; |
| | | import com.panzhihua.common.model.dtos.shop.PageComFlowerOrderListDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientElevatingPointOrderVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientElevatingPointVO; |
| | | import com.panzhihua.common.model.vos.shop.ComShopFlowerOrderDeliveryVO; |
| | | import com.panzhihua.common.model.vos.shop.ComShopFlowerOrderPageVO; |
| | |
| | | public R pageNoDeliveryOrderList(PageComFlowerOrderListDTO pageComFlowerOrderListDTO) { |
| | | Page page = new Page<>(pageComFlowerOrderListDTO.getPageNum(),pageComFlowerOrderListDTO.getPageSize()); |
| | | IPage<ComShopFlowerOrderPageVO> iPage = comShopFlowerOrderDAO.pageOrderListNoDelivery(page, pageComFlowerOrderListDTO); |
| | | return R.ok(iPage); |
| | | ConvenientElevatingPointVO convenientElevatingPointVO = convenientElevatingPointDAO.selectOrderNum(pageComFlowerOrderListDTO); |
| | | ConvenientElevatingPointOrderVO convenientElevatingPointOrderVO = new ConvenientElevatingPointOrderVO(); |
| | | convenientElevatingPointOrderVO.setConvenientElevatingPointVO(convenientElevatingPointVO); |
| | | convenientElevatingPointOrderVO.setIPage(iPage); |
| | | return R.ok(convenientElevatingPointOrderVO); |
| | | } |
| | | |
| | | |
| | |
| | | private ComShopFlowerEvaluateDAO comShopFlowerEvaluateDAO; |
| | | @Resource |
| | | private ComShopFlowerRefundOrderDAO comShopFlowerRefundOrderDAO; |
| | | @Resource |
| | | private ComShopFlowerOrderDeliveryDAO comShopFlowerOrderDeliveryDAO; |
| | | |
| | | |
| | | @Value("${hcMin.app.isTest}") |
| | |
| | | |
| | | @Override |
| | | public R pageOrderByStoreId(PageComFlowerOrderListDTO pageComFlowerOrderListDTO) { |
| | | |
| | | Page page = new Page(pageComFlowerOrderListDTO.getPageNum(), pageComFlowerOrderListDTO.getPageSize()); |
| | | |
| | | IPage<ComShopFlowerOrderStoreListVO> orderPageVOIPage = this.baseMapper.pageOrderByStoreId(page, pageComFlowerOrderListDTO); |
| | | |
| | | if (!orderPageVOIPage.getRecords().isEmpty()) { |
| | | orderPageVOIPage.getRecords().forEach(orderVo -> { |
| | | if (null!=orderVo.getPointId()){ |
| | |
| | | } |
| | | return R.ok(retMap); |
| | | } |
| | | |
| | | @Override |
| | | public R pageOrderByDeliveryNo(PageComFlowerOrderListDTO pageComFlowerOrderListDTO) { |
| | | Page page = new Page(pageComFlowerOrderListDTO.getPageNum(), pageComFlowerOrderListDTO.getPageSize()); |
| | | IPage<ComShopFlowerOrderStoreListVO> orderPageVOIPage = this.baseMapper.pageOrderByStoreId(page, pageComFlowerOrderListDTO); |
| | | ComShopFlowerOrderDeliveryNoListVO comShopFlowerOrderDeliveryNoListVO = new ComShopFlowerOrderDeliveryNoListVO(); |
| | | ComShopFlowerOrderDeliveryDO comShopFlowerOrderDeliveryDO = comShopFlowerOrderDeliveryDAO.selectById(pageComFlowerOrderListDTO.getDeliveryId()); |
| | | ComShopFlowerOrderDeliveryVO comShopFlowerOrderDeliveryVO = new ComShopFlowerOrderDeliveryVO(); |
| | | BeanUtils.copyProperties(comShopFlowerOrderDeliveryDO,comShopFlowerOrderDeliveryVO); |
| | | |
| | | Long pointId = comShopFlowerOrderDeliveryDO.getPointId(); |
| | | ConvenientElevatingPointDO convenientElevatingPointDO = convenientElevatingPointDAO.selectById(pointId); |
| | | ConvenientElevatingPointVO convenientElevatingPointVO = new ConvenientElevatingPointVO(); |
| | | BeanUtils.copyProperties(convenientElevatingPointDO,convenientElevatingPointVO); |
| | | comShopFlowerOrderDeliveryVO.setConvenientElevatingPointVO(convenientElevatingPointVO); |
| | | comShopFlowerOrderDeliveryNoListVO.setComShopFlowerOrderDeliveryVO(comShopFlowerOrderDeliveryVO); |
| | | comShopFlowerOrderDeliveryNoListVO.setPage(orderPageVOIPage); |
| | | return R.ok(comShopFlowerOrderDeliveryNoListVO); |
| | | } |
| | | } |
| | |
| | | GROUP BY ccep.id |
| | | |
| | | </select> |
| | | <select id="selectOrderNum" |
| | | resultType="com.panzhihua.common.model.vos.community.convenient.ConvenientElevatingPointVO"> |
| | | SELECT ccep.*,count(csfo.id) delivery_order_num ,sum(og.amount) delivery_goods_num |
| | | FROM com_convenient_elevating_point ccep |
| | | LEFT JOIN com_shop_flower_order csfo ON ccep.id = csfo.point_id |
| | | LEFT JOIN com_shop_flower_order_goods og ON og.order_id = csfo.id |
| | | WHERE |
| | | csfo.`status` = 1 |
| | | <if test="pageComFlowerOrderListDTO.storeId != null"> |
| | | and csfo.store_id = #{pageComFlowerOrderListDTO.storeId} |
| | | </if> |
| | | <if test="pageComFlowerOrderListDTO.pointId != null"> |
| | | and ccep.id = #{pageComFlowerOrderListDTO.pointId} |
| | | </if> |
| | | GROUP BY ccep.id |
| | | </select> |
| | | </mapper> |
| | |
| | | </select> |
| | | |
| | | <select id="pageOrderListNoDelivery" resultType="com.panzhihua.common.model.vos.shop.ComShopFlowerOrderPageVO"> |
| | | select id as orderId,order_no,store_id,`status`,pay_status,receiver_id,total_amount as |
| | | orderTotal,pay_amount,delivery_type,remark,create_at from com_shop_flower_order as cso where 1=1 and |
| | | select cso.id as orderId,cso.order_no,cso.store_id,cso.`status`,cso.pay_status,cso.receiver_id,cso.total_amount as |
| | | orderTotal,cso.pay_amount,cso.delivery_type,cso.remark,cso.create_at , g.goods_name,g.goods_attr_name,g.amount,g.goods_attr_price, |
| | | g.goods_attr_pic |
| | | from com_shop_flower_order as cso LEFT JOIN com_shop_flower_order_goods g ON cso.id = g.order_id |
| | | where 1=1 and |
| | | cso.delete_status = 1 and cso.status = 1 and cso.delivery_type = 1 |
| | | <if test='comOrderListDTO.pointId != null'> |
| | | AND cso.point_id = #{comOrderListDTO.pointId} |
| | |
| | | <if test="comOrderListDTO.storeId != null"> |
| | | and o.store_id = #{comOrderListDTO.storeId} |
| | | </if> |
| | | <if test="comOrderListDTO.deliveryNo != null and comOrderListDTO.deliveryNo != ''"> |
| | | and o.delivery_no = #{comOrderListDTO.deliveryNo} |
| | | <if test="comOrderListDTO.deliveryId != null"> |
| | | and o.delivery_id = #{comOrderListDTO.deliveryId} |
| | | </if> |
| | | |
| | | </select> |