select ppc.id, ppc.com_id, sd.dept_name as com_name, ppc.project_id, pi.project_name, ppc.check_type, ppc.main_image, ppc.image_urls, ppc.working_position, ppc.working_position_type, ppc.checking_num, ppc.check_result, ppc.intro, ppc.technician_user, ppc.technician_user_name, ppc.supervise_user, ppc.supervise_user_name, ppc.group_dept_user, ppc.group_dept_user_name, ppc.checking_date, ppc.checking_files, ppc.is_del, ppc.approve_status, ppc.create_by, ppc.create_time, ppc.update_by, ppc.update_time, ppc.remark
from pro_project_checked ppc
left join pro_project_info pi on pi.id = ppc.project_id
left join sys_dept sd on sd.dept_id = ppc.com_id
insert into pro_project_checked
com_id,
project_id,
check_type,
main_image,
image_urls,
working_position,
working_position_type,
checking_num,
check_result,
intro,
technician_user,
technician_user_name,
supervise_user,
supervise_user_name,
group_dept_user,
group_dept_user_name,
checking_date,
checking_files,
is_del,
approve_status,
create_by,
create_time,
update_by,
update_time,
remark,
#{comId},
#{projectId},
#{checkType},
#{mainImage},
#{imageUrls},
#{workingPosition},
#{workingPositionType},
#{checkingNum},
#{checkResult},
#{intro},
#{technicianUser},
#{technicianUserName},
#{superviseUser},
#{superviseUserName},
#{groupDeptUser},
#{groupDeptUserName},
#{checkingDate},
#{checkingFiles},
#{isDel},
#{approveStatus},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update pro_project_checked
com_id = #{comId},
project_id = #{projectId},
check_type = #{checkType},
main_image = #{mainImage},
image_urls = #{imageUrls},
working_position = #{workingPosition},
working_position_type = #{workingPositionType},
checking_num = #{checkingNum},
check_result = #{checkResult},
intro = #{intro},
technician_user = #{technicianUser},
technician_user_name = #{technicianUserName},
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},
approve_status = #{approveStatus},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
delete from pro_project_checked where id = #{id}
delete from pro_project_checked where id in
#{id}