56 lines
2.1 KiB
XML
56 lines
2.1 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.engine.salary.mapper.archives.OtherSchemeMapper">
|
|
<resultMap id="BaseResultMap" type="com.engine.salary.entity.siarchives.po.InsuranceArchivesOtherSchemePO">
|
|
<result column="id" property="id"/>
|
|
<result column="employee_id" property="employeeId"/>
|
|
<result column="non_payment" property="nonPayment"/>
|
|
<result column="welfare_type" property="welfareType"/>
|
|
<result column="other_start_time" property="otherStartTime"/>
|
|
<result column="other_end_time" property="otherEndTime"/>
|
|
<result column="other_scheme_id" property="otherSchemeId"/>
|
|
<result column="other_account" property="otherAccount"/>
|
|
<result column="payment_organization" property="paymentOrganization"/>
|
|
<result column="under_take" property="underTake"/>
|
|
<result column="other_payment_base_string" property="otherPaymentBaseString"/>
|
|
<result column="create_time" property="createTime"/>
|
|
<result column="update_time" property="updateTime"/>
|
|
<result column="creator" property="creator"/>
|
|
<result column="delete_type" property="deleteType"/>
|
|
<result column="tenant_key" property="tenantKey"/>
|
|
</resultMap>
|
|
|
|
<!-- 表字段 -->
|
|
<sql id="baseColumns">
|
|
t.id
|
|
, t.employee_id
|
|
, t.non_payment
|
|
, t.welfare_type
|
|
, t.other_start_time
|
|
, t.other_end_time
|
|
, t.other_scheme_id
|
|
, t.other_account
|
|
, t.payment_organization
|
|
, t.under_take
|
|
, t.other_payment_base_string
|
|
, t.create_time
|
|
, t.update_time
|
|
, t.creator
|
|
, t.delete_type
|
|
, t.tenant_key
|
|
</sql>
|
|
|
|
|
|
<!-- 根据人员获取单条记录 -->
|
|
<select id="getOtherByEmployeeId" resultMap="BaseResultMap" >
|
|
SELECT
|
|
<include refid="baseColumns"/>
|
|
FROM hrsa_other_archives t
|
|
WHERE employee_id = #{employeeId} AND delete_type = 0
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper> |