Blame view

NewsLabelDictMapper.xml 699 Bytes
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?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>