feat:去除空域的userid字段
This commit is contained in:
parent
cec154a8b2
commit
993967bd6d
|
|
@ -8,7 +8,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<resultMap id="AirlineAreaGroupResult" type="com.ruoyi.airline.mapper.entity.AirlineAreaGroupEntity">
|
||||
<id property="groupId" column="group_id" />
|
||||
<result property="groupName" column="group_name" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
|
|
@ -26,9 +25,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="groupId != null">
|
||||
and group_id != #{groupId}
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 删除分组(软删除) -->
|
||||
|
|
@ -38,9 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
deleted_by = #{deletedBy},
|
||||
deleted_time = now()
|
||||
where group_id = #{groupId}
|
||||
<if test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
</update>
|
||||
|
||||
<!-- 更新分组 -->
|
||||
|
|
@ -51,38 +44,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
update_time = now()
|
||||
where group_id = #{groupId}
|
||||
and del_flag = 0
|
||||
<if test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
</update>
|
||||
|
||||
<!-- 插入分组 -->
|
||||
<insert id="insertGroup" parameterType="com.ruoyi.airline.mapper.entity.AirlineAreaGroupEntity">
|
||||
insert into airline_area_group (group_name, user_id, create_by, create_time, update_by, update_time, del_flag)
|
||||
values (#{groupName}, #{userId}, #{createBy}, now(), #{updateBy}, now(), 0)
|
||||
insert into airline_area_group (group_name, create_by, create_time, update_by, update_time, del_flag)
|
||||
values (#{groupName}, #{createBy}, now(), #{updateBy}, now(), 0)
|
||||
</insert>
|
||||
|
||||
<!-- 查询分组列表 -->
|
||||
<select id="selectGroupList" parameterType="com.ruoyi.airline.mapper.entity.AirlineAreaGroupEntity" resultMap="AirlineAreaGroupResult">
|
||||
select group_id, group_name, user_id, create_by, create_time, update_by, update_time, del_flag, deleted_by, deleted_time
|
||||
select group_id, group_name, create_by, create_time, update_by, update_time, del_flag, deleted_by, deleted_time
|
||||
from airline_area_group
|
||||
<where>
|
||||
del_flag = 0
|
||||
<if test="groupName != null and groupName != ''">
|
||||
and group_name like concat('%', #{groupName}, '%')
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 根据ID查询分组 -->
|
||||
<select id="selectGroupById" parameterType="java.lang.Long" resultMap="AirlineAreaGroupResult">
|
||||
select group_id, group_name, user_id, create_by, create_time, update_by, update_time, del_flag, deleted_by, deleted_time
|
||||
select group_id, group_name, create_by, create_time, update_by, update_time, del_flag, deleted_by, deleted_time
|
||||
from airline_area_group
|
||||
where group_id = #{groupId}
|
||||
and del_flag = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue