|
@@ -12,6 +12,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="deptName" column="dept_name" />
|
|
<result property="deptName" column="dept_name" />
|
|
<result property="humanFaceData" column="human_face_data" />
|
|
<result property="humanFaceData" column="human_face_data" />
|
|
<result property="guard" column="guard" />
|
|
<result property="guard" column="guard" />
|
|
|
|
+
|
|
|
|
+ <result property="isEnable" column="is_enable" />
|
|
|
|
+
|
|
<result property="createDept" column="create_dept" />
|
|
<result property="createDept" column="create_dept" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
@@ -21,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPersonnelManagementVo">
|
|
<sql id="selectPersonnelManagementVo">
|
|
- select personne_id, personne_name, personne_phone, dept_id, dept_name, human_face_data, guard, create_dept, create_by, create_time, update_by, update_time, remark from personnel_management
|
|
|
|
|
|
+ select personne_id, personne_name, personne_phone, dept_id, dept_name, human_face_data, guard,is_enable, create_dept, create_by, create_time, update_by, update_time, remark from personnel_management
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectPersonnelManagementList" parameterType="PersonnelManagement" resultMap="PersonnelManagementResult">
|
|
<select id="selectPersonnelManagementList" parameterType="PersonnelManagement" resultMap="PersonnelManagementResult">
|
|
@@ -33,8 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
<if test="humanFaceData != null and humanFaceData != ''"> and human_face_data = #{humanFaceData}</if>
|
|
<if test="humanFaceData != null and humanFaceData != ''"> and human_face_data = #{humanFaceData}</if>
|
|
<if test="guard != null and guard != ''"> and guard = #{guard}</if>
|
|
<if test="guard != null and guard != ''"> and guard = #{guard}</if>
|
|
|
|
+ <if test="isEnable != null and isEnable != ''"> and is_enable = #{isEnable}</if>
|
|
<if test="createDept != null "> and create_dept = #{createDept}</if>
|
|
<if test="createDept != null "> and create_dept = #{createDept}</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ order by create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectPersonnelManagementByPersonneId" parameterType="Long" resultMap="PersonnelManagementResult">
|
|
<select id="selectPersonnelManagementByPersonneId" parameterType="Long" resultMap="PersonnelManagementResult">
|
|
@@ -51,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deptName != null">dept_name,</if>
|
|
<if test="deptName != null">dept_name,</if>
|
|
<if test="humanFaceData != null">human_face_data,</if>
|
|
<if test="humanFaceData != null">human_face_data,</if>
|
|
<if test="guard != null">guard,</if>
|
|
<if test="guard != null">guard,</if>
|
|
|
|
+ <if test="isEnable != null "> is_enable ,</if>
|
|
<if test="createDept != null">create_dept,</if>
|
|
<if test="createDept != null">create_dept,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
@@ -65,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deptName != null">#{deptName},</if>
|
|
<if test="deptName != null">#{deptName},</if>
|
|
<if test="humanFaceData != null">#{humanFaceData},</if>
|
|
<if test="humanFaceData != null">#{humanFaceData},</if>
|
|
<if test="guard != null">#{guard},</if>
|
|
<if test="guard != null">#{guard},</if>
|
|
|
|
+ <if test="isEnable != null "> #{isEnable},</if>
|
|
<if test="createDept != null">#{createDept},</if>
|
|
<if test="createDept != null">#{createDept},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -83,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
<if test="humanFaceData != null">human_face_data = #{humanFaceData},</if>
|
|
<if test="humanFaceData != null">human_face_data = #{humanFaceData},</if>
|
|
<if test="guard != null">guard = #{guard},</if>
|
|
<if test="guard != null">guard = #{guard},</if>
|
|
|
|
+ <if test="isEnable != null "> is_enable = #{isEnable},</if>
|
|
<if test="createDept != null">create_dept = #{createDept},</if>
|
|
<if test="createDept != null">create_dept = #{createDept},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|