陈裕财 4 years ago
parent
commit
bc6b670f53
  1. 3
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml
  2. 4
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml

3
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml

@ -16,6 +16,9 @@
( #{item}) ( #{item})
</foreach> </foreach>
</if> </if>
<if test="pidPathsLike">
and res.pid_paths like concat(#{pidPathsLike},'%')
</if>
<if test=" pidPathsList != null"> and <if test=" pidPathsList != null"> and
<foreach collection="pidPathsList" item="item" index="index" open="(" separator=" or " close=")" > <foreach collection="pidPathsList" item="item" index="index" open="(" separator=" or " close=")" >
#{item} like concat(res.pid_paths,'%') #{item} like concat(res.pid_paths,'%')

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

@ -30,7 +30,9 @@
<if test=" createTimeStart !=null "> and res.create_time &gt; #{createTimeStart} </if> <if test=" createTimeStart !=null "> and res.create_time &gt; #{createTimeStart} </if>
<if test=" createTimeEnd !=null "> and res.create_time &lt; #{createTimeEnd} </if> <if test=" createTimeEnd !=null "> and res.create_time &lt; #{createTimeEnd} </if>
<if test="parent != null and parent != ''"> and (res.parent_taskid = '' or res.parent_taskid IS NULL)</if> <if test="parent != null and parent != ''"> and (res.parent_taskid = '' or res.parent_taskid IS NULL)</if>
<if test="pidPathsLike">
and res.pid_paths like concat(#{pidPathsLike},'%')
</if>
<!-- 我参与的--> <!-- 我参与的-->
<if test=" (myExecuserStatus != null and myExecuserStatus) != '' or ( isMy !=null and isMy !='' )"> <if test=" (myExecuserStatus != null and myExecuserStatus) != '' or ( isMy !=null and isMy !='' )">
and exists ( select 1 from xm_task_execuser exe where exe.task_id=res.id and exe.userid=#{userid} and exists ( select 1 from xm_task_execuser exe where exe.task_id=res.id and exe.userid=#{userid}

Loading…
Cancel
Save