select id, marks_location, marks_time, marks_picture, marks_video,
project_type, process_name, position_part, marks_remark,
auditor_person, create_date, create_user, auditorPhone,checkState, projectId,project_name from smz_ssp_marks
insert into smz_ssp_marks
id,
marks_location,
marks_time,
marks_picture,
marks_video,
project_type,
process_name,
position_part,
marks_remark,
auditor_person,
create_date,
create_user,
projectId,
project_name,
checkState,
auditorPhone,
infoType,
is_del
#{id},
#{marksLocation},
#{marksTime},
#{marksPicture},
#{marksVideo},
#{projectType},
#{processName},
#{positionPart},
#{marksRemark},
#{auditorPerson},
#{createDate},
#{createUser},
#{projectId},
#{projectName},
#{checkState},
#{auditorPhone},
0,
0
update smz_ssp_marks
marks_location = #{marksLocation},
marks_time = #{marksTime},
marks_picture = #{marksPicture},
marks_video = #{marksVideo},
project_type = #{projectType},
process_name = #{processName},
position_part = #{positionPart},
marks_remark = #{marksRemark},
auditor_person = #{auditorPerson},
create_date = #{createDate},
create_user = #{createUser},
projectId = #{projectId},
project_name = #{projectName},
auditorPhone = #{auditorPhone},
checkState = #{checkState},
smark_url = #{smarkUrl},
surveyorName = #{surveyorName},
surveyorId = #{surveyorId},
surveyorTime = #{surveyorTime},
surveyorContent = #{surveyorContent}
update_date = #{updateDate}
where id = #{id}
delete from smz_ssp_marks where id = #{id}
delete from smz_ssp_marks where id in
#{id}
insert into smz_ssp_marks
id,
marks_location,
marks_time,
project_type,
process_name,
position_part,
marks_remark,
auditor_person,
create_date,
create_user,
projectId,
project_name,
checkState,
auditorPhone,
idcardnum,
infoType,
is_del
#{id},
#{marksLocation},
#{marksTime},
#{projectType},
#{processName},
#{positionPart},
#{marksRemark},
#{auditorPerson},
NOW(),
#{createUser},
#{projectId},
#{projectName},
0,
#{auditorPhone},
#{idcardnum},
0,
0
update smz_ssp_marks
marks_picture = #{picture}
where id = #{id}
update smz_ssp_marks
marks_video = #{video}
where id = #{id}
update smz_ssp_marks
smark_url = #{smarkUrl}
where id = #{id}
INSERT INTO `smz_ssp_quality_mark`(
project_id,
work_time,
before_imgs,
after_imgs,
position_id,
paragrap_id,
location_id,
conclusion,
sz_user,
zj_user_id,
zb_user_id,
jl_user_id,
create_user,
create_time
)
VALUES(
#{projectId},
#{workTime},
#{beforeImgs},
#{afterImgs},
#{positionId},
#{paragrapId},
#{locationId},
#{conclusion},
#{szUser},
#{zjUserId},
#{zbUserId},
#{jlUserId},
#{createUser},
NOW()
)
INSERT INTO `smz_ssp_quality_mark_approve`(mark_id,user_id,user_name,login_name,sort,state,create_time)
VALUES(#{markId},#{userId},#{userName},#{loginName},#{sort},0,NOW())