微信小程序打卡接口
This commit is contained in:
@ -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>
|
@ -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">
|
||||
|
Reference in New Issue
Block a user