197 lines
7.3 KiB
XML
197 lines
7.3 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.datacollection.SpecialAddDeductionMapper">
|
||
|
|
<resultMap id="BaseResultMap" type="com.engine.salary.entity.datacollection.po.SpecialAddDeductionPO">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
<!--@Table hrsa_special_add_deduction-->
|
||
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||
|
|
<result column="employee_id" jdbcType="BIGINT" property="employeeId" />
|
||
|
|
<result column="tax_agent_id" jdbcType="BIGINT" property="taxAgentId" />
|
||
|
|
<result column="declare_month" jdbcType="TIMESTAMP" property="declareMonth" />
|
||
|
|
<result column="children_education" jdbcType="VARCHAR" property="childrenEducation" />
|
||
|
|
<result column="continuing_education" jdbcType="VARCHAR" property="continuingEducation" />
|
||
|
|
<result column="housing_loan_interest" jdbcType="VARCHAR" property="housingLoanInterest" />
|
||
|
|
<result column="housing_rent" jdbcType="VARCHAR" property="housingRent" />
|
||
|
|
<result column="supporting_elder" jdbcType="VARCHAR" property="supportingElder" />
|
||
|
|
<result column="serious_illness_treatment" jdbcType="VARCHAR" property="seriousIllnessTreatment" />
|
||
|
|
<result column="infant_care" jdbcType="VARCHAR" property="infantCare" />
|
||
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||
|
|
<result column="creator" jdbcType="BIGINT" property="creator" />
|
||
|
|
<result column="delete_type" jdbcType="INTEGER" property="deleteType" />
|
||
|
|
<result column="tenant_key" jdbcType="VARCHAR" property="tenantKey" />
|
||
|
|
</resultMap>
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
id, employee_id, tax_agent_id, declare_month, children_education, continuing_education,
|
||
|
|
housing_loan_interest, housing_rent, supporting_elder, serious_illness_treatment,
|
||
|
|
infant_care, create_time, update_time, creator, delete_type, tenant_key
|
||
|
|
</sql>
|
||
|
|
<select id="getById" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
select
|
||
|
|
<include refid="Base_Column_List" />
|
||
|
|
from hrsa_special_add_deduction
|
||
|
|
where id = #{id,jdbcType=BIGINT}
|
||
|
|
</select>
|
||
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.engine.salary.entity.datacollection.po.SpecialAddDeductionPO" useGeneratedKeys="true">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
insert into hrsa_special_add_deduction
|
||
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
|
<if test="employeeId != null">
|
||
|
|
employee_id,
|
||
|
|
</if>
|
||
|
|
<if test="taxAgentId != null">
|
||
|
|
tax_agent_id,
|
||
|
|
</if>
|
||
|
|
<if test="declareMonth != null">
|
||
|
|
declare_month,
|
||
|
|
</if>
|
||
|
|
<if test="childrenEducation != null">
|
||
|
|
children_education,
|
||
|
|
</if>
|
||
|
|
<if test="continuingEducation != null">
|
||
|
|
continuing_education,
|
||
|
|
</if>
|
||
|
|
<if test="housingLoanInterest != null">
|
||
|
|
housing_loan_interest,
|
||
|
|
</if>
|
||
|
|
<if test="housingRent != null">
|
||
|
|
housing_rent,
|
||
|
|
</if>
|
||
|
|
<if test="supportingElder != null">
|
||
|
|
supporting_elder,
|
||
|
|
</if>
|
||
|
|
<if test="seriousIllnessTreatment != null">
|
||
|
|
serious_illness_treatment,
|
||
|
|
</if>
|
||
|
|
<if test="infantCare != null">
|
||
|
|
infant_care,
|
||
|
|
</if>
|
||
|
|
<if test="createTime != null">
|
||
|
|
create_time,
|
||
|
|
</if>
|
||
|
|
<if test="updateTime != null">
|
||
|
|
update_time,
|
||
|
|
</if>
|
||
|
|
<if test="creator != null">
|
||
|
|
creator,
|
||
|
|
</if>
|
||
|
|
<if test="deleteType != null">
|
||
|
|
delete_type,
|
||
|
|
</if>
|
||
|
|
<if test="tenantKey != null">
|
||
|
|
tenant_key,
|
||
|
|
</if>
|
||
|
|
</trim>
|
||
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
|
<if test="employeeId != null">
|
||
|
|
#{employeeId,jdbcType=BIGINT},
|
||
|
|
</if>
|
||
|
|
<if test="taxAgentId != null">
|
||
|
|
#{taxAgentId,jdbcType=BIGINT},
|
||
|
|
</if>
|
||
|
|
<if test="declareMonth != null">
|
||
|
|
#{declareMonth,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="childrenEducation != null">
|
||
|
|
#{childrenEducation,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="continuingEducation != null">
|
||
|
|
#{continuingEducation,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="housingLoanInterest != null">
|
||
|
|
#{housingLoanInterest,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="housingRent != null">
|
||
|
|
#{housingRent,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="supportingElder != null">
|
||
|
|
#{supportingElder,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="seriousIllnessTreatment != null">
|
||
|
|
#{seriousIllnessTreatment,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="infantCare != null">
|
||
|
|
#{infantCare,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="createTime != null">
|
||
|
|
#{createTime,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="updateTime != null">
|
||
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="creator != null">
|
||
|
|
#{creator,jdbcType=BIGINT},
|
||
|
|
</if>
|
||
|
|
<if test="deleteType != null">
|
||
|
|
#{deleteType,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="tenantKey != null">
|
||
|
|
#{tenantKey,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
</trim>
|
||
|
|
</insert>
|
||
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.engine.salary.entity.datacollection.po.SpecialAddDeductionPO">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
update hrsa_special_add_deduction
|
||
|
|
<set>
|
||
|
|
<if test="employeeId != null">
|
||
|
|
employee_id = #{employeeId,jdbcType=BIGINT},
|
||
|
|
</if>
|
||
|
|
<if test="taxAgentId != null">
|
||
|
|
tax_agent_id = #{taxAgentId,jdbcType=BIGINT},
|
||
|
|
</if>
|
||
|
|
<if test="declareMonth != null">
|
||
|
|
declare_month = #{declareMonth,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="childrenEducation != null">
|
||
|
|
children_education = #{childrenEducation,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="continuingEducation != null">
|
||
|
|
continuing_education = #{continuingEducation,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="housingLoanInterest != null">
|
||
|
|
housing_loan_interest = #{housingLoanInterest,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="housingRent != null">
|
||
|
|
housing_rent = #{housingRent,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="supportingElder != null">
|
||
|
|
supporting_elder = #{supportingElder,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="seriousIllnessTreatment != null">
|
||
|
|
serious_illness_treatment = #{seriousIllnessTreatment,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="infantCare != null">
|
||
|
|
infant_care = #{infantCare,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
<if test="createTime != null">
|
||
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="updateTime != null">
|
||
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="creator != null">
|
||
|
|
creator = #{creator,jdbcType=BIGINT},
|
||
|
|
</if>
|
||
|
|
<if test="deleteType != null">
|
||
|
|
delete_type = #{deleteType,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="tenantKey != null">
|
||
|
|
tenant_key = #{tenantKey,jdbcType=VARCHAR},
|
||
|
|
</if>
|
||
|
|
</set>
|
||
|
|
where id = #{id,jdbcType=BIGINT}
|
||
|
|
</update>
|
||
|
|
|
||
|
|
<select id="selectAllByPO" parameterType="com.engine.salary.entity.datacollection.po.SpecialAddDeductionPO"
|
||
|
|
resultMap="BaseResultMap">
|
||
|
|
select
|
||
|
|
<include refid="Base_Column_List"/>
|
||
|
|
from hrsa_special_add_deduction
|
||
|
|
<where>
|
||
|
|
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
</mapper>
|