New file |
| | |
| | | package cn.lili.controller.lmk; |
| | | |
| | | |
| | | import cn.lili.base.Result; |
| | | import cn.lili.modules.lmk.domain.query.CouponVirtualQuery; |
| | | import cn.lili.modules.lmk.service.CouponVirtualService; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * lmk-shop-java |
| | | * 虚拟优惠卷商品 |
| | | * |
| | | * @author : zxl |
| | | * @date : 2025-09-12 09:41 |
| | | **/ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/buyer/lmk/couponVirtual") |
| | | public class CouponVirtualController { |
| | | |
| | | private final CouponVirtualService couponVirtualService; |
| | | |
| | | @GetMapping() |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | public Result getPage(CouponVirtualQuery query){ |
| | | //更具订单id查询 |
| | | return couponVirtualService.page(query); |
| | | } |
| | | |
| | | } |
| | |
| | | @Data |
| | | @ApiModel(value = "CouponVirtual查询参数", description = "虚拟商品优惠卷查询参数") |
| | | public class CouponVirtualQuery extends AbsQuery { |
| | | private String orderId; |
| | | } |
| | | |
| | |
| | | private String claimStatus; |
| | | |
| | | |
| | | private Boolean deleteFlag; |
| | | |
| | | public static CouponVirtualVO getVoByEntity(@NonNull CouponVirtual entity, CouponVirtualVO vo) { |
| | | if(vo == null) { |
| | | vo = new CouponVirtualVO(); |
| | |
| | | @Data |
| | | public class OrderSimpleXcxVO { |
| | | |
| | | private String id; |
| | | |
| | | @ApiModelProperty("sn") |
| | | private String sn; |
| | | |
| | |
| | | |
| | | @ApiModelProperty(value = "卖家订单备注") |
| | | private String sellerRemark; |
| | | |
| | | @ApiModelProperty(value = "是否是礼品卡") |
| | | private String couponFlag; |
| | | |
| | | private int i = 0; |
| | | public List<OrderItemVO> initOrderItems() { |
| | | if (CharSequenceUtil.isEmpty(groupGoodsId)) { |
| | |
| | | * @param queryWrapper 查询条件 |
| | | * @return 简短订单分页 |
| | | */ |
| | | @Select("select o.sn,o.flow_price,o.create_time,o.order_status,o.pay_status,o.payment_method,o.payment_time,o.member_name,o.store_name as " + |
| | | "store_name,o.store_id as store_id,o.client_type,o.order_type,o.deliver_status,o.order_promotion_type,o.seller_remark " + |
| | | @Select("select o.id,o.sn,o.flow_price,o.create_time,o.order_status,o.pay_status,o.payment_method,o.payment_time,o.member_name,o.store_name as " + |
| | | "store_name,o.store_id as store_id,o.client_type,o.order_type,o.deliver_status,o.order_promotion_type,o.seller_remark,o.coupon_flag " + |
| | | ",GROUP_CONCAT(oi.goods_id) as group_goods_id," + |
| | | " GROUP_CONCAT(oi.sku_id) as group_sku_id," + |
| | | " GROUP_CONCAT(oi.num) as group_num" + |
| | |
| | | FROM |
| | | lmk_coupon_virtual LCV |
| | | WHERE |
| | | LCV.deleted = 0 |
| | | LCV.delete_flag = 0 |
| | | <if test="query.orderId != null and query.orderId !=''"> |
| | | AND LCV.order_id = #{query.orderId} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |