Browse Source

任务查询增加按技能标签查找

master
陈裕财 5 years ago
parent
commit
7c71c727c3
  1. 7
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

7
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

@ -132,6 +132,13 @@
<if test="myFocus != null and myFocus != ''">
and exists ( select 1 from XM.xm_my_focus f where f.userid=#{userid} and f.project_id=res.project_id and f.task_id=res.id )
</if>
<if test="skillIds != null and skillIds != ''">
and exists ( select 1 from XM.xm_task_skill f where f.task_id=res.id and f.task_skill_id in
<foreach collection="skillIds" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
)
</if>
</where>
order by res.sort_level asc
</select>

Loading…
Cancel
Save