微信小程序打卡接口

This commit is contained in:
xiezhijun
2021-03-22 15:51:55 +08:00
parent 636a808d3a
commit 1d66f7334a
6 changed files with 200 additions and 1 deletions

View File

@ -408,4 +408,16 @@
order by o.order_time desc
</select>
<!-- 根据客户信息查询客户的订单列表数量 -->
<select id="getOrderCountByCustomer" parameterType="SysCustomer" resultType="int">
SELECT count(so.order_id) FROM sys_order so LEFT JOIN sys_customer sc ON sc.id = so.cus_id AND sc.del_flag = 0
WHERE so.del_flag = 0
<if test="phone != null and phone != ''">
and sc.phone = #{phone}
</if>
<if test="id != null">
and sc.id = #{id}
</if>
</select>
</mapper>

View File

@ -78,7 +78,7 @@
</otherwise>
</choose>
</where>
order by log_time asc
order by log_time desc
</select>
<select id="selectSysWxUserLogById" parameterType="String" resultMap="SysWxUserLogResult">