Merge remote-tracking branch 'hsayi/dev/feat/partner1.3_20230828' into dev/feat/partner1.3_20230828
This commit is contained in:
@@ -49,7 +49,7 @@ public class HyFollowTaskDAO {
|
||||
* @return
|
||||
*/
|
||||
public List<HyFollowTaskDO> getFollowTaskList(List<Long> followTaskIds){
|
||||
if(Objects.isNull(followTaskIds)){
|
||||
if(CollectionUtils.isEmpty(followTaskIds)){
|
||||
return null;
|
||||
}
|
||||
return hyFollowTaskMapper.getFollowTaskList(followTaskIds);
|
||||
@@ -90,6 +90,7 @@ public class HyFollowTaskDAO {
|
||||
HyFollowTaskDO update = new HyFollowTaskDO();
|
||||
update.setId(followTaskId);
|
||||
update.setTaskStatus(FollowTaskStatusEnum.FINISHED.getCode());
|
||||
update.setFinishTime(new Date());
|
||||
return updateFollowTask(update);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,13 +10,14 @@
|
||||
<result column="deadline" jdbcType="TIMESTAMP" property="deadline"/>
|
||||
<result column="communication_content" jdbcType="VARCHAR" property="communicationContent"/>
|
||||
<result column="task_status" jdbcType="TINYINT" property="taskStatus"/>
|
||||
<result column="finish_time" jdbcType="TIMESTAMP" property="finishTime"/>
|
||||
<result column="deleted" jdbcType="BIT" property="deleted"/>
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, partner_line_id, follow_user_id, task_title, communication_type, deadline, communication_content,
|
||||
task_status, deleted, create_time, update_time
|
||||
task_status, finish_time, deleted, create_time, update_time
|
||||
</sql>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into hy_follow_task
|
||||
@@ -42,6 +43,9 @@
|
||||
<if test="record.taskStatus != null">
|
||||
task_status,
|
||||
</if>
|
||||
<if test="record.finishTime != null">
|
||||
finish_time,
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
@@ -74,6 +78,9 @@
|
||||
<if test="record.taskStatus != null">
|
||||
#{record.taskStatus},
|
||||
</if>
|
||||
<if test="record.finishTime != null">
|
||||
#{record.finishTime},
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
#{record.deleted},
|
||||
</if>
|
||||
@@ -109,6 +116,9 @@
|
||||
<if test="record.taskStatus != null">
|
||||
task_status = #{record.taskStatus},
|
||||
</if>
|
||||
<if test="record.finishTime != null">
|
||||
finish_time = #{record.finishTime},
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
deleted = #{record.deleted},
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user