Browse Source

添加单引号,修改拼写错误

master
xyiege 3 years ago
parent
commit
af1e7447e3
  1. 8
      src/main/resources/mapper/szwh/OrderMapper.xml

8
src/main/resources/mapper/szwh/OrderMapper.xml

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

Loading…
Cancel
Save