39 lines
2.0 KiB
XML
39 lines
2.0 KiB
XML
<?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.ruoyi.cms.mapper.EmployeeConfirmMapper">
|
|
|
|
<!-- 可根据自己的需求,是否要使用 -->
|
|
<resultMap type="EmployeeConfirm" id="EmployeeConfirmResult">
|
|
<result property="id" column="id"/>
|
|
<result property="companyId" column="company_id"/>
|
|
<result property="contactPerson" column="contact_person"/>
|
|
<result property="idCard" column="id_card"/>
|
|
<result property="entryDate" column="entry_date"/>
|
|
<result property="contactPersonPhone" column="contact_person_phone"/>
|
|
<result property="contractTerm" column="contract_term"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="remark" column="remark"/>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectsinosoftVo">
|
|
select id, company_id, contact_person, id_card, entry_date, contact_person_phone, contract_term, del_flag, create_by, create_time, update_by, update_time, remark from employee_confirm
|
|
</sql>
|
|
|
|
<select id="getEmployeeConfirmList" resultMap="EmployeeConfirmResult" parameterType="EmployeeConfirm">
|
|
<include refid="selectsinosoftVo"/>
|
|
<where> del_flag = '0'
|
|
<if test="contactPerson != null and contactPerson != ''"> and contact_person like concat('%', #{contactPerson}, '%')</if>
|
|
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
|
|
<if test="contactPersonPhone != null and contactPersonPhone != ''"> and contact_person_phone = #{contactPersonPhone}</if>
|
|
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|