|
@ -3,7 +3,7 @@ |
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.zc.business.mapper.DcEmployeesMapper"> |
|
|
<mapper namespace="com.zc.business.mapper.DcEmployeesMapper"> |
|
|
|
|
|
|
|
|
<resultMap type="DcEmployees" id="DcEmployeesResult"> |
|
|
<resultMap type="DcEmployees" id="DcEmployeesResult"> |
|
|
<result property="id" column="id" /> |
|
|
<result property="id" column="id" /> |
|
|
<result property="postId" column="post_id" /> |
|
|
<result property="postId" column="post_id" /> |
|
@ -33,13 +33,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
|
<select id="selectDcEmployeesList" parameterType="DcEmployees" resultMap="DcEmployeesResult"> |
|
|
<select id="selectDcEmployeesList" parameterType="DcEmployees" resultMap="DcEmployeesResult"> |
|
|
<include refid="selectDcEmployeesVo"/> |
|
|
<include refid="selectDcEmployeesVo"/> |
|
|
<where> |
|
|
<where> |
|
|
<if test="postId != null and postId != ''"> and employees.post_id = #{postId}</if> |
|
|
<if test="postId != null and postId != ''"> and employees.post_id = #{postId}</if> |
|
|
<if test="organizationId != null "> and employees.organization_id = #{organizationId}</if> |
|
|
<if test="organizationId != null "> and employees.organization_id = #{organizationId}</if> |
|
|
<if test="name != null and name != ''"> and CONCAT(employees.name,employees.contact_number) like concat('%', #{name}, '%')</if> |
|
|
<if test="name != null and name != ''"> and CONCAT(employees.name,employees.contact_number) like concat('%', #{name}, '%')</if> |
|
|
|
|
|
<if test="employeesType != null "> and employees.employees_type = #{employeesType}</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectDcEmployeesById" parameterType="Long" resultMap="DcEmployeesResult"> |
|
|
<select id="selectDcEmployeesById" parameterType="Long" resultMap="DcEmployeesResult"> |
|
|
<include refid="selectDcEmployeesVo"/> |
|
|
<include refid="selectDcEmployeesVo"/> |
|
|
where employees.id = #{id} |
|
|
where employees.id = #{id} |
|
@ -90,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</delete> |
|
|
</delete> |
|
|
|
|
|
|
|
|
<delete id="deleteDcEmployeesByIds" parameterType="String"> |
|
|
<delete id="deleteDcEmployeesByIds" parameterType="String"> |
|
|
delete from dc_employees where id in |
|
|
delete from dc_employees where id in |
|
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
|
#{id} |
|
|
#{id} |
|
|
</foreach> |
|
|
</foreach> |
|
@ -126,4 +127,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<update id="updateJobInformation"> |
|
|
<update id="updateJobInformation"> |
|
|
update dc_employees set organization_id=#{station} where employees_id=#{employeesId} |
|
|
update dc_employees set organization_id=#{station} where employees_id=#{employeesId} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |
|
|