You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
999 B

<?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.ccsens.tall.persist.dao.SysLabelDao">
<select id="selectLabelByUserId" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.vo.LabelVo$SelectLabel">
select * from t_sys_label
where
rec_status = 0
and
user_id = #{userId}
</select>
<select id="selectLabelByProjectId" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.vo.LabelVo$SelectLabel">
select
l.id as id,
l.`name` as `name`,
l.code as code,
l.color as color,
l.description as description,
l.`level` as `level`
from
t_sys_label l join t_sys_project_label p on l.id = p.label_id
where
p.rec_status = 0
and
l.rec_status = 0
and
p.project_id = #{projectId}
</select>
</mapper>