select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, sp.projectName, sd.dept_name from sur_project_checking spc
left join sur_project sp on spc.project_id = sp.id
left join sys_dept sd on sd.dept_id = spc.dept_id
insert into sur_project_checking
project_id,
dept_id,
group_dept_id,
check_type,
main_image,
image_urls,
working_position_type,
check_working_position,
checking_num,
check_result,
intro,
quality_user,
quality_user_name,
supervise_user,
supervise_user_name,
group_dept_user,
group_dept_user_name,
checking_date,
checking_files,
is_del,
create_by,
create_time,
update_by,
update_time,
remark,
approve_status,
#{projectId},
#{deptId},
#{groupDeptId},
#{checkType},
#{mainImage},
#{imageUrls},
#{workingPositionType},
#{checkWorkingPosition},
#{checkingNum},
#{checkResult},
#{intro},
#{qualityUser},
#{qualityUserName},
#{superviseUser},
#{superviseUserName},
#{groupDeptUser},
#{groupDeptUserName},
#{checkingDate},
#{checkingFiles},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{approveStatus},
update sur_project_checking
project_id = #{projectId},
dept_id = #{deptId},
group_dept_id = #{groupDeptId},
check_type = #{checkType},
main_image = #{mainImage},
image_urls = #{imageUrls},
working_position_type = #{workingPositionType},
check_working_position = #{checkWorkingPosition},
checking_num = #{checkingNum},
check_result = #{checkResult},
intro = #{intro},
quality_user = #{qualityUser},
quality_user_name = #{qualityUserName},
supervise_user = #{superviseUser},
supervise_user_name = #{superviseUserName},
group_dept_user = #{groupDeptUser},
group_dept_user_name = #{groupDeptUserName},
checking_date = #{checkingDate},
checking_files = #{checkingFiles},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
approve_status = #{approveStatus},
where id = #{id}
delete from sur_project_checking where id = #{id}
delete from sur_project_checking where id in
#{id}