Files
gitea-test/target/classes/cn/wujiangbo/mapper/app/AppSuggestionMapper.xml
2025-12-30 11:02:57 +08:00

17 lines
680 B
XML

<?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="cn.wujiangbo.mapper.app.AppSuggestionMapper">
<select id="selectMySqlPage" resultType="cn.wujiangbo.domain.app.AppSuggestion">
select t1.*, t2.real_name as createUserName
from app_suggestion t1
left join sys_user t2 on t1.user_id = t2.id
<where>
<if test="query.keyword != null and query.keyword != '' ">
and t1.complaint like concat('%', #{query.keyword}, '%')
</if>
</where>
order by t1.id desc
</select>
</mapper>