手机端查询人员数据

This commit is contained in:
yuezhihang
2021-12-13 17:49:33 +08:00
parent 301ba42d65
commit 6db9220082
6 changed files with 12 additions and 8 deletions
@@ -794,13 +794,15 @@
</select>
<select id="getUserByName" resultType="com.adc.da.sys.entity.UserPhoneDTO">
select USID as usId ,concat( UNAME,concat(concat('(',ts_user.USID),')')) as userName from ts_user
select USID as usId ,concat( UNAME,concat(concat('(',ts_user.USID),')')) as userName ,
(select count(USID) from ts_user ) as total
from ts_user
where 1=1
<if test="name != null and name != '' ">
ts_user.UNAME like concat(concat('%',#{name}),'%') or
ts_user.USID like concat(concat('%',#{name}),'%')
</if>
limit ${(page-1)*20},${page*20}
</select>
</mapper>