|
@@ -18,7 +18,9 @@
|
|
|
<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" />
|
|
<result column="content" property="content" />
|
|
|
|
|
+ <result column="indate" property="indate" />
|
|
|
</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" />
|
|
|
<result column="name" property="name" />
|
|
<result column="name" property="name" />
|
|
@@ -37,7 +39,7 @@
|
|
|
<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" />
|
|
<result column="content" property="content" />
|
|
|
- <collection property="participantsVOS" select="selectPaticaterByTaskId" column="{taskId=id,}"
|
|
|
|
|
|
|
+ <collection property="participantsVOS" select="selectPaticaterByTaskId" column="id"
|
|
|
ofType="com.hssx.pcbms.entity.vo.TaskParticipantsVO"/>
|
|
ofType="com.hssx.pcbms.entity.vo.TaskParticipantsVO"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
@@ -49,7 +51,7 @@
|
|
|
<select id="selectListByCondition" resultMap="BaseResultMapVO">
|
|
<select id="selectListByCondition" resultMap="BaseResultMapVO">
|
|
|
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,t.content
|
|
u.name publishName,tt.name tag_name,ru.name recipient,t.content
|
|
|
from
|
|
from
|
|
|
task t
|
|
task t
|
|
@@ -72,13 +74,16 @@
|
|
|
<if test="taskVO.tagId != null and taskVO.tagId != ''">
|
|
<if test="taskVO.tagId != null and taskVO.tagId != ''">
|
|
|
and t.tag_id = #{taskVO.tagId}
|
|
and t.tag_id = #{taskVO.tagId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="taskVO.state != null">
|
|
|
|
|
+ and t.state = #{taskVO.state}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
- order by t.id desc
|
|
|
|
|
|
|
+ order by t.indate desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectListByTaskIds" resultMap="BaseResultMapVO">
|
|
<select id="selectListByTaskIds" resultMap="BaseResultMapVO">
|
|
|
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
|
|
u.name publishName,tt.name tag_name,ru.name recipient
|
|
|
from
|
|
from
|
|
|
task t
|
|
task t
|
|
@@ -104,8 +109,11 @@
|
|
|
<if test="taskVO.tagId != null and taskVO.tagId != ''">
|
|
<if test="taskVO.tagId != null and taskVO.tagId != ''">
|
|
|
and t.tag_id = #{taskVO.tagId}
|
|
and t.tag_id = #{taskVO.tagId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="taskVO.state != null">
|
|
|
|
|
+ and t.state = #{taskVO.state}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
- order by t.id desc
|
|
|
|
|
|
|
+ order by t.indate desc
|
|
|
</select>
|
|
</select>
|
|
|
<resultMap id="PaticaterMapVO" type="com.hssx.pcbms.entity.vo.TaskParticipantsVO">
|
|
<resultMap id="PaticaterMapVO" type="com.hssx.pcbms.entity.vo.TaskParticipantsVO">
|
|
|
<id column="id" property="id" />
|
|
<id column="id" property="id" />
|
|
@@ -122,11 +130,11 @@
|
|
|
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 id="getDetailById" resultMap="BaseResultMapVO">
|
|
|
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,t.content
|
|
u.name publishName,tt.name tag_name,ru.name recipient,t.content
|
|
|
from
|
|
from
|
|
|
task t
|
|
task t
|