id, tid, cost_amount, party_amount, create_time, certificates_count, urgent_day,
if_material, reject_count, accept_count, end_count, authorize_count, apply_count,
high_new_retrial, dispatch_count, stock_count, complete_count, promulgate_count,
dispatch_province, duty_dep, set_up_count, spot_check_count, fail_count, last_year,
last_year_capital, last_year_income, cost_actual, patent_cost, patent_cost_actual,
soft_cost, soft_cost_actual, audit_cost, audit_cost_actual, other_cost, other_cost_actual,
expect_profit, actual_profit, stop_type, stop_status, `change`
delete from t_task_mid
where id = #{id,jdbcType=INTEGER}
insert into t_task_mid (tid, cost_amount, party_amount,
create_time, certificates_count, urgent_day,
if_material, reject_count, accept_count,
end_count, authorize_count, apply_count,
high_new_retrial, dispatch_count, stock_count,
complete_count, promulgate_count, dispatch_province,
duty_dep, set_up_count, spot_check_count,
fail_count, last_year, last_year_capital,
last_year_income, cost_actual, patent_cost,
patent_cost_actual, soft_cost, soft_cost_actual,
audit_cost, audit_cost_actual, other_cost,
other_cost_actual, expect_profit, actual_profit,
stop_type, stop_status, `change`
)
values (#{tid,jdbcType=INTEGER}, #{costAmount,jdbcType=DECIMAL}, #{partyAmount,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP}, #{certificatesCount,jdbcType=INTEGER}, #{urgentDay,jdbcType=INTEGER},
#{ifMaterial,jdbcType=INTEGER}, #{rejectCount,jdbcType=INTEGER}, #{acceptCount,jdbcType=INTEGER},
#{endCount,jdbcType=INTEGER}, #{authorizeCount,jdbcType=INTEGER}, #{applyCount,jdbcType=INTEGER},
#{highNewRetrial,jdbcType=INTEGER}, #{dispatchCount,jdbcType=INTEGER}, #{stockCount,jdbcType=INTEGER},
#{completeCount,jdbcType=INTEGER}, #{promulgateCount,jdbcType=INTEGER}, #{dispatchProvince,jdbcType=INTEGER},
#{dutyDep,jdbcType=VARCHAR}, #{setUpCount,jdbcType=INTEGER}, #{spotCheckCount,jdbcType=INTEGER},
#{failCount,jdbcType=INTEGER}, #{lastYear,jdbcType=VARCHAR}, #{lastYearCapital,jdbcType=DECIMAL},
#{lastYearIncome,jdbcType=DECIMAL}, #{costActual,jdbcType=DECIMAL}, #{patentCost,jdbcType=DECIMAL},
#{patentCostActual,jdbcType=DECIMAL}, #{softCost,jdbcType=DECIMAL}, #{softCostActual,jdbcType=DECIMAL},
#{auditCost,jdbcType=DECIMAL}, #{auditCostActual,jdbcType=DECIMAL}, #{otherCost,jdbcType=DECIMAL},
#{otherCostActual,jdbcType=DECIMAL}, #{expectProfit,jdbcType=DECIMAL}, #{actualProfit,jdbcType=DECIMAL},
#{stopType,jdbcType=INTEGER}, #{stopStatus,jdbcType=INTEGER}, #{change,jdbcType=INTEGER}
)
insert into t_task_mid
tid,
cost_amount,
party_amount,
create_time,
certificates_count,
urgent_day,
if_material,
reject_count,
accept_count,
end_count,
authorize_count,
apply_count,
high_new_retrial,
dispatch_count,
stock_count,
complete_count,
promulgate_count,
dispatch_province,
duty_dep,
set_up_count,
spot_check_count,
fail_count,
last_year,
last_year_capital,
last_year_income,
cost_actual,
patent_cost,
patent_cost_actual,
soft_cost,
soft_cost_actual,
audit_cost,
audit_cost_actual,
other_cost,
other_cost_actual,
expect_profit,
actual_profit,
stop_type,
stop_status,
`change`,
#{tid,jdbcType=INTEGER},
#{costAmount,jdbcType=DECIMAL},
#{partyAmount,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP},
#{certificatesCount,jdbcType=INTEGER},
#{urgentDay,jdbcType=INTEGER},
#{ifMaterial,jdbcType=INTEGER},
#{rejectCount,jdbcType=INTEGER},
#{acceptCount,jdbcType=INTEGER},
#{endCount,jdbcType=INTEGER},
#{authorizeCount,jdbcType=INTEGER},
#{applyCount,jdbcType=INTEGER},
#{highNewRetrial,jdbcType=INTEGER},
#{dispatchCount,jdbcType=INTEGER},
#{stockCount,jdbcType=INTEGER},
#{completeCount,jdbcType=INTEGER},
#{promulgateCount,jdbcType=INTEGER},
#{dispatchProvince,jdbcType=INTEGER},
#{dutyDep,jdbcType=VARCHAR},
#{setUpCount,jdbcType=INTEGER},
#{spotCheckCount,jdbcType=INTEGER},
#{failCount,jdbcType=INTEGER},
#{lastYear,jdbcType=VARCHAR},
#{lastYearCapital,jdbcType=DECIMAL},
#{lastYearIncome,jdbcType=DECIMAL},
#{costActual,jdbcType=DECIMAL},
#{patentCost,jdbcType=DECIMAL},
#{patentCostActual,jdbcType=DECIMAL},
#{softCost,jdbcType=DECIMAL},
#{softCostActual,jdbcType=DECIMAL},
#{auditCost,jdbcType=DECIMAL},
#{auditCostActual,jdbcType=DECIMAL},
#{otherCost,jdbcType=DECIMAL},
#{otherCostActual,jdbcType=DECIMAL},
#{expectProfit,jdbcType=DECIMAL},
#{actualProfit,jdbcType=DECIMAL},
#{stopType,jdbcType=INTEGER},
#{stopStatus,jdbcType=INTEGER},
#{change,jdbcType=INTEGER},
update t_task_mid
tid = #{tid,jdbcType=INTEGER},
cost_amount = #{costAmount,jdbcType=DECIMAL},
party_amount = #{partyAmount,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
certificates_count = #{certificatesCount,jdbcType=INTEGER},
urgent_day = #{urgentDay,jdbcType=INTEGER},
if_material = #{ifMaterial,jdbcType=INTEGER},
reject_count = #{rejectCount,jdbcType=INTEGER},
accept_count = #{acceptCount,jdbcType=INTEGER},
end_count = #{endCount,jdbcType=INTEGER},
authorize_count = #{authorizeCount,jdbcType=INTEGER},
apply_count = #{applyCount,jdbcType=INTEGER},
high_new_retrial = #{highNewRetrial,jdbcType=INTEGER},
dispatch_count = #{dispatchCount,jdbcType=INTEGER},
stock_count = #{stockCount,jdbcType=INTEGER},
complete_count = #{completeCount,jdbcType=INTEGER},
promulgate_count = #{promulgateCount,jdbcType=INTEGER},
dispatch_province = #{dispatchProvince,jdbcType=INTEGER},
duty_dep = #{dutyDep,jdbcType=VARCHAR},
set_up_count = #{setUpCount,jdbcType=INTEGER},
spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
fail_count = #{failCount,jdbcType=INTEGER},
last_year = #{lastYear,jdbcType=VARCHAR},
last_year_capital = #{lastYearCapital,jdbcType=DECIMAL},
last_year_income = #{lastYearIncome,jdbcType=DECIMAL},
cost_actual = #{costActual,jdbcType=DECIMAL},
patent_cost = #{patentCost,jdbcType=DECIMAL},
patent_cost_actual = #{patentCostActual,jdbcType=DECIMAL},
soft_cost = #{softCost,jdbcType=DECIMAL},
soft_cost_actual = #{softCostActual,jdbcType=DECIMAL},
audit_cost = #{auditCost,jdbcType=DECIMAL},
audit_cost_actual = #{auditCostActual,jdbcType=DECIMAL},
other_cost = #{otherCost,jdbcType=DECIMAL},
other_cost_actual = #{otherCostActual,jdbcType=DECIMAL},
expect_profit = #{expectProfit,jdbcType=DECIMAL},
actual_profit = #{actualProfit,jdbcType=DECIMAL},
stop_type = #{stopType,jdbcType=INTEGER},
stop_status = #{stopStatus,jdbcType=INTEGER},
`change` = #{change,jdbcType=INTEGER},
where id = #{id,jdbcType=INTEGER}
update t_task_mid
set tid = #{tid,jdbcType=INTEGER},
cost_amount = #{costAmount,jdbcType=DECIMAL},
party_amount = #{partyAmount,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
certificates_count = #{certificatesCount,jdbcType=INTEGER},
urgent_day = #{urgentDay,jdbcType=INTEGER},
if_material = #{ifMaterial,jdbcType=INTEGER},
reject_count = #{rejectCount,jdbcType=INTEGER},
accept_count = #{acceptCount,jdbcType=INTEGER},
end_count = #{endCount,jdbcType=INTEGER},
authorize_count = #{authorizeCount,jdbcType=INTEGER},
apply_count = #{applyCount,jdbcType=INTEGER},
high_new_retrial = #{highNewRetrial,jdbcType=INTEGER},
dispatch_count = #{dispatchCount,jdbcType=INTEGER},
stock_count = #{stockCount,jdbcType=INTEGER},
complete_count = #{completeCount,jdbcType=INTEGER},
promulgate_count = #{promulgateCount,jdbcType=INTEGER},
dispatch_province = #{dispatchProvince,jdbcType=INTEGER},
duty_dep = #{dutyDep,jdbcType=VARCHAR},
set_up_count = #{setUpCount,jdbcType=INTEGER},
spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
fail_count = #{failCount,jdbcType=INTEGER},
last_year = #{lastYear,jdbcType=VARCHAR},
last_year_capital = #{lastYearCapital,jdbcType=DECIMAL},
last_year_income = #{lastYearIncome,jdbcType=DECIMAL},
cost_actual = #{costActual,jdbcType=DECIMAL},
patent_cost = #{patentCost,jdbcType=DECIMAL},
patent_cost_actual = #{patentCostActual,jdbcType=DECIMAL},
soft_cost = #{softCost,jdbcType=DECIMAL},
soft_cost_actual = #{softCostActual,jdbcType=DECIMAL},
audit_cost = #{auditCost,jdbcType=DECIMAL},
audit_cost_actual = #{auditCostActual,jdbcType=DECIMAL},
other_cost = #{otherCost,jdbcType=DECIMAL},
other_cost_actual = #{otherCostActual,jdbcType=DECIMAL},
expect_profit = #{expectProfit,jdbcType=DECIMAL},
actual_profit = #{actualProfit,jdbcType=DECIMAL},
stop_type = #{stopType,jdbcType=INTEGER},
stop_status = #{stopStatus,jdbcType=INTEGER},
`change` = #{change,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
update t_task_mid
set party_amount = party_amount
+ #{paymentAmount,jdbcType=DECIMAL}
- #{paymentAmount,jdbcType=DECIMAL}
where tid = #{tid,jdbcType=INTEGER}
update t_order_task a ,t_task_mid c
set c.cost_amount=#{count},c.party_amount=#{party}
where a.id=c.tid and a.id= #{tid}
update t_task_mid
set certificates_count= #{count}
where tid= #{tid}
update t_task_mid
cost_amount = #{costAmount,jdbcType=DECIMAL},
party_amount = #{partyAmount,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
certificates_count = #{certificatesCount,jdbcType=INTEGER},
urgent_day = #{urgentDay,jdbcType=INTEGER},
if_material = #{ifMaterial,jdbcType=INTEGER},
reject_count = #{rejectCount,jdbcType=INTEGER},
accept_count = #{acceptCount,jdbcType=INTEGER},
end_count = #{endCount,jdbcType=INTEGER},
authorize_count = #{authorizeCount,jdbcType=INTEGER},
apply_count = #{applyCount,jdbcType=INTEGER},
high_new_retrial = #{highNewRetrial,jdbcType=INTEGER},
dispatch_count = #{dispatchCount,jdbcType=INTEGER},
stock_count = #{stockCount,jdbcType=INTEGER},
complete_count = #{completeCount,jdbcType=INTEGER},
promulgate_count = #{promulgateCount,jdbcType=INTEGER},
dispatch_province = #{dispatchProvince,jdbcType=INTEGER},
duty_dep = #{dutyDep,jdbcType=VARCHAR},
set_up_count = #{setUpCount,jdbcType=INTEGER},
spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
fail_count = #{failCount,jdbcType=INTEGER},
last_year = #{lastYear,jdbcType=VARCHAR},
last_year_capital = #{lastYearCapital,jdbcType=DECIMAL},
last_year_income = #{lastYearIncome,jdbcType=DECIMAL},
stop_type = #{stopType,jdbcType=INTEGER},
stop_status = #{stopStatus,jdbcType=INTEGER},
where tid = #{tid,jdbcType=INTEGER}