rtos-mini-service4/mapper/target/classes/mappers/admin/FeedbackAdminMapper.xml

34 lines
1.0 KiB
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="com.haitongauto.mapper.admin.FeedbackAdminMapper">
<!---->
<select id="feedbackListForCondition" resultType="com.haitongauto.models.pojo.Feedback">
select
id,
users_id,
nike_name,
feedback_info,
pictures,
tel_number,
contact_info,
create_time,
update_time,
is_del
from applet_feedback
where is_del=0
<if test="users_id!=null and users_id!=''">
and users_id =#{users_id}
</if>
<if test="linkTel!=null and linkTel!=''">
and (tel_number like concat('%',#{linkTel},'%') or contact_info like concat('%',#{linkTel},'%'))
</if>
<if test="nikeName!=null and nikeName!=''">
and nike_name like concat('%',#{nikeName},'%')
</if>
order by create_time desc
</select>
</mapper>