|
@@ -17,6 +17,7 @@
|
|
|
<result column="delay_time" property="delayTime" />
|
|
<result column="delay_time" property="delayTime" />
|
|
|
<result column="state" property="state" />
|
|
<result column="state" property="state" />
|
|
|
<result column="publish_id" property="publishId" />
|
|
<result column="publish_id" property="publishId" />
|
|
|
|
|
+ <result column="content" property="content" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<resultMap id="BaseResultMapVO" type="com.hssx.pcbms.entity.vo.TaskDTO">
|
|
<resultMap id="BaseResultMapVO" type="com.hssx.pcbms.entity.vo.TaskDTO">
|
|
|
<id column="id" property="id" />
|
|
<id column="id" property="id" />
|
|
@@ -35,6 +36,7 @@
|
|
|
<result column="publishName" property="publishName" />
|
|
<result column="publishName" property="publishName" />
|
|
|
<result column="tag_name" property="tagName" />
|
|
<result column="tag_name" property="tagName" />
|
|
|
<result column="recipient" property="recipient" />
|
|
<result column="recipient" property="recipient" />
|
|
|
|
|
+ <result column="content" property="content" />
|
|
|
<collection property="participantsVOS" select="selectPaticaterByTaskId" column="{taskId=id,}"
|
|
<collection property="participantsVOS" select="selectPaticaterByTaskId" column="{taskId=id,}"
|
|
|
ofType="com.hssx.pcbms.entity.vo.TaskParticipantsVO"/>
|
|
ofType="com.hssx.pcbms.entity.vo.TaskParticipantsVO"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -48,21 +50,21 @@
|
|
|
select
|
|
select
|
|
|
t.id, t.name, t.code, t.plan_time, t.work_load, t.recipient_id,
|
|
t.id, t.name, t.code, t.plan_time, t.work_load, t.recipient_id,
|
|
|
t.payer, t.payee, t.fee, t.tag_id, t.delay_time, t.state, t.publish_id
|
|
t.payer, t.payee, t.fee, t.tag_id, t.delay_time, t.state, t.publish_id
|
|
|
- u.name publishName,tt.name tag_name,ru.name recipient
|
|
|
|
|
- from
|
|
|
|
|
- task t
|
|
|
|
|
- left join user u
|
|
|
|
|
- on t.publish_id = u.id
|
|
|
|
|
- left join task_tags tt
|
|
|
|
|
- on tt.id = t.tag_id
|
|
|
|
|
- left join user ru
|
|
|
|
|
- on t.recipient_id = ru.id
|
|
|
|
|
|
|
+ u.name publishName,tt.name tag_name,ru.name recipient,t.content
|
|
|
|
|
+ from
|
|
|
|
|
+ task t
|
|
|
|
|
+ left join user u
|
|
|
|
|
+ on t.publish_id = u.id
|
|
|
|
|
+ left join task_tags tt
|
|
|
|
|
+ on tt.id = t.tag_id
|
|
|
|
|
+ left join user ru
|
|
|
|
|
+ on t.recipient_id = ru.id
|
|
|
<where>
|
|
<where>
|
|
|
<if test="taskVO.keyName != null and taskVO.keyName != ''">
|
|
<if test="taskVO.keyName != null and taskVO.keyName != ''">
|
|
|
and name like concat('%',#{taskVO.keyName},'%')
|
|
and name like concat('%',#{taskVO.keyName},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="taskVO.startTime != null and taskVO.startTime != ''and taskVO.endTime != null and taskVO.endTime != ''">
|
|
<if test="taskVO.startTime != null and taskVO.startTime != ''and taskVO.endTime != null and taskVO.endTime != ''">
|
|
|
- and plan_time between #{taskVO.startTime} and #{taskVO.endTime}
|
|
|
|
|
|
|
+ and plan_time between #{taskVO.startTime} and #{taskVO.endTime}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="taskVO.uid != null">
|
|
<if test="taskVO.uid != null">
|
|
|
and publish_id =#{taskVO.uid}
|
|
and publish_id =#{taskVO.uid}
|
|
@@ -114,4 +116,23 @@
|
|
|
on tp.user_id = u.id
|
|
on tp.user_id = u.id
|
|
|
where tp.task_id = #{id}
|
|
where tp.task_id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="getDetailById" resultMap="BaseResultMapVO">
|
|
|
|
|
+ select
|
|
|
|
|
+ t.id, t.name, t.code, t.plan_time, t.work_load, t.recipient_id,
|
|
|
|
|
+ t.payer, t.payee, t.fee, t.tag_id, t.delay_time, t.state, t.publish_id
|
|
|
|
|
+ u.name publishName,tt.name tag_name,ru.name recipient,t.content
|
|
|
|
|
+ from
|
|
|
|
|
+ task t
|
|
|
|
|
+ left join user u
|
|
|
|
|
+ on t.publish_id = u.id
|
|
|
|
|
+ left join task_tags tt
|
|
|
|
|
+ on tt.id = t.tag_id
|
|
|
|
|
+ left join user ru
|
|
|
|
|
+ on t.recipient_id = ru.id
|
|
|
|
|
+ <where>
|
|
|
|
|
+ t.id = #{taskVO.id}
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
</mapper>
|
|
</mapper>
|