Commit 5dbdab61 authored by huyuchen's avatar huyuchen

huych-入离职登记提交

parent 227d40fc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.csp.mapper.EmployeeRegistrationPreMapper">
<resultMap id="employeeRegistrationPreMap" type="com.yifu.cloud.plus.v1.csp.entity.EmployeeRegistrationPre">
<id property="id" column="id"/>
<result property="employeeName" column="employee_name"/>
<result property="empIdcard" column="emp_idcard"/>
<result property="empPhone" column="emp_phone"/>
<result property="position" column="position"/>
<result property="joinLeaveDate" column="join_leave_date"/>
<result property="processStatus" column="process_status"/>
<result property="customerUsername" column="customer_username"/>
<result property="customerUserLoginname" column="customer_user_loginname"/>
<result property="deptName" column="dept_name"/>
<result property="deptNo" column="dept_no"/>
<result property="deptId" column="dept_id"/>
<result property="empNature" column="emp_nature"/>
<result property="contractType" column="contract_type"/>
<result property="contractSubName" column="contract_sub_name"/>
<result property="dataSource" column="data_source"/>
<result property="expectedCollectionTime" column="expected_collection_time"/>
<result property="serverItem" column="server_item"/>
<result property="fileProvince" column="file_province"/>
<result property="fileCity" column="file_city"/>
<result property="fileTown" column="file_town"/>
<result property="confirmUser" column="confirm_user"/>
<result property="confirmTime" column="confirm_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="customerUsernameNew" column="customer_username_new"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.employee_name,
a.emp_idcard,
a.emp_phone,
a.position,
a.join_leave_date,
a.process_status,
a.customer_username,
a.customer_user_loginname,
a.dept_name,
a.dept_no,
a.dept_id,
a.emp_nature,
a.contract_type,
a.data_source,
a.expected_collection_time,
a.server_item,
a.file_province,
a.file_city,
a.file_town,
a.confirm_user,
a.confirm_time,
a.create_by,
a.create_name,
a.create_time,
a.update_by,
a.update_time,
a.contract_sub_name,
a.customer_username_new
</sql>
<sql id="employeeRegistrationPre_where">
<if test="employeeRegistrationPre != null">
<if test="employeeRegistrationPre.id != null and employeeRegistrationPre.id.trim() != ''">
AND a.id = #{employeeRegistrationPre.id}
</if>
<if test="employeeRegistrationPre.employeeName != null and employeeRegistrationPre.employeeName.trim() != ''">
AND a.employee_name like CONCAT('%',#{employeeRegistrationPre.employeeName},'%')
</if>
<if test="employeeRegistrationPre.empIdcard != null and employeeRegistrationPre.empIdcard.trim() != ''">
AND a.emp_idcard like CONCAT('%',#{employeeRegistrationPre.empIdcard},'%')
</if>
<if test="employeeRegistrationPre.empPhone != null and employeeRegistrationPre.empPhone.trim() != ''">
AND a.emp_phone = #{employeeRegistrationPre.empPhone}
</if>
<if test="employeeRegistrationPre.position != null and employeeRegistrationPre.position.trim() != ''">
AND a.position = #{employeeRegistrationPre.position}
</if>
<if test="employeeRegistrationPre.joinLeaveDate != null">
AND a.join_leave_date = #{employeeRegistrationPre.joinLeaveDate}
</if>
<if test="employeeRegistrationPre.processStatus != null and employeeRegistrationPre.processStatus.trim() != ''">
AND a.process_status in
<foreach item="item" index="index" collection="employeeRegistrationPre.statusList" open="(" separator="," close=")">
'${item}'
</foreach>
</if>
<if test="employeeRegistrationPre.customerUsernameNew != null and employeeRegistrationPre.customerUsernameNew.trim() != ''">
AND a.customer_username_new = #{employeeRegistrationPre.customerUsernameNew}
</if>
<if test="employeeRegistrationPre.customerUserLoginname != null and employeeRegistrationPre.customerUserLoginname.trim() != ''">
AND a.customer_user_loginname = #{employeeRegistrationPre.customerUserLoginname}
</if>
<if test="employeeRegistrationPre.deptName != null and employeeRegistrationPre.deptName.trim() != ''">
AND a.dept_name like CONCAT('%',#{employeeRegistrationPre.deptName},'%')
</if>
<if test="employeeRegistrationPre.deptNo != null and employeeRegistrationPre.deptNo.trim() != ''">
AND a.dept_no = #{employeeRegistrationPre.deptNo}
</if>
<if test="employeeRegistrationPre.deptId != null and employeeRegistrationPre.deptId.trim() != ''">
AND a.dept_id = #{employeeRegistrationPre.deptId}
</if>
<if test="employeeRegistrationPre.empNature != null and employeeRegistrationPre.empNature.trim() != ''">
AND a.emp_nature = #{employeeRegistrationPre.empNature}
</if>
<if test="employeeRegistrationPre.contractType != null and employeeRegistrationPre.contractType.trim() != ''">
AND a.contract_type = #{employeeRegistrationPre.contractType}
</if>
<if test="employeeRegistrationPre.dataSource != null and employeeRegistrationPre.dataSource.trim() != ''">
AND a.data_source = #{employeeRegistrationPre.dataSource}
</if>
<if test="employeeRegistrationPre.expectedCollectionTime != null">
AND a.expected_collection_time = #{employeeRegistrationPre.expectedCollectionTime}
</if>
<if test="employeeRegistrationPre.serverItem != null and employeeRegistrationPre.serverItem.trim() != ''">
AND a.server_item = #{employeeRegistrationPre.serverItem}
</if>
<if test="employeeRegistrationPre.fileProvince != null">
AND a.file_province = #{employeeRegistrationPre.fileProvince}
</if>
<if test="employeeRegistrationPre.fileCity != null">
AND a.file_city = #{employeeRegistrationPre.fileCity}
</if>
<if test="employeeRegistrationPre.fileTown != null">
AND a.file_town = #{employeeRegistrationPre.fileTown}
</if>
<if test="employeeRegistrationPre.confirmUser != null and employeeRegistrationPre.confirmUser.trim() != ''">
AND a.confirm_user = #{employeeRegistrationPre.confirmUser}
</if>
<if test="employeeRegistrationPre.confirmTime != null">
AND a.confirm_time = #{employeeRegistrationPre.confirmTime}
</if>
<if test="employeeRegistrationPre.createBy != null and employeeRegistrationPre.createBy.trim() != ''">
AND a.create_by = #{employeeRegistrationPre.createBy}
</if>
<if test="employeeRegistrationPre.createName != null and employeeRegistrationPre.createName.trim() != ''">
AND a.create_name = #{employeeRegistrationPre.createName}
</if>
<if test="employeeRegistrationPre.createTime != null">
AND a.create_time = #{employeeRegistrationPre.createTime}
</if>
<if test="employeeRegistrationPre.updateBy != null and employeeRegistrationPre.updateBy.trim() != ''">
AND a.update_by = #{employeeRegistrationPre.updateBy}
</if>
<if test="employeeRegistrationPre.updateTime != null">
AND a.update_time = #{employeeRegistrationPre.updateTime}
</if>
</if>
</sql>
<!--employeeRegistrationPre简单分页查询-->
<select id="getEmployeeRegistrationPrePage" resultMap="employeeRegistrationPreMap">
SELECT
<include refid="Base_Column_List"/>
FROM employee_registration_pre a
<where>
1=1
<include refid="employeeRegistrationPre_where"/>
</where>
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment