oracle 自增返回
This commit is contained in:
parent
6ad9e30bca
commit
224c823590
|
|
@ -83,6 +83,36 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.taxrate.SysTaxRateBase" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_sys_tax_rate_base_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_sys_tax_rate_base
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
create_time,
|
||||
creator,
|
||||
delete_type,
|
||||
description,
|
||||
id,
|
||||
name,
|
||||
system_type,
|
||||
tenant_key,
|
||||
update_time,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{createTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{description},
|
||||
#{id},
|
||||
#{name},
|
||||
#{systemType},
|
||||
#{tenantKey},
|
||||
#{updateTime},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 插入不为NULL的字段 -->
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxrate.SysTaxRateBase"
|
||||
keyProperty="id" keyColumn="id" useGeneratedKeys="true"
|
||||
|
|
@ -149,6 +179,74 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxrate.SysTaxRateBase" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_sys_tax_rate_base_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_sys_tax_rate_base
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="systemType != null">
|
||||
system_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="systemType != null">
|
||||
#{systemType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.taxrate.SysTaxRateBase">
|
||||
UPDATE hrsa_sys_tax_rate_base
|
||||
|
|
|
|||
|
|
@ -90,6 +90,34 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.taxrate.TaxAgent" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_agent_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_agent
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
create_time,
|
||||
creator,
|
||||
delete_type,
|
||||
description,
|
||||
id,
|
||||
name,
|
||||
tenant_key,
|
||||
update_time,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{createTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{description},
|
||||
#{id},
|
||||
#{name},
|
||||
#{tenantKey},
|
||||
#{updateTime},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 插入不为NULL的字段 -->
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxrate.TaxAgent">
|
||||
INSERT INTO hrsa_tax_agent
|
||||
|
|
|
|||
|
|
@ -86,6 +86,36 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.taxrate.TaxRateBase" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_rate_base_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_rate_base
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
create_time,
|
||||
creator,
|
||||
delete_type,
|
||||
description,
|
||||
id,
|
||||
name,
|
||||
system_type,
|
||||
tenant_key,
|
||||
update_time,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{createTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{description},
|
||||
#{id},
|
||||
#{name},
|
||||
#{systemType},
|
||||
#{tenantKey},
|
||||
#{updateTime},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 插入不为NULL的字段 -->
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxrate.TaxRateBase"
|
||||
keyProperty="id" keyColumn="id" useGeneratedKeys="true"
|
||||
|
|
|
|||
|
|
@ -99,6 +99,50 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.taxrate.TaxRateDetail" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_rate_detail_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_rate_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
base_id,
|
||||
create_time,
|
||||
creator,
|
||||
delete_type,
|
||||
duty_free_rate,
|
||||
duty_free_value,
|
||||
id,
|
||||
income_lower_limit,
|
||||
income_upper_limit,
|
||||
index_num,
|
||||
tax_deduction,
|
||||
tax_rate,
|
||||
taxable_income_ll,
|
||||
taxable_income_ul,
|
||||
tenant_key,
|
||||
update_time,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{baseId},
|
||||
#{createTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{dutyFreeRate},
|
||||
#{dutyFreeValue},
|
||||
#{id},
|
||||
#{incomeLowerLimit},
|
||||
#{incomeUpperLimit},
|
||||
#{indexNum},
|
||||
#{taxDeduction},
|
||||
#{taxRate},
|
||||
#{taxableIncomeLl},
|
||||
#{taxableIncomeUl},
|
||||
#{tenantKey},
|
||||
#{updateTime},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 插入不为NULL的字段 -->
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxrate.TaxRateDetail"
|
||||
keyProperty="id" keyColumn="id" useGeneratedKeys="true"
|
||||
|
|
@ -207,6 +251,117 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxrate.TaxRateDetail" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_rate_detail_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_rate_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="baseId != null">
|
||||
base_id,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="dutyFreeRate != null">
|
||||
duty_free_rate,
|
||||
</if>
|
||||
<if test="dutyFreeValue != null">
|
||||
duty_free_value,
|
||||
</if>
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="incomeLowerLimit != null">
|
||||
income_lower_limit,
|
||||
</if>
|
||||
<if test="incomeUpperLimit != null">
|
||||
income_upper_limit,
|
||||
</if>
|
||||
<if test="indexNum != null">
|
||||
index_num,
|
||||
</if>
|
||||
<if test="taxDeduction != null">
|
||||
tax_deduction,
|
||||
</if>
|
||||
<if test="taxRate != null">
|
||||
tax_rate,
|
||||
</if>
|
||||
<if test="taxableIncomeLl != null">
|
||||
taxable_income_ll,
|
||||
</if>
|
||||
<if test="taxableIncomeUl != null">
|
||||
taxable_income_ul,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="baseId != null">
|
||||
#{baseId},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="dutyFreeRate != null">
|
||||
#{dutyFreeRate},
|
||||
</if>
|
||||
<if test="dutyFreeValue != null">
|
||||
#{dutyFreeValue},
|
||||
</if>
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="incomeLowerLimit != null">
|
||||
#{incomeLowerLimit},
|
||||
</if>
|
||||
<if test="incomeUpperLimit != null">
|
||||
#{incomeUpperLimit},
|
||||
</if>
|
||||
<if test="indexNum != null">
|
||||
#{indexNum},
|
||||
</if>
|
||||
<if test="taxDeduction != null">
|
||||
#{taxDeduction},
|
||||
</if>
|
||||
<if test="taxRate != null">
|
||||
#{taxRate},
|
||||
</if>
|
||||
<if test="taxableIncomeLl != null">
|
||||
#{taxableIncomeLl},
|
||||
</if>
|
||||
<if test="taxableIncomeUl != null">
|
||||
#{taxableIncomeUl},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.taxrate.TaxRateDetail">
|
||||
UPDATE hrsa_tax_rate_detail
|
||||
|
|
|
|||
|
|
@ -132,6 +132,61 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryarchive.po.SalaryArchiveDimissionPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_archive_dimission_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_archive_dimission
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="dimissionTimeInterval != null">
|
||||
dimission_time_interval,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="dimissionTimeInterval != null">
|
||||
#{dimissionTimeInterval},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salaryarchive.po.SalaryArchiveDimissionPO">
|
||||
UPDATE hrsa_salary_archive_dimission
|
||||
|
|
|
|||
|
|
@ -220,6 +220,109 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryarchive.po.SalaryArchiveItemPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_archive_item_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_archive_item
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salaryArchiveId != null">
|
||||
salary_archive_id,
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
employee_id,
|
||||
</if>
|
||||
<if test="effectiveTime != null">
|
||||
effective_time,
|
||||
</if>
|
||||
<if test="adjustReason != null">
|
||||
adjust_reason,
|
||||
</if>
|
||||
<if test="salaryItemId != null">
|
||||
salary_item_id,
|
||||
</if>
|
||||
<if test="itemValue != null">
|
||||
item_value,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="operator != null">
|
||||
operator,
|
||||
</if>
|
||||
<if test="operateTime != null">
|
||||
operate_time,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salaryArchiveId != null">
|
||||
#{salaryArchiveId},
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
#{employeeId},
|
||||
</if>
|
||||
<if test="effectiveTime != null">
|
||||
#{effectiveTime},
|
||||
</if>
|
||||
<if test="adjustReason != null">
|
||||
#{adjustReason},
|
||||
</if>
|
||||
<if test="salaryItemId != null">
|
||||
#{salaryItemId},
|
||||
</if>
|
||||
<if test="itemValue != null">
|
||||
#{itemValue},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="operator != null">
|
||||
#{operator},
|
||||
</if>
|
||||
<if test="operateTime != null">
|
||||
#{operateTime},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salaryarchive.po.SalaryArchiveItemPO">
|
||||
UPDATE hrsa_salary_archive_item
|
||||
|
|
|
|||
|
|
@ -215,6 +215,103 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryarchive.po.SalaryArchiveTaxAgentPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_archive_tax_agent_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_archive_tax_agent
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salaryArchiveId != null">
|
||||
salary_archive_id,
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
employee_id,
|
||||
</if>
|
||||
<if test="effectiveTime != null">
|
||||
effective_time,
|
||||
</if>
|
||||
<if test="adjustReason != null">
|
||||
adjust_reason,
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
tax_agent_id,
|
||||
</if>
|
||||
<if test="operator != null">
|
||||
operator,
|
||||
</if>
|
||||
<if test="operateTime != null">
|
||||
operate_time,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salaryArchiveId != null">
|
||||
#{salaryArchiveId},
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
#{employeeId},
|
||||
</if>
|
||||
<if test="effectiveTime != null">
|
||||
#{effectiveTime},
|
||||
</if>
|
||||
<if test="adjustReason != null">
|
||||
#{adjustReason},
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
#{taxAgentId},
|
||||
</if>
|
||||
<if test="operator != null">
|
||||
#{operator},
|
||||
</if>
|
||||
<if test="operateTime != null">
|
||||
#{operateTime},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salaryarchive.po.SalaryArchiveTaxAgentPO">
|
||||
UPDATE hrsa_salary_archive_tax_agent
|
||||
|
|
|
|||
|
|
@ -126,6 +126,85 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.datacollection.po.AttendQuoteDataValuePO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_attend_quote_data_value_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_attend_quote_data_value
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
employee_id,
|
||||
</if>
|
||||
<if test="attendQuoteId != null">
|
||||
attend_quote_id,
|
||||
</if>
|
||||
<if test="attendQuoteDataId != null">
|
||||
attend_quote_data_id,
|
||||
</if>
|
||||
<if test="attendQuoteFieldId != null">
|
||||
attend_quote_field_id,
|
||||
</if>
|
||||
<if test="dataValue != null">
|
||||
data_value,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
#{employeeId},
|
||||
</if>
|
||||
<if test="attendQuoteId != null">
|
||||
#{attendQuoteId},
|
||||
</if>
|
||||
<if test="attendQuoteDataId != null">
|
||||
#{attendQuoteDataId},
|
||||
</if>
|
||||
<if test="attendQuoteFieldId != null">
|
||||
#{attendQuoteFieldId},
|
||||
</if>
|
||||
<if test="dataValue != null">
|
||||
#{dataValue},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.datacollection.po.AttendQuoteDataValuePO">
|
||||
UPDATE hrsa_attend_quote_data_value
|
||||
|
|
|
|||
|
|
@ -134,6 +134,91 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.datacollection.po.AttendQuoteFieldPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_attend_quote_field_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_attend_quote_field
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="fieldName != null">
|
||||
field_name,
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
source_type,
|
||||
</if>
|
||||
<if test="fieldType != null">
|
||||
field_type,
|
||||
</if>
|
||||
<if test="enableStatus != null">
|
||||
enable_status,
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="fieldName != null">
|
||||
#{fieldName},
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
#{sourceType},
|
||||
</if>
|
||||
<if test="fieldType != null">
|
||||
#{fieldType},
|
||||
</if>
|
||||
<if test="enableStatus != null">
|
||||
#{enableStatus},
|
||||
</if>
|
||||
<if test="code != null">
|
||||
#{code},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.datacollection.po.AttendQuoteFieldPO">
|
||||
UPDATE hrsa_attend_quote_field
|
||||
|
|
|
|||
|
|
@ -110,6 +110,73 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.datacollection.po.AttendQuoteFieldSettingPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_attend_quote_sync_set_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_attend_quote_sync_set
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
source_type,
|
||||
</if>
|
||||
<if test="currentSettingContent != null">
|
||||
current_setting_content,
|
||||
</if>
|
||||
<if test="defaultSettingContent != null">
|
||||
default_setting_content,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
#{sourceType},
|
||||
</if>
|
||||
<if test="currentSettingContent != null">
|
||||
#{currentSettingContent},
|
||||
</if>
|
||||
<if test="defaultSettingContent != null">
|
||||
#{defaultSettingContent},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.datacollection.po.AttendQuoteFieldSettingPO">
|
||||
UPDATE hrsa_attend_quote_sync_set
|
||||
|
|
|
|||
|
|
@ -142,6 +142,97 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.datacollection.po.OtherDeductionPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_other_deduction_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_other_deduction
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
employee_id,
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
tax_agent_id,
|
||||
</if>
|
||||
<if test="declareMonth != null">
|
||||
declare_month,
|
||||
</if>
|
||||
<if test="businessHealthyInsurance != null">
|
||||
business_healthy_insurance,
|
||||
</if>
|
||||
<if test="taxDelayEndowmentInsurance != null">
|
||||
tax_delay_endowment_insurance,
|
||||
</if>
|
||||
<if test="otherDeduction != null">
|
||||
other_deduction,
|
||||
</if>
|
||||
<if test="deductionAllowedDonation != null">
|
||||
deduction_allowed_donation,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
#{employeeId},
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
#{taxAgentId},
|
||||
</if>
|
||||
<if test="declareMonth != null">
|
||||
#{declareMonth},
|
||||
</if>
|
||||
<if test="businessHealthyInsurance != null">
|
||||
#{businessHealthyInsurance},
|
||||
</if>
|
||||
<if test="taxDelayEndowmentInsurance != null">
|
||||
#{taxDelayEndowmentInsurance},
|
||||
</if>
|
||||
<if test="otherDeduction != null">
|
||||
#{otherDeduction},
|
||||
</if>
|
||||
<if test="deductionAllowedDonation != null">
|
||||
#{deductionAllowedDonation},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.datacollection.po.OtherDeductionPO">
|
||||
UPDATE hrsa_other_deduction
|
||||
|
|
|
|||
|
|
@ -203,6 +203,91 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryacct.po.SalaryAcctRecordPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_acct_record_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_acct_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salaryMonth != null">
|
||||
salary_month,
|
||||
</if>
|
||||
<if test="taxCycle != null">
|
||||
tax_cycle,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="acctTimes != null">
|
||||
acct_times,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salaryMonth != null">
|
||||
#{salaryMonth},
|
||||
</if>
|
||||
<if test="taxCycle != null">
|
||||
#{taxCycle},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status},
|
||||
</if>
|
||||
<if test="acctTimes != null">
|
||||
#{acctTimes},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salaryacct.po.SalaryAcctRecordPO">
|
||||
UPDATE hrsa_salary_acct_record
|
||||
|
|
|
|||
|
|
@ -217,6 +217,97 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryacct.po.SalaryAcctResultPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_acct_result_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_acct_result
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="salaryAcctEmpId != null">
|
||||
salary_acct_emp_id,
|
||||
</if>
|
||||
<if test="salaryAcctRecordId != null">
|
||||
salary_acct_record_id,
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
employee_id,
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
tax_agent_id,
|
||||
</if>
|
||||
<if test="salaryItemId != null">
|
||||
salary_item_id,
|
||||
</if>
|
||||
<if test="resultValue != null">
|
||||
result_value,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="salaryAcctEmpId != null">
|
||||
#{salaryAcctEmpId},
|
||||
</if>
|
||||
<if test="salaryAcctRecordId != null">
|
||||
#{salaryAcctRecordId},
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
#{employeeId},
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
#{taxAgentId},
|
||||
</if>
|
||||
<if test="salaryItemId != null">
|
||||
#{salaryItemId},
|
||||
</if>
|
||||
<if test="resultValue != null">
|
||||
#{resultValue},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salaryacct.po.SalaryAcctResultPO">
|
||||
UPDATE hrsa_salary_acct_result
|
||||
|
|
|
|||
|
|
@ -282,6 +282,91 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryBill.po.SalarySendPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_send_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_send
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salaryMonth != null">
|
||||
salary_month,
|
||||
</if>
|
||||
<if test="salaryAccountingId != null">
|
||||
salary_accounting_id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="sendNum != null">
|
||||
send_num,
|
||||
</if>
|
||||
<if test="sendTotal != null">
|
||||
send_total,
|
||||
</if>
|
||||
<if test="lastSendTime != null">
|
||||
last_send_time,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salaryMonth != null">
|
||||
#{salaryMonth},
|
||||
</if>
|
||||
<if test="salaryAccountingId != null">
|
||||
#{salaryAccountingId},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="sendNum != null">
|
||||
#{sendNum},
|
||||
</if>
|
||||
<if test="sendTotal != null">
|
||||
#{sendTotal},
|
||||
</if>
|
||||
<if test="lastSendTime != null">
|
||||
#{lastSendTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -491,6 +491,139 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryBill.po.SalaryTemplatePO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_template_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_template
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="useType != null">
|
||||
use_type,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="emailStatus != null">
|
||||
email_status,
|
||||
</if>
|
||||
<if test="sendEmailId != null">
|
||||
send_email_id,
|
||||
</if>
|
||||
<if test="msgStatus != null">
|
||||
msg_status,
|
||||
</if>
|
||||
<if test="theme != null">
|
||||
theme,
|
||||
</if>
|
||||
<if test="background != null">
|
||||
background,
|
||||
</if>
|
||||
<if test="textContent != null">
|
||||
text_content,
|
||||
</if>
|
||||
<if test="textContentPosition != null">
|
||||
text_content_position,
|
||||
</if>
|
||||
<if test="salaryItemNullStatus != null">
|
||||
salary_item_null_status,
|
||||
</if>
|
||||
<if test="salaryItemZeroStatus != null">
|
||||
salary_item_zero_status,
|
||||
</if>
|
||||
<if test="salaryItemSetting != null">
|
||||
salary_item_setting,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="useType != null">
|
||||
#{useType},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="emailStatus != null">
|
||||
#{emailStatus},
|
||||
</if>
|
||||
<if test="sendEmailId != null">
|
||||
#{sendEmailId},
|
||||
</if>
|
||||
<if test="msgStatus != null">
|
||||
#{msgStatus},
|
||||
</if>
|
||||
<if test="theme != null">
|
||||
#{theme},
|
||||
</if>
|
||||
<if test="background != null">
|
||||
#{background},
|
||||
</if>
|
||||
<if test="textContent != null">
|
||||
#{textContent},
|
||||
</if>
|
||||
<if test="textContentPosition != null">
|
||||
#{textContentPosition},
|
||||
</if>
|
||||
<if test="salaryItemNullStatus != null">
|
||||
#{salaryItemNullStatus},
|
||||
</if>
|
||||
<if test="salaryItemZeroStatus != null">
|
||||
#{salaryItemZeroStatus},
|
||||
</if>
|
||||
<if test="salaryItemSetting != null">
|
||||
#{salaryItemSetting},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<!-- 更新不为NULL的字段 -->
|
||||
<update id="updateUsetypeBySalarySobId" parameterType="com.engine.salary.entity.salaryBill.po.SalaryTemplatePO">
|
||||
|
|
|
|||
|
|
@ -253,6 +253,127 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salaryitem.po.SysSalaryItemPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_sys_salary_item_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_sys_salary_item
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code,
|
||||
</if>
|
||||
<if test="systemType != null">
|
||||
system_type,
|
||||
</if>
|
||||
<if test="useDefault != null">
|
||||
use_default,
|
||||
</if>
|
||||
<if test="useInEmployeeSalary != null">
|
||||
use_in_employee_salary,
|
||||
</if>
|
||||
<if test="roundingMode != null">
|
||||
rounding_mode,
|
||||
</if>
|
||||
<if test="pattern != null">
|
||||
pattern,
|
||||
</if>
|
||||
<if test="valueType != null">
|
||||
value_type,
|
||||
</if>
|
||||
<if test="formulaId != null">
|
||||
formula_id,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="canEdit != null">
|
||||
can_edit,
|
||||
</if>
|
||||
<if test="dataType != null">
|
||||
data_type,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="code != null">
|
||||
#{code},
|
||||
</if>
|
||||
<if test="systemType != null">
|
||||
#{systemType},
|
||||
</if>
|
||||
<if test="useDefault != null">
|
||||
#{useDefault},
|
||||
</if>
|
||||
<if test="useInEmployeeSalary != null">
|
||||
#{useInEmployeeSalary},
|
||||
</if>
|
||||
<if test="roundingMode != null">
|
||||
#{roundingMode},
|
||||
</if>
|
||||
<if test="pattern != null">
|
||||
#{pattern},
|
||||
</if>
|
||||
<if test="valueType != null">
|
||||
#{valueType},
|
||||
</if>
|
||||
<if test="formulaId != null">
|
||||
#{formulaId},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="canEdit != null">
|
||||
#{canEdit},
|
||||
</if>
|
||||
<if test="dataType != null">
|
||||
#{dataType},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salaryitem.po.SysSalaryItemPO">
|
||||
UPDATE hrsa_sys_salary_item
|
||||
|
|
|
|||
|
|
@ -176,6 +176,85 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobAdjustRulePO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_adjust_rule_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob_adjust_rule
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="salaryItemId != null">
|
||||
salary_item_id,
|
||||
</if>
|
||||
<if test="dayOfMonth != null">
|
||||
day_of_month,
|
||||
</if>
|
||||
<if test="beforeAdjustmentType != null">
|
||||
before_adjustment_type,
|
||||
</if>
|
||||
<if test="afterAdjustmentType != null">
|
||||
after_adjustment_type,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="salaryItemId != null">
|
||||
#{salaryItemId},
|
||||
</if>
|
||||
<if test="dayOfMonth != null">
|
||||
#{dayOfMonth},
|
||||
</if>
|
||||
<if test="beforeAdjustmentType != null">
|
||||
#{beforeAdjustmentType},
|
||||
</if>
|
||||
<if test="afterAdjustmentType != null">
|
||||
#{afterAdjustmentType},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobAdjustRulePO">
|
||||
UPDATE hrsa_salary_sob_adjust_rule
|
||||
|
|
|
|||
|
|
@ -204,6 +204,79 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobCheckRulePO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_check_rule_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob_check_rule
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="formulaId != null">
|
||||
formula_id,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="formulaId != null">
|
||||
#{formulaId},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobCheckRulePO">
|
||||
UPDATE hrsa_salary_sob_check_rule
|
||||
|
|
|
|||
|
|
@ -154,6 +154,74 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobDefaultEmpFieldPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_sob_default_emp_field_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_sob_default_emp_field
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="fieldCode != null">
|
||||
field_code,
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index,
|
||||
</if>
|
||||
<if test="canDelete != null">
|
||||
can_delete,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="fieldCode != null">
|
||||
#{fieldCode},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
#{sortedIndex},
|
||||
</if>
|
||||
<if test="canDelete != null">
|
||||
#{canDelete},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobDefaultEmpFieldPO">
|
||||
UPDATE hrsa_sob_default_emp_field
|
||||
|
|
|
|||
|
|
@ -165,6 +165,79 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobDefaultItemGroupPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_sob_default_item_group_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_sob_default_item_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="incomeCategory != null">
|
||||
income_category,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="incomeCategory != null">
|
||||
#{incomeCategory},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
#{sortedIndex},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobDefaultItemGroupPO">
|
||||
UPDATE hrsa_sob_default_item_group
|
||||
|
|
|
|||
|
|
@ -181,6 +181,91 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobDefaultItemPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_default_item_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob_default_item
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="incomeCategory != null">
|
||||
income_category,
|
||||
</if>
|
||||
<if test="sysSalaryItemId != null">
|
||||
sys_salary_item_id,
|
||||
</if>
|
||||
<if test="canEdit != null">
|
||||
can_edit,
|
||||
</if>
|
||||
<if test="canDelete != null">
|
||||
can_delete,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
<if test="sobDefaultItemGroupId != null">
|
||||
sob_default_item_group_id,
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="incomeCategory != null">
|
||||
#{incomeCategory},
|
||||
</if>
|
||||
<if test="sysSalaryItemId != null">
|
||||
#{sysSalaryItemId},
|
||||
</if>
|
||||
<if test="canEdit != null">
|
||||
#{canEdit},
|
||||
</if>
|
||||
<if test="canDelete != null">
|
||||
#{canDelete},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
<if test="sobDefaultItemGroupId != null">
|
||||
#{sobDefaultItemGroupId},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
#{sortedIndex},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobDefaultItemPO">
|
||||
UPDATE hrsa_salary_sob_default_item
|
||||
|
|
|
|||
|
|
@ -165,6 +165,79 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobEmpFieldPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_emp_field_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob_emp_field
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="fieldCode != null">
|
||||
field_code,
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index,
|
||||
</if>
|
||||
<if test="canDelete != null">
|
||||
can_delete,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="fieldCode != null">
|
||||
#{fieldCode},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
#{sortedIndex},
|
||||
</if>
|
||||
<if test="canDelete != null">
|
||||
#{canDelete},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobEmpFieldPO">
|
||||
UPDATE hrsa_salary_sob_emp_field
|
||||
|
|
|
|||
|
|
@ -165,6 +165,79 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobItemGroupPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_item_group_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob_item_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
sorted_index,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</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="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="sortedIndex != null">
|
||||
#{sortedIndex},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobItemGroupPO">
|
||||
UPDATE hrsa_salary_sob_item_group
|
||||
|
|
|
|||
|
|
@ -230,6 +230,115 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="incomeCategory != null">
|
||||
income_category,
|
||||
</if>
|
||||
<if test="salaryCycleType != null">
|
||||
salary_cycle_type,
|
||||
</if>
|
||||
<if test="salaryCycleFromDay != null">
|
||||
salary_cycle_from_day,
|
||||
</if>
|
||||
<if test="taxCycleType != null">
|
||||
tax_cycle_type,
|
||||
</if>
|
||||
<if test="attendCycleType != null">
|
||||
attend_cycle_type,
|
||||
</if>
|
||||
<if test="attendCycleFromDay != null">
|
||||
attend_cycle_from_day,
|
||||
</if>
|
||||
<if test="socialSecurityCycleType != null">
|
||||
social_security_cycle_type,
|
||||
</if>
|
||||
<if test="disable != null">
|
||||
disable,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="incomeCategory != null">
|
||||
#{incomeCategory},
|
||||
</if>
|
||||
<if test="salaryCycleType != null">
|
||||
#{salaryCycleType},
|
||||
</if>
|
||||
<if test="salaryCycleFromDay != null">
|
||||
#{salaryCycleFromDay},
|
||||
</if>
|
||||
<if test="taxCycleType != null">
|
||||
#{taxCycleType},
|
||||
</if>
|
||||
<if test="attendCycleType != null">
|
||||
#{attendCycleType},
|
||||
</if>
|
||||
<if test="attendCycleFromDay != null">
|
||||
#{attendCycleFromDay},
|
||||
</if>
|
||||
<if test="socialSecurityCycleType != null">
|
||||
#{socialSecurityCycleType},
|
||||
</if>
|
||||
<if test="disable != null">
|
||||
#{disable},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobPO">
|
||||
UPDATE hrsa_salary_sob
|
||||
|
|
|
|||
|
|
@ -176,6 +176,85 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.salarysob.po.SalarySobRangePO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_salary_sob_range_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_salary_sob_range
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
salary_sob_id,
|
||||
</if>
|
||||
<if test="targetType != null">
|
||||
target_type,
|
||||
</if>
|
||||
<if test="targetId != null">
|
||||
target_id,
|
||||
</if>
|
||||
<if test="employeeStatus != null">
|
||||
employee_status,
|
||||
</if>
|
||||
<if test="includeType != null">
|
||||
include_type,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salarySobId != null">
|
||||
#{salarySobId},
|
||||
</if>
|
||||
<if test="targetType != null">
|
||||
#{targetType},
|
||||
</if>
|
||||
<if test="targetId != null">
|
||||
#{targetId},
|
||||
</if>
|
||||
<if test="employeeStatus != null">
|
||||
#{employeeStatus},
|
||||
</if>
|
||||
<if test="includeType != null">
|
||||
#{includeType},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.salarysob.po.SalarySobRangePO">
|
||||
UPDATE hrsa_salary_sob_range
|
||||
|
|
|
|||
|
|
@ -79,6 +79,40 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.sicategory.po.ICategoryPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_insurance_category_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_insurance_category
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
id,
|
||||
insurance_name,
|
||||
welfare_type,
|
||||
is_use,
|
||||
payment_scope,
|
||||
data_type,
|
||||
create_time,
|
||||
update_time,
|
||||
creator,
|
||||
delete_type,
|
||||
tenant_key,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{id},
|
||||
#{insuranceName},
|
||||
#{welfareType},
|
||||
#{isUse},
|
||||
#{paymentScope},
|
||||
#{dataType},
|
||||
#{createTime},
|
||||
#{updateTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{tenantKey},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<select id="listByName" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
|
|
|
|||
|
|
@ -140,6 +140,52 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.sischeme.po.InsuranceSchemeDetailPO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_scheme_detail_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_scheme_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
primary_id,
|
||||
insurance_id,
|
||||
effective_time,
|
||||
expiration_time,
|
||||
is_payment,
|
||||
payment_scope,
|
||||
upper_limit,
|
||||
lower_limit,
|
||||
payment_proportion,
|
||||
fixed_cost,
|
||||
valid_num,
|
||||
rentention_rule,
|
||||
create_time,
|
||||
update_time,
|
||||
creator,
|
||||
delete_type,
|
||||
tenant_key,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{primaryId},
|
||||
#{insuranceId},
|
||||
#{effectiveTime},
|
||||
#{expirationTime},
|
||||
#{isPayment},
|
||||
#{paymentScope},
|
||||
#{upperLimit},
|
||||
#{lowerLimit},
|
||||
#{paymentProportion},
|
||||
#{fixedCost},
|
||||
#{validNum},
|
||||
#{rententionRule},
|
||||
#{createTime},
|
||||
#{updateTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{tenantKey},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<delete id="batchDeleteByPrimaryIds">
|
||||
UPDATE hrsa_scheme_detail
|
||||
SET delete_type = 1
|
||||
|
|
|
|||
|
|
@ -101,6 +101,40 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.sischeme.po.InsuranceSchemePO" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_social_security_scheme_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_social_security_scheme
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
payment_area,
|
||||
payment_type,
|
||||
scheme_name,
|
||||
welfare_type,
|
||||
is_use,
|
||||
remarks,
|
||||
create_time,
|
||||
update_time,
|
||||
creator,
|
||||
delete_type,
|
||||
tenant_key,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{paymentArea},
|
||||
#{paymentType},
|
||||
#{schemeName},
|
||||
#{welfareType},
|
||||
#{isUse},
|
||||
#{remarks},
|
||||
#{createTime},
|
||||
#{updateTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{tenantKey},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新修改字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.sischeme.po.InsuranceSchemePO">
|
||||
UPDATE hrsa_social_security_scheme
|
||||
|
|
|
|||
|
|
@ -103,6 +103,38 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insert" parameterType="com.engine.salary.entity.taxdeclaration.TaxDeclarationDetail" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_declaration_detail_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_declaration_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
create_time,
|
||||
creator,
|
||||
delete_type,
|
||||
employee_id,
|
||||
field_code,
|
||||
field_value,
|
||||
id,
|
||||
tax_declaration_id,
|
||||
tenant_key,
|
||||
update_time,
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
#{createTime},
|
||||
#{creator},
|
||||
#{deleteType},
|
||||
#{employeeId},
|
||||
#{fieldCode},
|
||||
#{fieldValue},
|
||||
#{id},
|
||||
#{taxDeclarationId},
|
||||
#{tenantKey},
|
||||
#{updateTime},
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 插入不为NULL的字段 -->
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxdeclaration.TaxDeclarationDetail"
|
||||
keyProperty="id" keyColumn="id" useGeneratedKeys="true"
|
||||
|
|
@ -174,6 +206,81 @@
|
|||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxdeclaration.TaxDeclarationDetail" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_declaration_detail_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_declaration_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
employee_id,
|
||||
</if>
|
||||
<if test="fieldCode != null">
|
||||
field_code,
|
||||
</if>
|
||||
<if test="fieldValue != null">
|
||||
field_value,
|
||||
</if>
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="taxDeclarationId != null">
|
||||
tax_declaration_id,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="employeeId != null">
|
||||
#{employeeId},
|
||||
</if>
|
||||
<if test="fieldCode != null">
|
||||
#{fieldCode},
|
||||
</if>
|
||||
<if test="fieldValue != null">
|
||||
#{fieldValue},
|
||||
</if>
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="taxDeclarationId != null">
|
||||
#{taxDeclarationId},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<insert id="batchInsert">
|
||||
INSERT INTO hrsa_tax_declaration_detail
|
||||
(id, tax_declaration_id, employee_id, field_code, field_value, creator,
|
||||
|
|
|
|||
|
|
@ -190,6 +190,79 @@
|
|||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertIgnoreNull" parameterType="com.engine.salary.entity.taxdeclaration.TaxDeclaration" databaseId="oracle"
|
||||
>
|
||||
<selectKey keyProperty="id" resultType="int" order="BEFORE">
|
||||
select hrsa_tax_declaration_id.nextval from dual
|
||||
</selectKey>
|
||||
INSERT INTO hrsa_tax_declaration
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
delete_type,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="salaryMonth != null">
|
||||
salary_month,
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
tax_agent_id,
|
||||
</if>
|
||||
<if test="taxCycle != null">
|
||||
tax_cycle,
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
tenant_key,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="deleteType != null">
|
||||
#{deleteType},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description},
|
||||
</if>
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="salaryMonth != null">
|
||||
#{salaryMonth},
|
||||
</if>
|
||||
<if test="taxAgentId != null">
|
||||
#{taxAgentId},
|
||||
</if>
|
||||
<if test="taxCycle != null">
|
||||
#{taxCycle},
|
||||
</if>
|
||||
<if test="tenantKey != null">
|
||||
#{tenantKey},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 更新,更新全部字段 -->
|
||||
<update id="update" parameterType="com.engine.salary.entity.taxdeclaration.TaxDeclaration">
|
||||
UPDATE hrsa_tax_declaration
|
||||
|
|
|
|||
Loading…
Reference in New Issue