小程序接口优化

This commit is contained in:
xiezhijun
2021-07-16 14:22:13 +08:00
parent ac08473149
commit bf948fc88e
6 changed files with 38 additions and 5 deletions

View File

@ -320,4 +320,9 @@
</choose>
</foreach>
</select>
<!-- 根据客户ID查询总共提交反馈意见数量 -->
<select id="getServicesTopicNum" parameterType="Long" resultType="int">
select count(1) from sys_services_topic where del_flag = 0 and uid = #{cusId}
</select>
</mapper>

View File

@ -364,9 +364,9 @@
where wxlog.del_flag = 0 and wxinfo.cus_id = #{customerId}
</select>
<!-- 查询打卡社区总共几个人在打卡 -->
<!-- 查询当天打卡社区总共几个人在打卡 -->
<select id="getPunchCustomerTotalNum" resultType="int">
select count(1) from (select openid from sys_wx_user_log wxlog where wxlog.del_flag = 0 group by openid) num_table
select count(wxlog.openid) from sys_wx_user_log wxlog where wxlog.del_flag = 0 and to_days(log_time) = to_days(now())
</select>