|
@@ -2,12 +2,12 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.platform.dao.mapper.sb.SbPositionMapper">
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, no, name, type, sort, code, user_id, del_flag, parent_id, opc_img, remark, created_user_id, update_user_id,
|
|
|
+ id, no, name, type, sort, code, user_id, del_flag, parent_id, opc_flag, opc_img, remark, created_user_id, update_user_id,
|
|
|
created_time, update_time
|
|
|
</sql>
|
|
|
|
|
|
<sql id="Join_Column">
|
|
|
- position.id, position.no, position.name, position.code, position.opc_img, position.user_id, position.type, position.sort, position.del_flag, position.parent_id,
|
|
|
+ position.id, position.no, position.name, position.code, position.opc_flag, position.opc_img, position.user_id, position.type, position.sort, position.del_flag, position.parent_id,
|
|
|
position.remark, position.created_user_id, position.update_user_id,
|
|
|
position.created_time, position.update_time,
|
|
|
p.name as parentName, user.real_name as userName
|
|
@@ -31,6 +31,9 @@
|
|
|
<if test="parentCode != null and parentCode != ''">
|
|
|
and position.code like concat(#{parentCode},'%')
|
|
|
</if>
|
|
|
+ <if test="opcFlag != null and opcFlag != ''">
|
|
|
+ and position.opc_flag = #{opcFlag}
|
|
|
+ </if>
|
|
|
<if test="userName != null and userName != ''">
|
|
|
and ( user.real_name like concat('%',#{userName},'%') or
|
|
|
user.username like concat('%',#{userName},'%'))
|