@@ -33,9 +33,9 @@ public interface LogMapper extends BaseMapper {
...
@@ -33,9 +33,9 @@ public interface LogMapper extends BaseMapper {
intupdateByPrimaryKey(Logrecord);
intupdateByPrimaryKey(Logrecord);
@Select("<script> select \"max\"(s_user.username) as username,\"max\"(s_user.name) as name ,\"max\"(annotate_time) as finishTime ,person_unid as personUnid,count(*) as picNum, task_id as taskId "+
@Select("<script> select \"max\"(s_user.username) as username,s_user.name as name ,\"max\"(annotate_time) as finishTime ,person_unid as personUnid,count(*) as picNum, task_id as taskId "+
"from d_sub_task left join s_user on d_sub_task.annotator_id=s_user.id where pack_id in "+
"from d_sub_task left join s_user on d_sub_task.annotator_id=s_user.id where pack_id in "+
@@ -34,6 +34,9 @@ public interface SubTaskMapper extends BaseMapper {
...
@@ -34,6 +34,9 @@ public interface SubTaskMapper extends BaseMapper {
intupdateByPrimaryKey(SubTaskrecord);
intupdateByPrimaryKey(SubTaskrecord);
@Update("update d_sub_task set task_id=null where pack_id=#{packId}")
voidsetTaskIdNullByPackId(longpackId);
@Update("update d_sub_task set annotator_id = #{annotatorId} where id in (select id from d_sub_task where task_id= #{taskId} and annotator_id is null order by id OFFSET 0 limit #{count} )")
@Update("update d_sub_task set annotator_id = #{annotatorId} where id in (select id from d_sub_task where task_id= #{taskId} and annotator_id is null order by id OFFSET 0 limit #{count} )")