select order_id,
user_id,
tj_type,
tj_number,
tj_serial_number,
pac_id,
create_time,
finish_time,
update_time,
report_time,
create_by,
update_by,
deleted,
firm_id,
firm_dept_name,
firm_work_id,
photo,
check_doctor,
check_time,
check_advice,
release_time,
send_email,
send_message,
is_return,
print_last_time,
download_last_time,
check_status,
status,
confirm_doctor,
confirm_time,
confirm_status,
group_id,
firm_dept_id,
heshou_status,
heshou_doctor,
heshou_time,
is_hz,
get_type,
tj_category
from tj_order
insert into tj_order
user_id,
tj_type,
tj_number,
tj_serial_number,
pac_id,
create_time,
finish_time,
update_time,
report_time,
create_by,
update_by,
deleted,
firm_id,
firm_dept_name,
firm_work_id,
photo,
check_doctor,
check_time,
check_advice,
release_time,
send_email,
send_message,
is_return,
print_last_time,
download_last_time,
check_status,
status,
confirm_doctor,
confirm_time,
confirm_status,
group_id,
firm_dept_id,
heshou)status,
heshou_doctor,
heshou_time,
is_hz,
get_type,
tj_category,
#{userId},
#{tjType},
#{tjNumber},
#{tjSerialNumber},
#{pacId},
#{createTime},
#{finishTime},
#{updateTime},
#{reportTime},
#{createBy},
#{updateBy},
#{deleted},
#{firmId},
#{firmDeptName},
#{firmWorkId},
#{photo},
#{checkDoctor},
#{checkTime},
#{checkAdvice},
#{releaseTime},
#{sendEmail},
#{sendMessage},
#{isReturn},
#{printLastTime},
#{downloadLastTime},
#{checkStatus},
#{status},
#{confirmDoctor},
#{confirmTime},
#{confirmStatus},
#{groupId},
#{firmDeptId},
#{heshouStatus},
#{heshouDoctor},
#{heshouTime},
#{isHz},
#{getType},
#{tjCategory},
update tj_order
user_id = #{userId},
tj_type = #{tjType},
tj_number = #{tjNumber},
tj_serial_number = #{tjSerialNumber},
pac_id = #{pacId},
create_time = #{createTime},
finish_time = #{finishTime},
update_time = #{updateTime},
report_time = #{reportTime},
create_by = #{createBy},
update_by = #{updateBy},
deleted = #{deleted},
firm_id = #{firmId},
firm_dept_name = #{firmDeptName},
firm_work_id = #{firmWorkId},
photo = #{photo},
check_doctor_id = #{checkDoctor},
check_time = #{checkTime},
check_advice = #{checkAdvice},
release_time = #{releaseTime},
send_email = #{sendEmail},
send_message = #{sendMessage},
is_return = #{isReturn},
print_last_time = #{printLastTime},
download_last_time = #{downloadLastTime},
check_status = #{checkStatus},
status = #{status},
confirm_doctor = #{confirmDoctor},
confirm_time = #{confirmTime},
confirm_status = #{confirmStatus},
group_id = #{groupId},
firm_dept_id = #{firmDeptId},
heshou_status = #{heshouStatus},
heshou_doctor = #{heshouDoctor},
heshou_time = #{heshouTime},
is_hz = #{isHz},
get_type = #{getType},
tj_category = #{tjCategory},
where order_id = #{orderId}
delete
from tj_order
where order_id = #{orderId}
delete from tj_order where order_id in
#{orderId}