Browse Source

用户收益明细

master
张彭杰 1 year ago
parent
commit
821404b99c
2 changed files with 7 additions and 0 deletions
  1. 3
      dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/order/user/request/UserPageOrderByOperatorQueryParam.java
  2. 4
      dating-agency-mall-server/src/main/resources/mapper/order/WalletAccountAssociateOrderRecordDao.xml

3
dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/order/user/request/UserPageOrderByOperatorQueryParam.java

@ -12,6 +12,9 @@ public class UserPageOrderByOperatorQueryParam {
@ApiModelProperty("订单号") @ApiModelProperty("订单号")
private String orderCode; private String orderCode;
@ApiModelProperty("名称")
private String name;
@ApiModelProperty("订单开始时间") @ApiModelProperty("订单开始时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime orderTimeFrom; private LocalDateTime orderTimeFrom;

4
dating-agency-mall-server/src/main/resources/mapper/order/WalletAccountAssociateOrderRecordDao.xml

@ -13,6 +13,7 @@
daa.tid as userPhone, daa.tid as userPhone,
dao.mi_id, dao.mi_id,
IFNULL(dami.`name`,dami.nick_name) as miName, IFNULL(dami.`name`,dami.nick_name) as miName,
dao.name,
dao.settlement_amount dao.settlement_amount
from da_order as dao from da_order as dao
LEFT JOIN da_order_item as doi on doi.order_id=dao.id and doi.is_delete=0 LEFT JOIN da_order_item as doi on doi.order_id=dao.id and doi.is_delete=0
@ -22,6 +23,9 @@
<if test="queryParam.orderCode != null and queryParam.orderCode != '' "> <if test="queryParam.orderCode != null and queryParam.orderCode != '' ">
AND dao.order_code LIKE CONCAT('%', TRIM(#{queryParam.orderCode}), '%') AND dao.order_code LIKE CONCAT('%', TRIM(#{queryParam.orderCode}), '%')
</if> </if>
<if test="queryParam.name != null and queryParam.name != '' ">
AND dao.name LIKE CONCAT('%', TRIM(#{queryParam.name}), '%')
</if>
<if test="queryParam.orderTimeFrom != null and queryParam.orderTimeTo != null"> <if test="queryParam.orderTimeFrom != null and queryParam.orderTimeTo != null">
and dao.create_time BETWEEN #{queryParam.orderTimeFrom} and #{queryParam.orderTimeTo} and dao.create_time BETWEEN #{queryParam.orderTimeFrom} and #{queryParam.orderTimeTo}
</if> </if>

Loading…
Cancel
Save