|
|
|
@ -70,7 +70,7 @@ |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='id' and k!='charges_type' |
|
|
|
and k!='buyin' and k!='bcin' and k!='name' and k!='createtime' |
|
|
|
and k!='goods_name' and k!='goods_entrust' and k!=paymenttime"> |
|
|
|
and k!='goods_name' and k!='goods_entrust' and k!='paymenttime'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='id'"> |
|
|
|
@ -95,14 +95,14 @@ |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
<!-- paymenttime --> |
|
|
|
<if test="k==paymenttime"> |
|
|
|
<if test="k=='paymenttime'"> |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by 'id' DESC |
|
|
|
limit #{startRs},#{pageSize} |
|
|
|
order by id DESC; |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 根据不同状态代码统计 --> |
|
|
|
@ -175,7 +175,7 @@ |
|
|
|
SELECT COALESCE(SUM(${field}),0) |
|
|
|
FROM `order` |
|
|
|
WHERE pay_status=2 |
|
|
|
AND (paymenttime BETWEEN CAST(#{startdt} AS DATE) AND CAST(#{enddt} AS DATE)) |
|
|
|
AND ('paymenttime' BETWEEN CAST(#{startdt} AS DATE) AND CAST(#{enddt} AS DATE)) |
|
|
|
</select> |
|
|
|
|
|
|
|
<!--新增用户--> |
|
|
|
|