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 bid q on q.bid_id = a.bid_id
select a.bid_jsqr_id, a.bid_jsqr_code,a.bid_jsqr_tl_approval_status, a.bid_jsqr_tl_operate_user_name,
a.bid_jsqr_tl_operate_state, a.bid_jsqr_tl_operate_time, a.bid_jsqr_tl_remark, a.bid_jsqr_tl_check_user_name,
a.bid_jsqr_tl_check_state, a.bid_jsqr_tl_check_time, a.bid_jsqr_tl_check_remark, a.bid_jsqr_tl_leader_user_name,
a.bid_jsqr_tl_leader_state, a.bid_jsqr_tl_leader_time, a.bid_jsqr_tl_leader_remark, a.bid_jsqr_dy_approval_status,
a.bid_jsqr_dy_operate_user_name, a.bid_jsqr_dy_operate_state, a.bid_jsqr_dy_operate_time, a.bid_jsqr_dy_remark,
a.bid_jsqr_dy_check_user_name, a.bid_jsqr_dy_check_state, a.bid_jsqr_dy_check_time, a.bid_jsqr_dy_check_remark,
a.bid_jsqr_dy_leader_user_name, a.bid_jsqr_dy_leader_state, a.bid_jsqr_dy_leader_time, a.bid_jsqr_dy_leader_remark,
a.bid_jsqr_zy_approval_status, a.bid_jsqr_zy_operate_user_name, a.bid_jsqr_zy_operate_state, a.bid_jsqr_zy_operate_time,
a.bid_jsqr_zy_remark, a.bid_jsqr_zy_check_user_name, a.bid_jsqr_zy_check_state, a.bid_jsqr_zy_check_time,
a.bid_jsqr_zy_check_remark, a.bid_jsqr_zy_leader_user_name, a.bid_jsqr_zy_leader_state, a.bid_jsqr_zy_leader_time,
a.bid_jsqr_zy_leader_remark, a.bid_jsqr_qt_approval_status, a.bid_jsqr_qt_operate_user_name, a.bid_jsqr_qt_operate_state,
a.bid_jsqr_qt_operate_time, a.bid_jsqr_qt_remark, a.bid_jsqr_qt_check_user_name, a.bid_jsqr_qt_check_state,
a.bid_jsqr_qt_check_time, a.bid_jsqr_qt_check_remark, a.bid_jsqr_qt_leader_user_name, a.bid_jsqr_qt_leader_state,
a.bid_jsqr_qt_leader_time, a.bid_jsqr_qt_leader_remark, a.create_by, a.create_time, a.update_by, a.update_time,
u.nick_name create_name,q.bid_id,q.bid_code,q.bid_salesman_name,q.bid_tendering_unit,q.bid_project,
a.bid_jsxz_approval_status,a.bid_jsxz_group_values,a.bid_jsxz_technical_requirement
from bid_jsqr a
insert into bid_jsqr
bid_jsqr_id,
bid_jsqr_code,
bid_jsxz_approval_status,
bid_jsxz_technical_requirement,
bid_jsxz_group_values,
bid_jsqr_tl_approval_status,
bid_jsqr_tl_operate_user_name,
bid_jsqr_tl_operate_state,
bid_jsqr_tl_operate_time,
bid_jsqr_tl_remark,
bid_jsqr_tl_check_user_name,
bid_jsqr_tl_check_state,
bid_jsqr_tl_check_time,
bid_jsqr_tl_check_remark,
bid_jsqr_tl_leader_user_name,
bid_jsqr_tl_leader_state,
bid_jsqr_tl_leader_time,
bid_jsqr_tl_leader_remark,
bid_jsqr_dy_approval_status,
bid_jsqr_dy_operate_user_name,
bid_jsqr_dy_operate_state,
bid_jsqr_dy_operate_time,
bid_jsqr_dy_remark,
bid_jsqr_dy_check_user_name,
bid_jsqr_dy_check_state,
bid_jsqr_dy_check_time,
bid_jsqr_dy_check_remark,
bid_jsqr_dy_leader_user_name,
bid_jsqr_dy_leader_state,
bid_jsqr_dy_leader_time,
bid_jsqr_dy_leader_remark,
bid_jsqr_zy_approval_status,
bid_jsqr_zy_operate_user_name,
bid_jsqr_zy_operate_state,
bid_jsqr_zy_operate_time,
bid_jsqr_zy_remark,
bid_jsqr_zy_check_user_name,
bid_jsqr_zy_check_state,
bid_jsqr_zy_check_time,
bid_jsqr_zy_check_remark,
bid_jsqr_zy_leader_user_name,
bid_jsqr_zy_leader_state,
bid_jsqr_zy_leader_time,
bid_jsqr_zy_leader_remark,
bid_jsqr_qt_approval_status,
bid_jsqr_qt_operate_user_name,
bid_jsqr_qt_operate_state,
bid_jsqr_qt_operate_time,
bid_jsqr_qt_remark,
bid_jsqr_qt_check_user_name,
bid_jsqr_qt_check_state,
bid_jsqr_qt_check_time,
bid_jsqr_qt_check_remark,
bid_jsqr_qt_leader_user_name,
bid_jsqr_qt_leader_state,
bid_jsqr_qt_leader_time,
bid_jsqr_qt_leader_remark,
create_by,
create_time,
update_by,
update_time,
bid_id,
#{bidJsqrId},
#{bidJsqrCode},
#{bidJsxzApprovalStatus},
#{bidJsxzTechnicalRequirement},
#{bidJsxzGroupValues},
#{bidJsqrTlApprovalStatus},
#{bidJsqrTlOperateUserName},
#{bidJsqrTlOperateState},
#{bidJsqrTlOperateTime},
#{bidJsqrTlRemark},
#{bidJsqrTlCheckUserName},
#{bidJsqrTlCheckState},
#{bidJsqrTlCheckTime},
#{bidJsqrTlCheckRemark},
#{bidJsqrTlLeaderUserName},
#{bidJsqrTlLeaderState},
#{bidJsqrTlLeaderTime},
#{bidJsqrTlLeaderRemark},
#{bidJsqrDyApprovalStatus},
#{bidJsqrDyOperateUserName},
#{bidJsqrDyOperateState},
#{bidJsqrDyOperateTime},
#{bidJsqrDyRemark},
#{bidJsqrDyCheckUserName},
#{bidJsqrDyCheckState},
#{bidJsqrDyCheckTime},
#{bidJsqrDyCheckRemark},
#{bidJsqrDyLeaderUserName},
#{bidJsqrDyLeaderState},
#{bidJsqrDyLeaderTime},
#{bidJsqrDyLeaderRemark},
#{bidJsqrZyApprovalStatus},
#{bidJsqrZyOperateUserName},
#{bidJsqrZyOperateState},
#{bidJsqrZyOperateTime},
#{bidJsqrZyRemark},
#{bidJsqrZyCheckUserName},
#{bidJsqrZyCheckState},
#{bidJsqrZyCheckTime},
#{bidJsqrZyCheckRemark},
#{bidJsqrZyLeaderUserName},
#{bidJsqrZyLeaderState},
#{bidJsqrZyLeaderTime},
#{bidJsqrZyLeaderRemark},
#{bidJsqrQtApprovalStatus},
#{bidJsqrQtOperateUserName},
#{bidJsqrQtOperateState},
#{bidJsqrQtOperateTime},
#{bidJsqrQtRemark},
#{bidJsqrQtCheckUserName},
#{bidJsqrQtCheckState},
#{bidJsqrQtCheckTime},
#{bidJsqrQtCheckRemark},
#{bidJsqrQtLeaderUserName},
#{bidJsqrQtLeaderState},
#{bidJsqrQtLeaderTime},
#{bidJsqrQtLeaderRemark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{bidId},
update bid_jsqr
bid_jsqr_code = #{bidJsqrCode},
bid_jsxz_approval_status = #{bidJsxzApprovalStatus},
bid_jsxz_technical_requirement = #{bidJsxzTechnicalRequirement},
bid_jsxz_group_values = #{bidJsxzGroupValues},
bid_jsqr_tl_approval_status = #{bidJsqrTlApprovalStatus},
bid_jsqr_tl_operate_user_name = #{bidJsqrTlOperateUserName},
bid_jsqr_tl_operate_state = #{bidJsqrTlOperateState},
bid_jsqr_tl_operate_time = #{bidJsqrTlOperateTime},
bid_jsqr_tl_remark = #{bidJsqrTlRemark},
bid_jsqr_tl_check_user_name = #{bidJsqrTlCheckUserName},
bid_jsqr_tl_check_state = #{bidJsqrTlCheckState},
bid_jsqr_tl_check_time = #{bidJsqrTlCheckTime},
bid_jsqr_tl_check_remark = #{bidJsqrTlCheckRemark},
bid_jsqr_tl_leader_user_name = #{bidJsqrTlLeaderUserName},
bid_jsqr_tl_leader_state = #{bidJsqrTlLeaderState},
bid_jsqr_tl_leader_time = #{bidJsqrTlLeaderTime},
bid_jsqr_tl_leader_remark = #{bidJsqrTlLeaderRemark},
bid_jsqr_dy_approval_status = #{bidJsqrDyApprovalStatus},
bid_jsqr_dy_operate_user_name = #{bidJsqrDyOperateUserName},
bid_jsqr_dy_operate_state = #{bidJsqrDyOperateState},
bid_jsqr_dy_operate_time = #{bidJsqrDyOperateTime},
bid_jsqr_dy_remark = #{bidJsqrDyRemark},
bid_jsqr_dy_check_user_name = #{bidJsqrDyCheckUserName},
bid_jsqr_dy_check_state = #{bidJsqrDyCheckState},
bid_jsqr_dy_check_time = #{bidJsqrDyCheckTime},
bid_jsqr_dy_check_remark = #{bidJsqrDyCheckRemark},
bid_jsqr_dy_leader_user_name = #{bidJsqrDyLeaderUserName},
bid_jsqr_dy_leader_state = #{bidJsqrDyLeaderState},
bid_jsqr_dy_leader_time = #{bidJsqrDyLeaderTime},
bid_jsqr_dy_leader_remark = #{bidJsqrDyLeaderRemark},
bid_jsqr_zy_approval_status = #{bidJsqrZyApprovalStatus},
bid_jsqr_zy_operate_user_name = #{bidJsqrZyOperateUserName},
bid_jsqr_zy_operate_state = #{bidJsqrZyOperateState},
bid_jsqr_zy_operate_time = #{bidJsqrZyOperateTime},
bid_jsqr_zy_remark = #{bidJsqrZyRemark},
bid_jsqr_zy_check_user_name = #{bidJsqrZyCheckUserName},
bid_jsqr_zy_check_state = #{bidJsqrZyCheckState},
bid_jsqr_zy_check_time = #{bidJsqrZyCheckTime},
bid_jsqr_zy_check_remark = #{bidJsqrZyCheckRemark},
bid_jsqr_zy_leader_user_name = #{bidJsqrZyLeaderUserName},
bid_jsqr_zy_leader_state = #{bidJsqrZyLeaderState},
bid_jsqr_zy_leader_time = #{bidJsqrZyLeaderTime},
bid_jsqr_zy_leader_remark = #{bidJsqrZyLeaderRemark},
bid_jsqr_qt_approval_status = #{bidJsqrQtApprovalStatus},
bid_jsqr_qt_operate_user_name = #{bidJsqrQtOperateUserName},
bid_jsqr_qt_operate_state = #{bidJsqrQtOperateState},
bid_jsqr_qt_operate_time = #{bidJsqrQtOperateTime},
bid_jsqr_qt_remark = #{bidJsqrQtRemark},
bid_jsqr_qt_check_user_name = #{bidJsqrQtCheckUserName},
bid_jsqr_qt_check_state = #{bidJsqrQtCheckState},
bid_jsqr_qt_check_time = #{bidJsqrQtCheckTime},
bid_jsqr_qt_check_remark = #{bidJsqrQtCheckRemark},
bid_jsqr_qt_leader_user_name = #{bidJsqrQtLeaderUserName},
bid_jsqr_qt_leader_state = #{bidJsqrQtLeaderState},
bid_jsqr_qt_leader_time = #{bidJsqrQtLeaderTime},
bid_jsqr_qt_leader_remark = #{bidJsqrQtLeaderRemark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where bid_jsqr_id = #{bidJsqrId}
delete from bid_jsqr where bid_jsqr_id = #{bidJsqrId}
delete from bid_jsqr where bid_jsqr_id in
#{bidJsqrId}