NewsLabelDictMapper.xml
699 Bytes
<?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.laowu.mapper.NewsLabelDictMapper">
<select id="lables" parameterType="string" resultType="com.laowu.vo.lables.LablesVO">
SELECT
t.id,
t.label,
t.create_date,
t.create_by,
t2.user_name
FROM
news_label_dict t
LEFT JOIN administer t2 ON t.create_by = t2.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
AND t.label LIKE concat('%', #{label}, '%')
</select>
</mapper>