Ver código fonte

修改CashOutQueryDTO注释

codingliang 2 anos atrás
pai
commit
a540354f76

+ 3 - 1
src/main/java/com/sqx/modules/pay/controller/query/CashOutQueryDTO.java

@@ -21,6 +21,8 @@ public class CashOutQueryDTO extends PageQuery {
     private String zhifubaoName;
     @ApiModelProperty("支付宝账号")
     private String zhifubao;
+    @ApiModelProperty("店铺名称")
+    private String shopName;
     @ApiModelProperty("用户id")
     private Long userId;
     @ApiModelProperty("提现状态")
@@ -34,5 +36,5 @@ public class CashOutQueryDTO extends PageQuery {
     @ApiModelProperty("查询开始时间")
     private String startTime;
     @ApiModelProperty("查询结束时间")
-    private String endTim;
+    private String endTime;
 }

+ 4 - 5
src/main/resources/mapper/pay/CashDao.xml

@@ -243,17 +243,17 @@
             <if test="params.type != null and params.type != '' and params.type != 'null'">
                 and co.type = #{params.type}
             </if>
-            <if test="params.state != null and params.state != '' and params.state != 'null'">
+            <if test="params.state != null">
                 and co.state = #{params.state}
             </if>
             <if test="params.phone != null and params.phone != '' and params.phone != 'null'">
                 and co.phone like concat('%',#{params.phone},'%')
             </if>
-            <if test="params.classify == '1' || params.classify == '5'">
+            <if test="params.classify == 1 || params.classify == 5">
                 and co.classify = #{params.classify}
             </if>
-            <if test="params.classify == '2'">
-                and co.classify in ("2", "3", "4")
+            <if test="params.classify == 2">
+                and co.classify in (2, 3, 4)
             </if>
             <if test="params.startTime != null and params.startTime != '' and params.startTime != 'null'">
                 and co.create_at <![CDATA[ >= ]]> #{params.startTime}
@@ -264,7 +264,6 @@
             <if test="params.shopName != null and params.shopName != '' and params.shopName != 'null'">
                 and gh.shop_name like concat('%',#{params.shopName},'%')
             </if>
-
             <if test="params.bankCardNo != null and params.bankCardNo != '' and params.bankCardNo != 'null'">
                 and co.bank_card_no = #{params.bankCardNo}
             </if>