2
0

feat: 添加客户平台-账单管理接口

This commit is contained in:
caiyuchao
2025-01-03 16:26:35 +08:00
parent f2b9497a00
commit eea575213a
18 changed files with 380 additions and 8 deletions

View File

@@ -27,8 +27,23 @@
cdr.del_flag = 0
AND ch.id is not null
AND cdr.user_id is not null
<if test="userId != null and userId != ''">
AND cdr.user_id = #{userId}
<if test="item.userId != null and item.userId != ''">
AND cdr.user_id = #{item.userId}
</if>
<if test="item.userName != null and item.userName != ''">
AND u.user_name like concat('%', #{item.userName}, '%')
</if>
<if test="item.clientName != null and item.clientName != ''">
AND c.client_name like concat('%', #{item.clientName}, '%')
</if>
<if test="item.clientMac != null and item.clientMac != ''">
AND c.client_mac like concat('%', #{item.clientMac}, '%')
</if>
<if test="item.startTimeS != null and item.startTimeE != null">
AND ch.start_time between #{item.startTimeS} and #{item.startTimeE}
</if>
<if test="item.endTimeS != null and item.endTimeE != null">
AND ch.end_time between #{item.endTimeS} and #{item.endTimeE}
</if>
ORDER BY
ch.start_time DESC

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.wfc.system.mapper.UOrderMapper">
</mapper>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.wfc.system.mapper.UUserMapper">
</mapper>