left join sys_user u on u.user_name=a.create_by
left join sys_dept d on u.dept_id = d.dept_id
left join quot q on q.quot_jsxz_confirm_id = a.quot_jsqr_id
select a.quot_jsqr_id, a.quot_jsqr_code, a.quot_jsqr_tl_approval_status, a.quot_jsqr_tl_operate_user_name,
a.quot_jsqr_tl_operate_state, a.quot_jsqr_tl_operate_time, a.quot_jsqr_tl_remark, a.quot_jsqr_tl_check_user_name,
a.quot_jsqr_tl_check_state, a.quot_jsqr_tl_check_time, a.quot_jsqr_tl_check_remark, a.quot_jsqr_tl_leader_user_name,
a.quot_jsqr_tl_leader_state, a.quot_jsqr_tl_leader_time, a.quot_jsqr_tl_leader_remark, a.quot_jsqr_dy_approval_status,
a.quot_jsqr_dy_operate_user_name, a.quot_jsqr_dy_operate_state, a.quot_jsqr_dy_operate_time, a.quot_jsqr_dy_remark,
a.quot_jsqr_dy_check_user_name, a.quot_jsqr_dy_check_state, a.quot_jsqr_dy_check_time, a.quot_jsqr_dy_check_remark,
a.quot_jsqr_dy_leader_user_name, a.quot_jsqr_dy_leader_state, a.quot_jsqr_dy_leader_time, a.quot_jsqr_dy_leader_remark,
a.quot_jsqr_zy_approval_status, a.quot_jsqr_zy_operate_user_name, a.quot_jsqr_zy_operate_state, a.quot_jsqr_zy_operate_time,
a.quot_jsqr_zy_remark, a.quot_jsqr_zy_check_user_name, a.quot_jsqr_zy_check_state, a.quot_jsqr_zy_check_time,
a.quot_jsqr_zy_check_remark, a.quot_jsqr_zy_leader_user_name, a.quot_jsqr_zy_leader_state, a.quot_jsqr_zy_leader_time,
a.quot_jsqr_zy_leader_remark, a.quot_jsqr_qt_approval_status, a.quot_jsqr_qt_operate_user_name, a.quot_jsqr_qt_operate_state,
a.quot_jsqr_qt_operate_time, a.quot_jsqr_qt_remark, a.quot_jsqr_qt_check_user_name, a.quot_jsqr_qt_check_state,
a.quot_jsqr_qt_check_time, a.quot_jsqr_qt_check_remark, a.quot_jsqr_qt_leader_user_name, a.quot_jsqr_qt_leader_state,
a.quot_jsqr_qt_leader_time, a.quot_jsqr_qt_leader_remark, a.create_by, a.create_time, a.update_by, a.update_time,
u.nick_name create_name,q.quot_id,q.quot_code,q.quot_salesman_name,q.quot_customer_name,q.quot_project,
q.quot_jsxz_approval_status,q.quot_jsxz_group_values,q.quot_jsxz_standard,q.quot_jsxz_chapter,q.quot_jsxz_technical_requirement
from quot_jsqr a
insert into quot_jsqr
quot_jsqr_id,
quot_jsqr_code,
quot_jsqr_tl_approval_status,
quot_jsqr_tl_operate_user_name,
quot_jsqr_tl_operate_state,
quot_jsqr_tl_operate_time,
quot_jsqr_tl_remark,
quot_jsqr_tl_check_user_name,
quot_jsqr_tl_check_state,
quot_jsqr_tl_check_time,
quot_jsqr_tl_check_remark,
quot_jsqr_tl_leader_user_name,
quot_jsqr_tl_leader_state,
quot_jsqr_tl_leader_time,
quot_jsqr_tl_leader_remark,
quot_jsqr_dy_approval_status,
quot_jsqr_dy_operate_user_name,
quot_jsqr_dy_operate_state,
quot_jsqr_dy_operate_time,
quot_jsqr_dy_remark,
quot_jsqr_dy_check_user_name,
quot_jsqr_dy_check_state,
quot_jsqr_dy_check_time,
quot_jsqr_dy_check_remark,
quot_jsqr_dy_leader_user_name,
quot_jsqr_dy_leader_state,
quot_jsqr_dy_leader_time,
quot_jsqr_dy_leader_remark,
quot_jsqr_zy_approval_status,
quot_jsqr_zy_operate_user_name,
quot_jsqr_zy_operate_state,
quot_jsqr_zy_operate_time,
quot_jsqr_zy_remark,
quot_jsqr_zy_check_user_name,
quot_jsqr_zy_check_state,
quot_jsqr_zy_check_time,
quot_jsqr_zy_check_remark,
quot_jsqr_zy_leader_user_name,
quot_jsqr_zy_leader_state,
quot_jsqr_zy_leader_time,
quot_jsqr_zy_leader_remark,
quot_jsqr_qt_approval_status,
quot_jsqr_qt_operate_user_name,
quot_jsqr_qt_operate_state,
quot_jsqr_qt_operate_time,
quot_jsqr_qt_remark,
quot_jsqr_qt_check_user_name,
quot_jsqr_qt_check_state,
quot_jsqr_qt_check_time,
quot_jsqr_qt_check_remark,
quot_jsqr_qt_leader_user_name,
quot_jsqr_qt_leader_state,
quot_jsqr_qt_leader_time,
quot_jsqr_qt_leader_remark,
create_by,
create_time,
update_by,
update_time,
#{quotJsqrId},
#{quotJsqrCode},
#{quotJsqrTlApprovalStatus},
#{quotJsqrTlOperateUserName},
#{quotJsqrTlOperateState},
#{quotJsqrTlOperateTime},
#{quotJsqrTlRemark},
#{quotJsqrTlCheckUserName},
#{quotJsqrTlCheckState},
#{quotJsqrTlCheckTime},
#{quotJsqrTlCheckRemark},
#{quotJsqrTlLeaderUserName},
#{quotJsqrTlLeaderState},
#{quotJsqrTlLeaderTime},
#{quotJsqrTlLeaderRemark},
#{quotJsqrDyApprovalStatus},
#{quotJsqrDyOperateUserName},
#{quotJsqrDyOperateState},
#{quotJsqrDyOperateTime},
#{quotJsqrDyRemark},
#{quotJsqrDyCheckUserName},
#{quotJsqrDyCheckState},
#{quotJsqrDyCheckTime},
#{quotJsqrDyCheckRemark},
#{quotJsqrDyLeaderUserName},
#{quotJsqrDyLeaderState},
#{quotJsqrDyLeaderTime},
#{quotJsqrDyLeaderRemark},
#{quotJsqrZyApprovalStatus},
#{quotJsqrZyOperateUserName},
#{quotJsqrZyOperateState},
#{quotJsqrZyOperateTime},
#{quotJsqrZyRemark},
#{quotJsqrZyCheckUserName},
#{quotJsqrZyCheckState},
#{quotJsqrZyCheckTime},
#{quotJsqrZyCheckRemark},
#{quotJsqrZyLeaderUserName},
#{quotJsqrZyLeaderState},
#{quotJsqrZyLeaderTime},
#{quotJsqrZyLeaderRemark},
#{quotJsqrQtApprovalStatus},
#{quotJsqrQtOperateUserName},
#{quotJsqrQtOperateState},
#{quotJsqrQtOperateTime},
#{quotJsqrQtRemark},
#{quotJsqrQtCheckUserName},
#{quotJsqrQtCheckState},
#{quotJsqrQtCheckTime},
#{quotJsqrQtCheckRemark},
#{quotJsqrQtLeaderUserName},
#{quotJsqrQtLeaderState},
#{quotJsqrQtLeaderTime},
#{quotJsqrQtLeaderRemark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update quot_jsqr
quot_jsqr_code = #{quotJsqrCode},
quot_jsqr_tl_approval_status = #{quotJsqrTlApprovalStatus},
quot_jsqr_tl_operate_user_name = #{quotJsqrTlOperateUserName},
quot_jsqr_tl_operate_state = #{quotJsqrTlOperateState},
quot_jsqr_tl_operate_time = #{quotJsqrTlOperateTime},
quot_jsqr_tl_remark = #{quotJsqrTlRemark},
quot_jsqr_tl_check_user_name = #{quotJsqrTlCheckUserName},
quot_jsqr_tl_check_state = #{quotJsqrTlCheckState},
quot_jsqr_tl_check_time = #{quotJsqrTlCheckTime},
quot_jsqr_tl_check_remark = #{quotJsqrTlCheckRemark},
quot_jsqr_tl_leader_user_name = #{quotJsqrTlLeaderUserName},
quot_jsqr_tl_leader_state = #{quotJsqrTlLeaderState},
quot_jsqr_tl_leader_time = #{quotJsqrTlLeaderTime},
quot_jsqr_tl_leader_remark = #{quotJsqrTlLeaderRemark},
quot_jsqr_dy_approval_status = #{quotJsqrDyApprovalStatus},
quot_jsqr_dy_operate_user_name = #{quotJsqrDyOperateUserName},
quot_jsqr_dy_operate_state = #{quotJsqrDyOperateState},
quot_jsqr_dy_operate_time = #{quotJsqrDyOperateTime},
quot_jsqr_dy_remark = #{quotJsqrDyRemark},
quot_jsqr_dy_check_user_name = #{quotJsqrDyCheckUserName},
quot_jsqr_dy_check_state = #{quotJsqrDyCheckState},
quot_jsqr_dy_check_time = #{quotJsqrDyCheckTime},
quot_jsqr_dy_check_remark = #{quotJsqrDyCheckRemark},
quot_jsqr_dy_leader_user_name = #{quotJsqrDyLeaderUserName},
quot_jsqr_dy_leader_state = #{quotJsqrDyLeaderState},
quot_jsqr_dy_leader_time = #{quotJsqrDyLeaderTime},
quot_jsqr_dy_leader_remark = #{quotJsqrDyLeaderRemark},
quot_jsqr_zy_approval_status = #{quotJsqrZyApprovalStatus},
quot_jsqr_zy_operate_user_name = #{quotJsqrZyOperateUserName},
quot_jsqr_zy_operate_state = #{quotJsqrZyOperateState},
quot_jsqr_zy_operate_time = #{quotJsqrZyOperateTime},
quot_jsqr_zy_remark = #{quotJsqrZyRemark},
quot_jsqr_zy_check_user_name = #{quotJsqrZyCheckUserName},
quot_jsqr_zy_check_state = #{quotJsqrZyCheckState},
quot_jsqr_zy_check_time = #{quotJsqrZyCheckTime},
quot_jsqr_zy_check_remark = #{quotJsqrZyCheckRemark},
quot_jsqr_zy_leader_user_name = #{quotJsqrZyLeaderUserName},
quot_jsqr_zy_leader_state = #{quotJsqrZyLeaderState},
quot_jsqr_zy_leader_time = #{quotJsqrZyLeaderTime},
quot_jsqr_zy_leader_remark = #{quotJsqrZyLeaderRemark},
quot_jsqr_qt_approval_status = #{quotJsqrQtApprovalStatus},
quot_jsqr_qt_operate_user_name = #{quotJsqrQtOperateUserName},
quot_jsqr_qt_operate_state = #{quotJsqrQtOperateState},
quot_jsqr_qt_operate_time = #{quotJsqrQtOperateTime},
quot_jsqr_qt_remark = #{quotJsqrQtRemark},
quot_jsqr_qt_check_user_name = #{quotJsqrQtCheckUserName},
quot_jsqr_qt_check_state = #{quotJsqrQtCheckState},
quot_jsqr_qt_check_time = #{quotJsqrQtCheckTime},
quot_jsqr_qt_check_remark = #{quotJsqrQtCheckRemark},
quot_jsqr_qt_leader_user_name = #{quotJsqrQtLeaderUserName},
quot_jsqr_qt_leader_state = #{quotJsqrQtLeaderState},
quot_jsqr_qt_leader_time = #{quotJsqrQtLeaderTime},
quot_jsqr_qt_leader_remark = #{quotJsqrQtLeaderRemark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where quot_jsqr_id = #{quotJsqrId}
delete from quot_jsqr where quot_jsqr_id = #{quotJsqrId}
delete from quot_jsqr where quot_jsqr_id in
#{quotJsqrId}