sql修改

This commit is contained in:
zhangzhicheng 2024-08-20 16:29:24 +08:00
parent e33337b9c1
commit f7fb4a259b

View File

@ -37,12 +37,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sys_user s ON e.user_id = s.user_id sys_user s ON e.user_id = s.user_id
<where> <where>
<if test="nickName != null and nickName != ''"> <if test="nickName != null and nickName != ''">
AND nick_name like AND s.nick_name like
CONCAT('%', #{nickName}, '%') CONCAT('%', #{nickName}, '%')
</if> </if>
</where> </where>
GROUP BY GROUP BY
e.user_name, s.nick_name; e.user_id,e.user_name, s.nick_name
</select> </select>
<select id="selectStatisticEquipmentList" resultType="org.dromara.web.domain.vo.EqEquipmentStatisticsVo"> <select id="selectStatisticEquipmentList" resultType="org.dromara.web.domain.vo.EqEquipmentStatisticsVo">