t . id , t.employee_id , e.status as employee_status , t.bill_month , t.bill_status , t.payment_status , t.supplementary_month , t.supplementary_projects , t.resource_from , t.social_pay_org , t.social_account , t.fund_pay_org , t.fund_account , t.supplement_fund_account , t.other_pay_org , t.social_scheme_id , t.social_payment_base_string , t.fund_scheme_id , t.fund_payment_base_string , t.other_scheme_id , t.other_payment_base_string , t.social_per_json , t.social_per_sum , t.fund_per_json , t.fund_per_sum , t.other_per_json , t.other_per_sum , t.per_sum , t.social_com_json , t.social_com_sum , t.fund_com_json , t.fund_com_sum , t.other_com_json , t.other_com_sum , t.com_sum , t.social_sum , t.fund_sum , t.other_sum , t.total , t.creator , t.delete_type , t.create_time , t.update_time , t.tenant_key , t.payment_organization t . id , t.employee_id , t.bill_month , t.bill_status , t.payment_status , t.supplementary_month , t.supplementary_projects , t.resource_from , t.social_pay_org , t.social_account , t.fund_pay_org , t.fund_account , t.supplement_fund_account , t.other_pay_org , t.social_scheme_id , t.social_payment_base_string , t.fund_scheme_id , t.fund_payment_base_string , t.other_scheme_id , t.other_payment_base_string , t.social_per_json , t.social_per_sum , t.fund_per_json , t.fund_per_sum , t.other_per_json , t.other_per_sum , t.per_sum , t.social_com_json , t.social_com_sum , t.fund_com_json , t.fund_com_sum , t.other_com_json , t.other_com_sum , t.com_sum , t.social_sum , t.fund_sum , t.other_sum , t.total , t.creator , t.delete_type , t.create_time , t.update_time , t.tenant_key , t.payment_organization AND t.bill_month = #{param.billMonth} AND t.payment_status = #{param.paymentStatus} AND t.payment_organization = #{param.paymentOrganization} AND ( e.lastname like CONCAT('%',#{param.userName},'%') ) AND ( e.lastname like '%'||#{param.userName}||'%' ) AND ( e.lastname like '%'+#{param.userName}+'%' ) UPDATE hrsa_bill_detail SET delete_type = 1 WHERE id = #{id} AND delete_type = 0 DELETE FROM hrsa_bill_detail WHERE delete_type = 0 AND bill_month = #{billMonth} AND bill_status = 0 AND payment_organization = #{paymentOrganization} UPDATE hrsa_bill_detail SET delete_type = 1 WHERE delete_type = 0 AND id IN #{po.id} UPDATE hrsa_bill_inspect SET inspect_status = 0 WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_bill_inspect SET inspect_status = 1 WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_bill_detail SET delete_type = 1 WHERE delete_type = 0 AND payment_status = #{paymentStatus} AND bill_month = #{billMonth} AND payment_organization = #{paymentOrganization} AND employee_id IN #{employeeId} UPDATE hrsa_bill_detail SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id} UPDATE hrsa_bill_detail SET delete_type = 1 WHERE delete_type = 0 AND employee_id IN #{po.employeeId} INSERT INTO hrsa_bill_detail (employee_id,bill_month,bill_status,payment_status,supplementary_month,supplementary_projects,resource_from,social_pay_org,social_account,social_scheme_id,social_payment_base_string, fund_pay_org,fund_account,supplement_fund_account,fund_scheme_id,fund_payment_base_string,other_pay_org,other_scheme_id,other_payment_base_string,social_per_json, social_per_sum,fund_per_json,fund_per_sum,other_per_json,other_per_sum,per_sum,social_com_json,social_com_sum,fund_com_json,fund_com_sum,other_com_json,other_com_sum, com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization) VALUES ( #{item.employeeId}, #{item.billMonth}, #{item.billStatus}, #{item.paymentStatus}, #{item.supplementaryMonth}, #{item.supplementaryProjects}, #{item.resourceFrom}, #{item.socialPayOrg}, #{item.socialAccount}, #{item.socialSchemeId}, #{item.socialPaymentBaseString}, #{item.fundPayOrg}, #{item.fundAccount}, #{item.supplementFundAccount}, #{item.fundSchemeId}, #{item.fundPaymentBaseString}, #{item.otherPayOrg}, #{item.otherSchemeId}, #{item.otherPaymentBaseString}, #{item.socialPerJson}, #{item.socialPerSum}, #{item.fundPerJson}, #{item.fundPerSum}, #{item.otherPerJson}, #{item.otherPerSum}, #{item.perSum}, #{item.socialComJson}, #{item.socialComSum}, #{item.fundComJson}, #{item.fundComSum}, #{item.otherComJson}, #{item.otherComSum}, #{item.comSum}, #{item.socialSum}, #{item.fundSum}, #{item.otherSum}, #{item.total}, #{item.creator}, #{item.createTime}, #{item.updateTime}, #{item.deleteType}, #{item.tenantKey}, #{item.paymentOrganization} ) INSERT INTO hrsa_bill_detail (employee_id,bill_month,bill_status,payment_status,supplementary_month,supplementary_projects,resource_from,social_pay_org,social_account,social_scheme_id,social_payment_base_string, fund_pay_org,fund_account,supplement_fund_account,fund_scheme_id,fund_payment_base_string,other_pay_org,other_scheme_id,other_payment_base_string,social_per_json, social_per_sum,fund_per_json,fund_per_sum,other_per_json,other_per_sum,per_sum,social_com_json,social_com_sum,fund_com_json,fund_com_sum,other_com_json,other_com_sum, com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization) select #{item.employeeId,jdbcType=DOUBLE}, #{item.billMonth,jdbcType=VARCHAR}, #{item.billStatus,jdbcType=INTEGER}, #{item.paymentStatus,jdbcType=INTEGER}, #{item.supplementaryMonth,jdbcType=VARCHAR}, #{item.supplementaryProjects,jdbcType=VARCHAR}, #{item.resourceFrom,jdbcType=INTEGER}, #{item.socialPayOrg,jdbcType=DOUBLE}, #{item.socialAccount,jdbcType=VARCHAR}, #{item.socialSchemeId,jdbcType=DOUBLE}, #{item.socialPaymentBaseString,jdbcType=VARCHAR}, #{item.fundPayOrg,jdbcType=DOUBLE}, #{item.fundAccount,jdbcType=VARCHAR}, #{item.supplementFundAccount,jdbcType=VARCHAR}, #{item.fundSchemeId,jdbcType=DOUBLE}, #{item.fundPaymentBaseString,jdbcType=VARCHAR}, #{item.otherPayOrg,jdbcType=DOUBLE}, #{item.otherSchemeId,jdbcType=DOUBLE}, #{item.otherPaymentBaseString,jdbcType=VARCHAR}, #{item.socialPerJson,jdbcType=VARCHAR}, #{item.socialPerSum,jdbcType=VARCHAR}, #{item.fundPerJson,jdbcType=VARCHAR}, #{item.fundPerSum,jdbcType=VARCHAR}, #{item.otherPerJson,jdbcType=VARCHAR}, #{item.otherPerSum,jdbcType=VARCHAR}, #{item.perSum,jdbcType=VARCHAR}, #{item.socialComJson,jdbcType=VARCHAR}, #{item.socialComSum,jdbcType=VARCHAR}, #{item.fundComJson,jdbcType=VARCHAR}, #{item.fundComSum,jdbcType=VARCHAR}, #{item.otherComJson,jdbcType=VARCHAR}, #{item.otherComSum,jdbcType=VARCHAR}, #{item.comSum,jdbcType=VARCHAR}, #{item.socialSum,jdbcType=VARCHAR}, #{item.fundSum,jdbcType=VARCHAR}, #{item.otherSum,jdbcType=VARCHAR}, #{item.total,jdbcType=VARCHAR}, #{item.creator,jdbcType=DOUBLE}, #{item.createTime}, #{item.updateTime}, #{item.deleteType}, #{item.tenantKey,jdbcType=VARCHAR}, #{item.paymentOrganization,jdbcType=DOUBLE} from dual INSERT INTO hrsa_bill_detail (employee_id,bill_month,bill_status,payment_status,supplementary_month,supplementary_projects,resource_from,social_pay_org,social_account,social_scheme_id,social_payment_base_string, fund_pay_org,fund_account,supplement_fund_account,fund_scheme_id,fund_payment_base_string,other_pay_org,other_scheme_id,other_payment_base_string,social_per_json, social_per_sum,fund_per_json,fund_per_sum,other_per_json,other_per_sum,per_sum,social_com_json,social_com_sum,fund_com_json,fund_com_sum,other_com_json,other_com_sum, com_sum,social_sum,fund_sum,other_sum,total,creator,create_time,update_time,delete_type,tenant_key,payment_organization) VALUES ( #{item.employeeId}, #{item.billMonth}, #{item.billStatus}, #{item.paymentStatus}, #{item.supplementaryMonth}, #{item.supplementaryProjects}, #{item.resourceFrom}, #{item.socialPayOrg}, #{item.socialAccount}, #{item.socialSchemeId}, #{item.socialPaymentBaseString}, #{item.fundPayOrg}, #{item.fundAccount}, #{item.supplementFundAccount}, #{item.fundSchemeId}, #{item.fundPaymentBaseString}, #{item.otherPayOrg}, #{item.otherSchemeId}, #{item.otherPaymentBaseString}, #{item.socialPerJson}, #{item.socialPerSum}, #{item.fundPerJson}, #{item.fundPerSum}, #{item.otherPerJson}, #{item.otherPerSum}, #{item.perSum}, #{item.socialComJson}, #{item.socialComSum}, #{item.fundComJson}, #{item.fundComSum}, #{item.otherComJson}, #{item.otherComSum}, #{item.comSum}, #{item.socialSum}, #{item.fundSum}, #{item.otherSum}, #{item.total}, #{item.creator}, #{item.createTime}, #{item.updateTime}, #{item.deleteType}, #{item.tenantKey}, #{item.paymentOrganization} ) AND e.lastname like CONCAT('%',#{userName},'%') AND e.lastname like '%'||#{userName}||'%' AND e.lastname like '%'+#{userName}+'%' UPDATE hrsa_bill_detail social_per_json = #{socialPerJson}, social_per_sum = #{socialPerSum}, fund_per_json = #{fundPerJson}, fund_per_sum = #{fundPerSum}, other_per_json = #{otherPerJson}, other_per_sum = #{otherPerSum}, per_sum = #{perSum}, com_sum = #{comSum}, social_com_json = #{socialComJson}, social_com_sum = #{socialComSum}, fund_com_json = #{fundComJson}, fund_com_sum = #{fundComSum}, other_com_json = #{otherComJson}, other_com_sum = #{otherComSum}, social_sum = #{socialSum}, fund_sum = #{fundSum}, other_sum = #{otherSum}, total = #{total}, update_time = #{updateTime}, supplementary_month = #{supplementaryMonth}, WHERE id = #{id} update hrsa_bill_detail when id=#{item.id} then #{item.socialPaymentBaseString} when id=#{item.id} then #{item.fundPaymentBaseString} when id=#{item.id} then #{item.socialPerJson} when id=#{item.id} then #{item.socialPerSum} when id=#{item.id} then #{item.fundPerJson} when id=#{item.id} then #{item.fundPerSum} when id=#{item.id} then #{item.otherPerJson} when id=#{item.id} then #{item.otherPerSum} when id=#{item.id} then #{item.perSum} when id=#{item.id} then #{item.socialComJson} when id=#{item.id} then #{item.socialComSum} when id=#{item.id} then #{item.fundComJson} when id=#{item.id} then #{item.fundComSum} when id=#{item.id} then #{item.otherComJson} when id=#{item.id} then #{item.otherComSum} when id=#{item.id} then #{item.comSum} when id=#{item.id} then #{item.socialSum} when id=#{item.id} then #{item.fundSum} when id=#{item.id} then #{item.otherSum} when id=#{item.id} then #{item.total} where id in #{item.id}