Files
zentao/src/main/resources/mapper/ZtKanbanlaneMapper.xml
2024-11-29 11:03:13 +08:00

41 lines
1.6 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.sa.zentao.mapper.ZtKanbanlaneMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.ZtKanbanlane">
<result column="id" property="id"/>
<result column="execution" property="execution"/>
<result column="type" property="type"/>
<result column="region" property="region"/>
<result column="group" property="group"/>
<result column="groupby" property="groupby"/>
<result column="extra" property="extra"/>
<result column="name" property="name"/>
<result column="color" property="color"/>
<result column="order" property="order"/>
<result column="lastEditedTime" property="lasteditedtime"/>
<result column="deleted" property="deleted"/>
</resultMap>
<select id="getZtKanbanlane" resultType="com.sa.zentao.entity.ZtKanbancell">
SELECT cell.* from zt_kanbanlane lane ,zt_kanbancolumn cmn ,zt_kanbancell cell
WHERE lane.id = cell.lane
and cmn.id = cell.`column`
and lane.type = #{type}
and cell.kanban=#{id}
and cmn.type= #{status}
</select>
<select id="getZtKanbanlaneList" resultType="com.sa.zentao.entity.ZtKanbancell">
SELECT cell.* from zt_kanbanlane lane ,zt_kanbancolumn cmn ,zt_kanbancell cell
WHERE lane.id = cell.lane
and cmn.id = cell.`column`
and lane.type = #{type}
and cell.kanban=#{id}
</select>
</mapper>