| | |
| | | @TableField("app_coupon_id") |
| | | private Long appCouponId; |
| | | |
| | | @ApiModelProperty(value = "优惠金额") |
| | | @ApiModelProperty(value = "优惠券抵扣金额") |
| | | @TableField("coupon_discount_amount") |
| | | private BigDecimal couponDiscountAmount; |
| | | |
| | |
| | | @TableField("vip_discount_amount") |
| | | private BigDecimal vipDiscountAmount; |
| | | |
| | | @ApiModelProperty(value = "支付金额") |
| | | @ApiModelProperty(value = "支付金额(实付)") |
| | | @TableField("payment_amount") |
| | | private BigDecimal paymentAmount; |
| | | |
| | |
| | | package com.ruoyi.order.api.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.order.api.model.TChargingOrder; |
| | | import com.ruoyi.order.api.model.TOrderEvaluate; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel(value = "SiteDetailEvaluateVO对象",description = "站点详情订单评价") |
| | | public class ChargingOrderVO extends TChargingOrder { |
| | | @ApiModelProperty(value = "订单id") |
| | | private Long id; |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | @ApiModelProperty(value = "站点名称") |
| | | private String siteName; |
| | | @ApiModelProperty(value = "充电终端名称 桩+枪") |
| | |
| | | private Integer count; |
| | | @ApiModelProperty(value = "1明星充电 2快电 3新电途") |
| | | private Integer orderSource; |
| | | |
| | | } |
| | |
| | | private BigDecimal vipActivity; |
| | | @ApiModelProperty(value = "赠送会员") |
| | | private BigDecimal grantVip; |
| | | |
| | | } |
| | |
| | | List<TChargingOrder> getNoInvoicedOrder(@Param("appUserId") Long appUserId, @Param("month") String month, |
| | | @Param("pageCurr") Integer pageCurr, @Param("pageSize") Integer pageSize); |
| | | |
| | | List<ChargingOrderVO> chargingOrder(@Param("pageInfo") PageInfo<ChargingOrderVO> pageInfo, ChargingOrderQuery dto, String startTime1, String startTime2, String endTime1, String endTime11); |
| | | List<ChargingOrderVO> chargingOrder(@Param("pageInfo") PageInfo<ChargingOrderVO> pageInfo, @Param("req") ChargingOrderQuery dto, @Param("startTime1")String startTime1, @Param("startTime2")String startTime2,@Param("endTime1") String endTime1,@Param("endTime2") String endTime11); |
| | | |
| | | } |
| | |
| | | limit #{pageCurr}, #{pageSize} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="getNoInvoicedOrder" resultMap="BaseResultMap"> |
| | | select * from t_charging_order where del_flag = 0 and app_user_id = #{appUserId} |
| | | <if test="null != month and '' != month"> |
| | |
| | | limit #{pageCurr}, #{pageSize} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="chargingOrder" resultType="com.ruoyi.order.api.vo.ChargingOrderVO"> |
| | | select t1.* |
| | | from t_charging_order t1 |
| | | |
| | | </select> |
| | | </mapper> |
| | |
| | | <if test="null != req.code and req.code!=''"> |
| | | and t1.code LIKE CONCAT('%',#{req.code},'%') |
| | | </if> |
| | | <if test="req.type != null and req.type != '' and req.type == 1"> |
| | | <if test="req.type != null and ·req.type != '' and req.type == 1"> |
| | | and t1.coupon_discount_amount != null and t1.coupon_discount_amount != 0 |
| | | </if> |
| | | <if test="req.type != null and req.type != '' and req.type == 2"> |