Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
6c0c5d1286
  1. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml
  2. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupMapper.xml

@ -11,7 +11,7 @@
</foreach> </foreach>
</if> </if>
<if test="groupNameKey != null and groupNameKey !='' "> and res.group_name like concat('%',#{groupNameKey},'%') </if> <if test="groupNameKey != null and groupNameKey !='' "> and res.group_name like concat('%',#{groupNameKey},'%') </if>
<if test="mngUsernamekey != null and mngUsernamekey !='' "> and (res.leader_username like concat('%',#{mngUsernamekey},'%') or res.ass_username like like concat('%',#{mngUsernamekey},'%')) </if>
<if test="mngUsernamekey != null and mngUsernamekey !='' "> and (res.leader_username like concat('%',#{mngUsernamekey},'%') or res.ass_username like concat('%',#{mngUsernamekey},'%')) </if>
<if test="groupUsernamekey != null and groupUsernamekey !='' "> and <if test="groupUsernamekey != null and groupUsernamekey !='' "> and
exists ( select 1 from xm_project_group_user gu where gu.group_id=res.id and gu.username like concat('%',#{groupUsernamekey},'%')) exists ( select 1 from xm_project_group_user gu where gu.group_id=res.id and gu.username like concat('%',#{groupUsernamekey},'%'))
</if> </if>

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectGroupUserMapper.xml

@ -13,7 +13,7 @@
</if> </if>
<if test="groupNameKey != null and groupNameKey !='' "> and g.group_name like concat('%',#{groupNameKey},'%') </if> <if test="groupNameKey != null and groupNameKey !='' "> and g.group_name like concat('%',#{groupNameKey},'%') </if>
<if test="mngUsernamekey != null and mngUsernamekey !='' "> and (g.leader_username like concat('%',#{mngUsernamekey},'%') or g.ass_username like like concat('%',#{mngUsernamekey},'%')) </if>
<if test="mngUsernamekey != null and mngUsernamekey !='' "> and (g.leader_username like concat('%',#{mngUsernamekey},'%') or g.ass_username like concat('%',#{mngUsernamekey},'%')) </if>
<if test="groupUsernamekey != null and groupUsernamekey !='' "> and res.username like concat('%',#{groupUsernamekey},'%') </if> <if test="groupUsernamekey != null and groupUsernamekey !='' "> and res.username like concat('%',#{groupUsernamekey},'%') </if>
</sql> </sql>
<delete id="deleteByGroupId" parameterType="com.xm.core.entity.XmProjectGroupUser"> <delete id="deleteByGroupId" parameterType="com.xm.core.entity.XmProjectGroupUser">

Loading…
Cancel
Save