|
|
|
|
@ -67,4 +67,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
</select> |
|
|
|
|
<select id="selectByIdCodeAndDel" resultType="com.biutag.supervision.pojo.entity.SupPolice"> |
|
|
|
|
SELECT * |
|
|
|
|
FROM sup_police |
|
|
|
|
WHERE id_code = #{idCode} |
|
|
|
|
AND del = #{del} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateIgnoreLogicDeleteById"> |
|
|
|
|
UPDATE sup_police |
|
|
|
|
<set> |
|
|
|
|
<if test="p.accountId != null">account_id = #{p.accountId},</if> |
|
|
|
|
<if test="p.districtId != null">district_id = #{p.districtId},</if> |
|
|
|
|
<if test="p.orgId != null">org_id = #{p.orgId},</if> |
|
|
|
|
<if test="p.empNo != null">emp_no = #{p.empNo},</if> |
|
|
|
|
<if test="p.job != null">job = #{p.job},</if> |
|
|
|
|
<if test="p.jobType != null">job_type = #{p.jobType},</if> |
|
|
|
|
<if test="p.managerId != null">manager_id = #{p.managerId},</if> |
|
|
|
|
<if test="p.phone != null">phone = #{p.phone},</if> |
|
|
|
|
<if test="p.faxNo != null">fax_no = #{p.faxNo},</if> |
|
|
|
|
<if test="p.postTitle != null">post_title = #{p.postTitle},</if> |
|
|
|
|
<if test="p.workAddress != null">work_address = #{p.workAddress},</if> |
|
|
|
|
<if test="p.account != null">account = #{p.account},</if> |
|
|
|
|
<if test="p.mobile != null">mobile = #{p.mobile},</if> |
|
|
|
|
<if test="p.email != null">email = #{p.email},</if> |
|
|
|
|
<if test="p.idCode != null">id_code = #{p.idCode},</if> |
|
|
|
|
<if test="p.displayName != null">display_name = #{p.displayName},</if> |
|
|
|
|
<if test="p.name != null">name = #{p.name},</if> |
|
|
|
|
<if test="p.gender != null">gender = #{p.gender},</if> |
|
|
|
|
<if test="p.birthday != null">birthday = #{p.birthday},</if> |
|
|
|
|
<if test="p.avatarUrl != null">avatar_url = #{p.avatarUrl},</if> |
|
|
|
|
<if test="p.status != null">status = #{p.status},</if> |
|
|
|
|
<if test="p.hiredAt != null">hired_at = #{p.hiredAt},</if> |
|
|
|
|
<if test="p.createdAt != null">created_at = #{p.createdAt},</if> |
|
|
|
|
<if test="p.type != null">type = #{p.type},</if> |
|
|
|
|
<if test="p.personStatus != null">person_status = #{p.personStatus},</if> |
|
|
|
|
<if test="p.position != null">position = #{p.position},</if> |
|
|
|
|
<if test="p.personType != null">person_type = #{p.personType},</if> |
|
|
|
|
<if test="p.maritalStatus != null">marital_status = #{p.maritalStatus},</if> |
|
|
|
|
<if test="p.haveChildren != null">have_children = #{p.haveChildren},</if> |
|
|
|
|
<if test="p.education != null">education = #{p.education},</if> |
|
|
|
|
<if test="p.employmentDate != null">employment_date = #{p.employmentDate},</if> |
|
|
|
|
<if test="p.policeRole != null">police_role = #{p.policeRole},</if> |
|
|
|
|
<if test="p.sortId != null">sort_id = #{p.sortId},</if> |
|
|
|
|
<if test="p.del != null">del = #{p.del},</if> |
|
|
|
|
<if test="p.delReason != null">del_reason = #{p.delReason},</if> |
|
|
|
|
updated_at = NOW() |
|
|
|
|
</set> |
|
|
|
|
WHERE id = #{p.id} |
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|
|