id, order_no, main, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
commodity_price, task_status, task_distribution_time, task_allocator, task_receiver,
task_comment, task_start_time, task_end_time, attachment_url, project_status, accept_time,
review_time, publicity_time, licence_time, certificate_number, `status`, form_retrieve,
task_refund, refund_content, retrieve_content, declare_user, declare_pwd, set_up_amount,
arrival_money, outsource_name, outsource_price, consultant_id, manager_id, outsource,
split_super, split_status, split_id, split_aid, split_time, cname, receiver_name,
declaration_batch, cost_reduction, official_cost, set_up_status, set_up_time, spot_check_status,
high_tech_status, special_comment, if_certification_fee, certification_fee, certification_corporate,
time_record, if_publicity, check_status, patent_type, pubicity_url, process_status,
member_type, picture_url, satisfaction_degree, satisfaction_degree_url, tag
delete from t_order_task
where id = #{id,jdbcType=INTEGER}
insert into t_order_task (order_no, main, super_id,
commodity_id, commodity_name, commodity_quantity,
commodity_mode, commodity_price, task_status,
task_distribution_time, task_allocator,
task_receiver, task_comment, task_start_time,
task_end_time, attachment_url, project_status,
accept_time, review_time, publicity_time,
licence_time, certificate_number, `status`,
form_retrieve, task_refund, refund_content,
retrieve_content, declare_user, declare_pwd,
set_up_amount, arrival_money, outsource_name,
outsource_price, consultant_id, manager_id,
outsource, split_super, split_status,
split_id, split_aid, split_time,
cname, receiver_name, declaration_batch,
cost_reduction, official_cost, set_up_status,
set_up_time, spot_check_status, high_tech_status,
special_comment, if_certification_fee, certification_fee,
certification_corporate, time_record, if_publicity,
check_status, patent_type, pubicity_url,
process_status, member_type, picture_url,
satisfaction_degree, satisfaction_degree_url,
tag)
values (#{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{superId,jdbcType=VARCHAR},
#{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER},
#{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, #{taskStatus,jdbcType=INTEGER},
#{taskDistributionTime,jdbcType=TIMESTAMP}, #{taskAllocator,jdbcType=VARCHAR},
#{taskReceiver,jdbcType=VARCHAR}, #{taskComment,jdbcType=VARCHAR}, #{taskStartTime,jdbcType=TIMESTAMP},
#{taskEndTime,jdbcType=TIMESTAMP}, #{attachmentUrl,jdbcType=VARCHAR}, #{projectStatus,jdbcType=INTEGER},
#{acceptTime,jdbcType=DATE}, #{reviewTime,jdbcType=DATE}, #{publicityTime,jdbcType=DATE},
#{licenceTime,jdbcType=DATE}, #{certificateNumber,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{formRetrieve,jdbcType=INTEGER}, #{taskRefund,jdbcType=INTEGER}, #{refundContent,jdbcType=VARCHAR},
#{retrieveContent,jdbcType=VARCHAR}, #{declareUser,jdbcType=VARCHAR}, #{declarePwd,jdbcType=VARCHAR},
#{setUpAmount,jdbcType=DECIMAL}, #{arrivalMoney,jdbcType=INTEGER}, #{outsourceName,jdbcType=VARCHAR},
#{outsourcePrice,jdbcType=DECIMAL}, #{consultantId,jdbcType=VARCHAR}, #{managerId,jdbcType=VARCHAR},
#{outsource,jdbcType=INTEGER}, #{splitSuper,jdbcType=INTEGER}, #{splitStatus,jdbcType=INTEGER},
#{splitId,jdbcType=INTEGER}, #{splitAid,jdbcType=VARCHAR}, #{splitTime,jdbcType=TIMESTAMP},
#{cname,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, #{declarationBatch,jdbcType=INTEGER},
#{costReduction,jdbcType=INTEGER}, #{officialCost,jdbcType=INTEGER}, #{setUpStatus,jdbcType=INTEGER},
#{setUpTime,jdbcType=TIMESTAMP}, #{spotCheckStatus,jdbcType=INTEGER}, #{highTechStatus,jdbcType=INTEGER},
#{specialComment,jdbcType=VARCHAR}, #{ifCertificationFee,jdbcType=INTEGER}, #{certificationFee,jdbcType=DECIMAL},
#{certificationCorporate,jdbcType=VARCHAR}, #{timeRecord,jdbcType=VARCHAR}, #{ifPublicity,jdbcType=INTEGER},
#{checkStatus,jdbcType=INTEGER}, #{patentType,jdbcType=INTEGER}, #{pubicityUrl,jdbcType=VARCHAR},
#{processStatus,jdbcType=INTEGER}, #{memberType,jdbcType=INTEGER}, #{pictureUrl,jdbcType=VARCHAR},
#{satisfactionDegree,jdbcType=INTEGER}, #{satisfactionDegreeUrl,jdbcType=VARCHAR},
#{tag,jdbcType=INTEGER})
insert into t_order_task
order_no,
main,
super_id,
commodity_id,
commodity_name,
commodity_quantity,
commodity_mode,
commodity_price,
task_status,
task_distribution_time,
task_allocator,
task_receiver,
task_comment,
task_start_time,
task_end_time,
attachment_url,
project_status,
accept_time,
review_time,
publicity_time,
licence_time,
certificate_number,
`status`,
form_retrieve,
task_refund,
refund_content,
retrieve_content,
declare_user,
declare_pwd,
set_up_amount,
arrival_money,
outsource_name,
outsource_price,
consultant_id,
manager_id,
outsource,
split_super,
split_status,
split_id,
split_aid,
split_time,
cname,
receiver_name,
declaration_batch,
cost_reduction,
official_cost,
set_up_status,
set_up_time,
spot_check_status,
high_tech_status,
special_comment,
if_certification_fee,
certification_fee,
certification_corporate,
time_record,
if_publicity,
check_status,
patent_type,
pubicity_url,
process_status,
member_type,
picture_url,
satisfaction_degree,
satisfaction_degree_url,
tag,
#{orderNo,jdbcType=VARCHAR},
#{main,jdbcType=INTEGER},
#{superId,jdbcType=VARCHAR},
#{commodityId,jdbcType=VARCHAR},
#{commodityName,jdbcType=VARCHAR},
#{commodityQuantity,jdbcType=INTEGER},
#{commodityMode,jdbcType=VARCHAR},
#{commodityPrice,jdbcType=DECIMAL},
#{taskStatus,jdbcType=INTEGER},
#{taskDistributionTime,jdbcType=TIMESTAMP},
#{taskAllocator,jdbcType=VARCHAR},
#{taskReceiver,jdbcType=VARCHAR},
#{taskComment,jdbcType=VARCHAR},
#{taskStartTime,jdbcType=TIMESTAMP},
#{taskEndTime,jdbcType=TIMESTAMP},
#{attachmentUrl,jdbcType=VARCHAR},
#{projectStatus,jdbcType=INTEGER},
#{acceptTime,jdbcType=DATE},
#{reviewTime,jdbcType=DATE},
#{publicityTime,jdbcType=DATE},
#{licenceTime,jdbcType=DATE},
#{certificateNumber,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER},
#{formRetrieve,jdbcType=INTEGER},
#{taskRefund,jdbcType=INTEGER},
#{refundContent,jdbcType=VARCHAR},
#{retrieveContent,jdbcType=VARCHAR},
#{declareUser,jdbcType=VARCHAR},
#{declarePwd,jdbcType=VARCHAR},
#{setUpAmount,jdbcType=DECIMAL},
#{arrivalMoney,jdbcType=INTEGER},
#{outsourceName,jdbcType=VARCHAR},
#{outsourcePrice,jdbcType=DECIMAL},
#{consultantId,jdbcType=VARCHAR},
#{managerId,jdbcType=VARCHAR},
#{outsource,jdbcType=INTEGER},
#{splitSuper,jdbcType=INTEGER},
#{splitStatus,jdbcType=INTEGER},
#{splitId,jdbcType=INTEGER},
#{splitAid,jdbcType=VARCHAR},
#{splitTime,jdbcType=TIMESTAMP},
#{cname,jdbcType=VARCHAR},
#{receiverName,jdbcType=VARCHAR},
#{declarationBatch,jdbcType=INTEGER},
#{costReduction,jdbcType=INTEGER},
#{officialCost,jdbcType=INTEGER},
#{setUpStatus,jdbcType=INTEGER},
#{setUpTime,jdbcType=TIMESTAMP},
#{spotCheckStatus,jdbcType=INTEGER},
#{highTechStatus,jdbcType=INTEGER},
#{specialComment,jdbcType=VARCHAR},
#{ifCertificationFee,jdbcType=INTEGER},
#{certificationFee,jdbcType=DECIMAL},
#{certificationCorporate,jdbcType=VARCHAR},
#{timeRecord,jdbcType=VARCHAR},
#{ifPublicity,jdbcType=INTEGER},
#{checkStatus,jdbcType=INTEGER},
#{patentType,jdbcType=INTEGER},
#{pubicityUrl,jdbcType=VARCHAR},
#{processStatus,jdbcType=INTEGER},
#{memberType,jdbcType=INTEGER},
#{pictureUrl,jdbcType=VARCHAR},
#{satisfactionDegree,jdbcType=INTEGER},
#{satisfactionDegreeUrl,jdbcType=VARCHAR},
#{tag,jdbcType=INTEGER},
update t_order_task
order_no = #{orderNo,jdbcType=VARCHAR},
main = #{main,jdbcType=INTEGER},
super_id = #{superId,jdbcType=VARCHAR},
commodity_id = #{commodityId,jdbcType=VARCHAR},
commodity_name = #{commodityName,jdbcType=VARCHAR},
commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
commodity_mode = #{commodityMode,jdbcType=VARCHAR},
commodity_price = #{commodityPrice,jdbcType=DECIMAL},
task_status = #{taskStatus,jdbcType=INTEGER},
task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
task_allocator = #{taskAllocator,jdbcType=VARCHAR},
task_receiver = #{taskReceiver,jdbcType=VARCHAR},
task_comment = #{taskComment,jdbcType=VARCHAR},
task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
project_status = #{projectStatus,jdbcType=INTEGER},
accept_time = #{acceptTime,jdbcType=DATE},
review_time = #{reviewTime,jdbcType=DATE},
publicity_time = #{publicityTime,jdbcType=DATE},
licence_time = #{licenceTime,jdbcType=DATE},
certificate_number = #{certificateNumber,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
form_retrieve = #{formRetrieve,jdbcType=INTEGER},
task_refund = #{taskRefund,jdbcType=INTEGER},
refund_content = #{refundContent,jdbcType=VARCHAR},
retrieve_content = #{retrieveContent,jdbcType=VARCHAR},
declare_user = #{declareUser,jdbcType=VARCHAR},
declare_pwd = #{declarePwd,jdbcType=VARCHAR},
set_up_amount = #{setUpAmount,jdbcType=DECIMAL},
arrival_money = #{arrivalMoney,jdbcType=INTEGER},
outsource_name = #{outsourceName,jdbcType=VARCHAR},
outsource_price = #{outsourcePrice,jdbcType=DECIMAL},
consultant_id = #{consultantId,jdbcType=VARCHAR},
manager_id = #{managerId,jdbcType=VARCHAR},
outsource = #{outsource,jdbcType=INTEGER},
split_super = #{splitSuper,jdbcType=INTEGER},
split_status = #{splitStatus,jdbcType=INTEGER},
split_id = #{splitId,jdbcType=INTEGER},
split_aid = #{splitAid,jdbcType=VARCHAR},
split_time = #{splitTime,jdbcType=TIMESTAMP},
cname = #{cname,jdbcType=VARCHAR},
receiver_name = #{receiverName,jdbcType=VARCHAR},
declaration_batch = #{declarationBatch,jdbcType=INTEGER},
cost_reduction = #{costReduction,jdbcType=INTEGER},
official_cost = #{officialCost,jdbcType=INTEGER},
set_up_status = #{setUpStatus,jdbcType=INTEGER},
set_up_time = #{setUpTime,jdbcType=TIMESTAMP},
spot_check_status = #{spotCheckStatus,jdbcType=INTEGER},
high_tech_status = #{highTechStatus,jdbcType=INTEGER},
special_comment = #{specialComment,jdbcType=VARCHAR},
if_certification_fee = #{ifCertificationFee,jdbcType=INTEGER},
certification_fee = #{certificationFee,jdbcType=DECIMAL},
certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
time_record = #{timeRecord,jdbcType=VARCHAR},
if_publicity = #{ifPublicity,jdbcType=INTEGER},
check_status = #{checkStatus,jdbcType=INTEGER},
patent_type = #{patentType,jdbcType=INTEGER},
pubicity_url = #{pubicityUrl,jdbcType=VARCHAR},
process_status = #{processStatus,jdbcType=INTEGER},
member_type = #{memberType,jdbcType=INTEGER},
picture_url = #{pictureUrl,jdbcType=VARCHAR},
satisfaction_degree = #{satisfactionDegree,jdbcType=INTEGER},
satisfaction_degree_url = #{satisfactionDegreeUrl,jdbcType=VARCHAR},
tag = #{tag,jdbcType=INTEGER},
where id = #{id,jdbcType=INTEGER}
update t_order_task
set order_no = #{orderNo,jdbcType=VARCHAR},
main = #{main,jdbcType=INTEGER},
super_id = #{superId,jdbcType=VARCHAR},
commodity_id = #{commodityId,jdbcType=VARCHAR},
commodity_name = #{commodityName,jdbcType=VARCHAR},
commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
commodity_mode = #{commodityMode,jdbcType=VARCHAR},
commodity_price = #{commodityPrice,jdbcType=DECIMAL},
task_status = #{taskStatus,jdbcType=INTEGER},
task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
task_allocator = #{taskAllocator,jdbcType=VARCHAR},
task_receiver = #{taskReceiver,jdbcType=VARCHAR},
task_comment = #{taskComment,jdbcType=VARCHAR},
task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
project_status = #{projectStatus,jdbcType=INTEGER},
accept_time = #{acceptTime,jdbcType=DATE},
review_time = #{reviewTime,jdbcType=DATE},
publicity_time = #{publicityTime,jdbcType=DATE},
licence_time = #{licenceTime,jdbcType=DATE},
certificate_number = #{certificateNumber,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
form_retrieve = #{formRetrieve,jdbcType=INTEGER},
task_refund = #{taskRefund,jdbcType=INTEGER},
refund_content = #{refundContent,jdbcType=VARCHAR},
retrieve_content = #{retrieveContent,jdbcType=VARCHAR},
declare_user = #{declareUser,jdbcType=VARCHAR},
declare_pwd = #{declarePwd,jdbcType=VARCHAR},
set_up_amount = #{setUpAmount,jdbcType=DECIMAL},
arrival_money = #{arrivalMoney,jdbcType=INTEGER},
outsource_name = #{outsourceName,jdbcType=VARCHAR},
outsource_price = #{outsourcePrice,jdbcType=DECIMAL},
consultant_id = #{consultantId,jdbcType=VARCHAR},
manager_id = #{managerId,jdbcType=VARCHAR},
outsource = #{outsource,jdbcType=INTEGER},
split_super = #{splitSuper,jdbcType=INTEGER},
split_status = #{splitStatus,jdbcType=INTEGER},
split_id = #{splitId,jdbcType=INTEGER},
split_aid = #{splitAid,jdbcType=VARCHAR},
split_time = #{splitTime,jdbcType=TIMESTAMP},
cname = #{cname,jdbcType=VARCHAR},
receiver_name = #{receiverName,jdbcType=VARCHAR},
declaration_batch = #{declarationBatch,jdbcType=INTEGER},
cost_reduction = #{costReduction,jdbcType=INTEGER},
official_cost = #{officialCost,jdbcType=INTEGER},
set_up_status = #{setUpStatus,jdbcType=INTEGER},
set_up_time = #{setUpTime,jdbcType=TIMESTAMP},
spot_check_status = #{spotCheckStatus,jdbcType=INTEGER},
high_tech_status = #{highTechStatus,jdbcType=INTEGER},
special_comment = #{specialComment,jdbcType=VARCHAR},
if_certification_fee = #{ifCertificationFee,jdbcType=INTEGER},
certification_fee = #{certificationFee,jdbcType=DECIMAL},
certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
time_record = #{timeRecord,jdbcType=VARCHAR},
if_publicity = #{ifPublicity,jdbcType=INTEGER},
check_status = #{checkStatus,jdbcType=INTEGER},
patent_type = #{patentType,jdbcType=INTEGER},
pubicity_url = #{pubicityUrl,jdbcType=VARCHAR},
process_status = #{processStatus,jdbcType=INTEGER},
member_type = #{memberType,jdbcType=INTEGER},
picture_url = #{pictureUrl,jdbcType=VARCHAR},
satisfaction_degree = #{satisfactionDegree,jdbcType=INTEGER},
satisfaction_degree_url = #{satisfactionDegreeUrl,jdbcType=VARCHAR},
tag = #{tag,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
update t_order_task
order_no = #{orderNo,jdbcType=VARCHAR},
main = #{main,jdbcType=INTEGER},
super_id = #{superId,jdbcType=VARCHAR},
commodity_id = #{commodityId,jdbcType=VARCHAR},
commodity_name = #{commodityName,jdbcType=VARCHAR},
commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
commodity_mode = #{commodityMode,jdbcType=VARCHAR},
commodity_price = #{commodityPrice,jdbcType=DECIMAL},
task_status = #{taskStatus,jdbcType=INTEGER},
task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
task_allocator = #{taskAllocator,jdbcType=VARCHAR},
task_receiver = #{taskReceiver,jdbcType=VARCHAR},
task_comment = #{taskComment,jdbcType=VARCHAR},
task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
project_status = #{projectStatus,jdbcType=INTEGER},
accept_time = #{acceptTime,jdbcType=DATE},
review_time = #{reviewTime,jdbcType=DATE},
publicity_time = #{publicityTime,jdbcType=DATE},
licence_time = #{licenceTime,jdbcType=DATE},
certificate_number = #{certificateNumber,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
form_retrieve = #{formRetrieve,jdbcType=INTEGER},
task_refund = #{taskRefund,jdbcType=INTEGER},
refund_content = #{refundContent,jdbcType=VARCHAR},
retrieve_content = #{retrieveContent,jdbcType=VARCHAR},
declare_user = #{declareUser,jdbcType=VARCHAR},
declare_pwd = #{declarePwd,jdbcType=VARCHAR},
set_up_amount = #{setUpAmount,jdbcType=DECIMAL},
arrival_money = #{arrivalMoney,jdbcType=INTEGER},
outsource_name = #{outsourceName,jdbcType=VARCHAR},
outsource_price = #{outsourcePrice,jdbcType=DECIMAL},
consultant_id = #{consultantId,jdbcType=VARCHAR},
manager_id = #{managerId,jdbcType=VARCHAR},
outsource = #{outsource,jdbcType=INTEGER},
split_status = #{splitStatus,jdbcType=INTEGER},
split_id = #{splitId,jdbcType=INTEGER},
split_aid = #{splitAid,jdbcType=VARCHAR},
split_time = #{splitTime,jdbcType=TIMESTAMP},
cname = #{cname,jdbcType=VARCHAR},
receiver_name = #{receiverName,jdbcType=VARCHAR},
declaration_batch = #{declarationBatch,jdbcType=INTEGER},
cost_reduction = #{costReduction,jdbcType=INTEGER},
official_cost = #{officialCost,jdbcType=INTEGER},
set_up_status = #{setUpStatus,jdbcType=INTEGER},
set_up_time = #{setUpTime,jdbcType=TIMESTAMP},
spot_check_status = #{spotCheckStatus,jdbcType=INTEGER},
high_tech_status = #{highTechStatus,jdbcType=INTEGER},
special_comment = #{specialComment,jdbcType=VARCHAR},
if_certification_fee = #{ifCertificationFee,jdbcType=INTEGER},
certification_fee = #{certificationFee,jdbcType=DECIMAL},
certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
time_record = #{timeRecord,jdbcType=VARCHAR},
if_publicity = #{ifPublicity,jdbcType=INTEGER},
check_status = #{checkStatus,jdbcType=INTEGER},
patent_type = #{patentType,jdbcType=INTEGER},
pubicity_url = #{pubicityUrl,jdbcType=VARCHAR},
process_status = #{processStatus,jdbcType=INTEGER},
member_type = #{memberType,jdbcType=INTEGER},
picture_url = #{pictureUrl,jdbcType=VARCHAR},
satisfaction_degree = #{satisfactionDegree,jdbcType=INTEGER},
satisfaction_degree_url = #{satisfactionDegreeUrl,jdbcType=VARCHAR},
tag = #{tag,jdbcType=INTEGER},
where split_super = #{splitSuper,jdbcType=INTEGER}
update t_order_task a left join t_change_task b on a.id =b.tid
left join (select * from admin where id= #{transferId,jdbcType=VARCHAR})c on 1=1
set a.task_allocator= #{aid,jdbcType=VARCHAR},a.task_receiver= c.id,
a.receiver_name=c.name,b.receiver_name=c.name
,a.consultant_id=c.id
,a.manager_id=c.id
,a.consultant_id= null
,a.manager_id=c.id
,a.consultant_id=c.id
,a.manager_id= null
,a.manager_id= null
where task_receiver=#{aid,jdbcType=VARCHAR}
update t_order_task set outsource= #{type} where order_no= #{orderNo}
update t_order_task a ,t_task_mid c
set c.party_amount =0,c.cost_amount =0
where a.id= #{id} and a.id=c.tid
update t_task_mid
set cost_amount =cost_amount + #{cost}
where tid= #{tid}
delete from t_order_task
where split_super = #{id,jdbcType=INTEGER}
update t_order_task
set manager_id= #{transferId}
where manager_id = #{aid}