t . add_up_child_education , t.add_up_continuing_education , t.add_up_housing_loan_interest , t.add_up_housing_rent , t.add_up_support_elderly , t.create_time , t.creator , t.declare_month , t.delete_type , t.employee_id , t.id , t.tax_agent_id , t.tenant_key , t.update_time , t.add_up_illness_medical , t.add_up_infant_care UPDATE hrsa_add_up_deduction t SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id} t1 . id , t1.declare_month, t1.employee_id, e.lastname as username, e.certificatenum as idNo, d.departmentname AS departmentName, e.mobile, e.workcode as job_num, e.companystartdate as hiredate, t2.name AS taxAgentName, t2.id AS taxAgentId, t1.add_up_child_education, t1.add_up_continuing_education, t1.add_up_housing_loan_interest, t1.add_up_housing_rent, t1.add_up_support_elderly, t1.add_up_illness_medical, t1.add_up_infant_care AND t1.id IN #{id} AND t1.employee_id = #{param.employeeId} AND ( e.lastname like CONCAT('%',#{param.keyword},'%') OR d.departmentname like CONCAT('%',#{param.keyword},'%') OR e.workcode like CONCAT('%',#{param.keyword},'%') ) AND t1.declare_month = #{param.declareMonthDate[0]} AND (t1.declare_month BETWEEN #{param.declareMonthDate[0]} AND #{param.declareMonthDate[1]}) AND e.lastname like CONCAT('%',#{param.username},'%') AND t1.tax_agent_id = #{param.taxAgentId} AND t1.tax_agent_id IN #{id} AND d.id IN #{id} AND e.workcode like CONCAT('%',#{param.jobNum},'%') AND (e.companystartdate BETWEEN #{param.hiredate[0]} AND #{param.hiredate[1]}) AND e.mobile like CONCAT('%',#{param.mobile},'%') AND t1.id IN #{id} AND t1.employee_id = #{param.employeeId} AND ( e.lastname like '%'||#{param.keyword}||'%' OR d.departmentname like '%'||#{param.keyword}||'%' OR e.workcode like '%'||#{param.keyword}||'%' ) AND t1.declare_month = #{param.declareMonthDate[0]} AND (t1.declare_month BETWEEN #{param.declareMonthDate[0]} AND #{param.declareMonthDate[1]}) AND e.lastname like '%'||#{param.username}||'%' AND t1.tax_agent_id = #{param.taxAgentId} AND t1.tax_agent_id IN #{id} AND d.id IN #{id} AND e.workcode like '%'||#{param.jobNum}||'%' AND (e.companystartdate BETWEEN #{param.hiredate[0]} AND #{param.hiredate[1]}) AND e.mobile like '%'||#{param.mobile}||'%' AND t1.id IN #{id} AND t1.employee_id = #{param.employeeId} AND ( e.lastname like '%'+#{param.keyword}+'%' OR d.departmentname like '%'+#{param.keyword}+'%' OR e.workcode like '%'+#{param.keyword}+'%' ) AND t1.declare_month = #{param.declareMonthDate[0]} AND (t1.declare_month BETWEEN #{param.declareMonthDate[0]} AND #{param.declareMonthDate[1]}) AND e.lastname like '%'+#{param.username}+'%' AND t1.tax_agent_id = #{param.taxAgentId} AND t1.tax_agent_id IN #{id} AND d.id IN #{id} AND e.workcode like '%'+#{param.jobNum}+'%' AND (e.companystartdate BETWEEN #{param.hiredate[0]} AND #{param.hiredate[1]}) AND e.mobile like '%'+#{param.mobile}+'%' INSERT INTO hrsa_add_up_deduction( employee_id, tax_agent_id, declare_month, add_up_child_education, add_up_continuing_education, add_up_housing_loan_interest, add_up_housing_rent, add_up_support_elderly, add_up_illness_medical, add_up_infant_care, create_time, update_time, creator, tenant_key ) VALUES ( #{item.employeeId}, #{item.taxAgentId}, #{item.declareMonth}, #{item.addUpChildEducation}, #{item.addUpContinuingEducation}, #{item.addUpHousingLoanInterest}, #{item.addUpHousingRent}, #{item.addUpSupportElderly}, #{item.addUpIllnessMedical}, #{item.addUpInfantCare}, #{item.createTime}, #{item.updateTime}, #{item.creator}, #{item.tenantKey} ) INSERT INTO hrsa_add_up_deduction( employee_id, tax_agent_id, declare_month, add_up_child_education, add_up_continuing_education, add_up_housing_loan_interest, add_up_housing_rent, add_up_support_elderly, add_up_illness_medical, add_up_infant_care, create_time, update_time, creator, tenant_key ) select #{item.employeeId,jdbcType=DOUBLE}, #{item.taxAgentId,jdbcType=DOUBLE}, #{item.declareMonth,jdbcType=DATE}, #{item.addUpChildEducation,jdbcType=VARCHAR}, #{item.addUpContinuingEducation,jdbcType=VARCHAR}, #{item.addUpHousingLoanInterest,jdbcType=VARCHAR}, #{item.addUpHousingRent,jdbcType=VARCHAR}, #{item.addUpSupportElderly,jdbcType=VARCHAR}, #{item.addUpIllnessMedical,jdbcType=VARCHAR}, #{item.addUpInfantCare,jdbcType=VARCHAR}, #{item.createTime,jdbcType=DATE}, #{item.updateTime,jdbcType=DATE}, #{item.creator,jdbcType=DOUBLE}, #{item.tenantKey,jdbcType=VARCHAR} from dual INSERT INTO hrsa_add_up_deduction( employee_id, tax_agent_id, declare_month, add_up_child_education, add_up_continuing_education, add_up_housing_loan_interest, add_up_housing_rent, add_up_support_elderly, add_up_illness_medical, add_up_infant_care, create_time, update_time, creator, tenant_key ) VALUES ( #{item.employeeId}, #{item.taxAgentId}, #{item.declareMonth}, #{item.addUpChildEducation}, #{item.addUpContinuingEducation}, #{item.addUpHousingLoanInterest}, #{item.addUpHousingRent}, #{item.addUpSupportElderly}, #{item.addUpIllnessMedical}, #{item.addUpInfantCare}, #{item.createTime}, #{item.updateTime}, #{item.creator}, #{item.tenantKey} ) update hrsa_add_up_deduction when id=#{item.id} then #{item.addUpChildEducation} when id=#{item.id} then #{item.addUpContinuingEducation} when id=#{item.id} then #{item.addUpHousingLoanInterest} when id=#{item.id} then #{item.addUpHousingRent} when id=#{item.id} then #{item.addUpSupportElderly} when id=#{item.id} then #{item.addUpIllnessMedical} when id=#{item.id} then #{item.addUpInfantCare} where id in #{item.id}