WagesDetailsOriginalDataMapper.xml 8.14 KB
Newer Older
刘_震's avatar
刘_震 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
<?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.system.mapper.WagesDetailsOriginalDataMapper">

    <resultMap type="com.ruoyi.system.model.wages.dao.WagesDetailsOriginalExcelDAO" id="WagesDetailsOriginalDataResult">
        <result property="id"    column="id"    />
        <result property="year"    column="year"    />
        <result property="month"    column="month"    />
        <result property="unitName"    column="unit_name"    />
        <result property="peopleCount"    column="people_count"    />
        <result property="totalWithholding"    column="total_withholding"    />
        <result property="netSalary"    column="net_salary"    />
        <result property="oneChildFee"    column="one_child_fee"    />
        <result property="medicalSubsidy"    column="medical_subsidy"    />
        <result property="healthCareFee"    column="health_care_fee"    />
        <result property="classMealFee"    column="class_meal_fee"    />
        <result property="soapFee"    column="soap_fee"    />
        <result property="nursingFee"    column="nursing_fee"    />
        <result property="heatstrokePreventionSubsidy"    column="heatstroke_prevention_subsidy"    />
        <result property="heatingSubsidy"    column="heating_subsidy"    />
        <result property="manuscriptFee"    column="manuscript_fee"    />
        <result property="driverAllowance"    column="driver_allowance"    />
        <result property="graduateSettlementFee"    column="graduate_settlement_fee"    />
        <result property="oneTimeDisabilitySubsidy"    column="one_time_disability_subsidy"    />
        <result property="lectureAndExamFee"    column="lecture_and_exam_fee"    />
        <result property="otherSubsidies"    column="other_subsidies"    />
        <result property="houseRent"    column="house_rent"    />
        <result property="wagesPayable"    column="Wages_payable"    />
        <result property="accommodation"    column="accommodation"    />
        <result property="heatingFee"    column="heating_fee"    />
        <result property="tradeUnionDues"    column="trade_union_dues"    />
        <result property="compensationDeduction"    column="compensation_deduction"    />
        <result property="otherDeductions"    column="other_deductions"    />
        <result property="mutualMedicalAid"    column="mutual_medical_aid"    />
        <result property="communicationFee"    column="communication_fee"    />
        <result property="tax1"    column="tax1"    />
        <result property="tax2"    column="tax2"    />
        <result property="pensionInsurance"    column="pension_insurance"    />
        <result property="unemploymentInsurance"    column="unemployment_insurance"    />
        <result property="medicalInsurance"    column="medical_insurance"    />
        <result property="annuity"    column="annuity"    />
        <result property="housingProvidentFund"    column="housing_provident_fund"    />
        <result property="enterpriseFund"    column="enterprise_fund"    />
        <result property="annuityIncomeTax"    column="annuity_income_tax"    />
        <result property="totalPayment"    column="total_payment"    />
        <result property="totalSalaryDisbursement"    column="total_salary_disbursement"    />
    </resultMap>

    <sql id="selectWagesDetailsOriginalDataVo">
        select id, ssk_id, year, month, unit_name, people_count, total_withholding, net_salary, one_child_fee, medical_subsidy, health_care_fee, class_meal_fee, soap_fee, nursing_fee, heatstroke_prevention_subsidy, heating_subsidy, manuscript_fee, driver_allowance, graduate_settlement_fee, one_time_disability_subsidy, lecture_and_exam_fee, other_subsidies, house_rent, Wages_payable, accommodation, heating_fee, trade_union_dues, compensation_deduction, other_deductions, mutual_medical_aid, communication_fee, tax1, tax2, pension_insurance, unemployment_insurance, medical_insurance, annuity, housing_provident_fund, enterprise_fund, annuity_income_tax, total_payment, total_salary_disbursement from wages_details_original_data
    </sql>

    <select id="selectAll" parameterType="com.ruoyi.system.model.wages.dao.WagesDetailsOriginalExcelDAO" resultMap="WagesDetailsOriginalDataResult">
        <include refid="selectWagesDetailsOriginalDataVo"/>
        <where>
            <if test="sskId != null  and sskId != ''"> and ssk_id = #{sskId}</if>
            <if test="year != null  and year != ''"> and year = #{year}</if>
            <if test="month != null  and month != ''"> and month = #{month}</if>
            <if test="unitName != null  and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
            <if test="peopleCount != null "> and people_count = #{peopleCount}</if>
            <if test="totalWithholding != null "> and total_withholding = #{totalWithholding}</if>
            <if test="netSalary != null "> and net_salary = #{netSalary}</if>
            <if test="oneChildFee != null "> and one_child_fee = #{oneChildFee}</if>
            <if test="medicalSubsidy != null "> and medical_subsidy = #{medicalSubsidy}</if>
            <if test="healthCareFee != null "> and health_care_fee = #{healthCareFee}</if>
            <if test="classMealFee != null "> and class_meal_fee = #{classMealFee}</if>
            <if test="soapFee != null "> and soap_fee = #{soapFee}</if>
            <if test="nursingFee != null "> and nursing_fee = #{nursingFee}</if>
            <if test="heatstrokePreventionSubsidy != null "> and heatstroke_prevention_subsidy = #{heatstrokePreventionSubsidy}</if>
            <if test="heatingSubsidy != null "> and heating_subsidy = #{heatingSubsidy}</if>
            <if test="manuscriptFee != null "> and manuscript_fee = #{manuscriptFee}</if>
            <if test="driverAllowance != null "> and driver_allowance = #{driverAllowance}</if>
            <if test="graduateSettlementFee != null "> and graduate_settlement_fee = #{graduateSettlementFee}</if>
            <if test="oneTimeDisabilitySubsidy != null "> and one_time_disability_subsidy = #{oneTimeDisabilitySubsidy}</if>
            <if test="lectureAndExamFee != null "> and lecture_and_exam_fee = #{lectureAndExamFee}</if>
            <if test="otherSubsidies != null "> and other_subsidies = #{otherSubsidies}</if>
            <if test="houseRent != null "> and house_rent = #{houseRent}</if>
            <if test="wagesPayable != null "> and Wages_payable = #{wagesPayable}</if>
            <if test="accommodation != null "> and accommodation = #{accommodation}</if>
            <if test="heatingFee != null "> and heating_fee = #{heatingFee}</if>
            <if test="tradeUnionDues != null "> and trade_union_dues = #{tradeUnionDues}</if>
            <if test="compensationDeduction != null "> and compensation_deduction = #{compensationDeduction}</if>
            <if test="otherDeductions != null "> and other_deductions = #{otherDeductions}</if>
            <if test="mutualMedicalAid != null "> and mutual_medical_aid = #{mutualMedicalAid}</if>
            <if test="communicationFee != null "> and communication_fee = #{communicationFee}</if>
            <if test="tax1 != null "> and tax1 = #{tax1}</if>
            <if test="tax2 != null "> and tax2 = #{tax2}</if>
            <if test="pensionInsurance != null "> and pension_insurance = #{pensionInsurance}</if>
            <if test="unemploymentInsurance != null "> and unemployment_insurance = #{unemploymentInsurance}</if>
            <if test="medicalInsurance != null "> and medical_insurance = #{medicalInsurance}</if>
            <if test="annuity != null "> and annuity = #{annuity}</if>
            <if test="housingProvidentFund != null "> and housing_provident_fund = #{housingProvidentFund}</if>
            <if test="enterpriseFund != null "> and enterprise_fund = #{enterpriseFund}</if>
            <if test="annuityIncomeTax != null "> and annuity_income_tax = #{annuityIncomeTax}</if>
            <if test="totalPayment != null "> and total_payment = #{totalPayment}</if>
            <if test="totalSalaryDisbursement != null "> and total_salary_disbursement = #{totalSalaryDisbursement}</if>
        </where>
    </select>
</mapper>