select id, p_id, org_id, act_id, attach_url, attach_name, bill_status, del_flag, create_by, create_time, update_by, update_time, remarks, thumbnail_url from F_TMSORDERBILLSATTACHS
insert into F_TMSORDERBILLSATTACHS
p_id,
org_id,
act_id,
attach_url,
attach_name,
bill_status,
del_flag,
create_by,
create_time,
update_by,
update_time,
remarks,
thumbnail_url,
#{pId},
#{orgId},
#{actId},
#{attachUrl},
#{attachName},
#{billStatus},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remarks},
#{thumbnailUrl},
update F_TMSORDERBILLSATTACHS
p_id = #{pId},
org_id = #{orgId},
act_id = #{actId},
attach_url = #{attachUrl},
attach_name = #{attachName},
bill_status = #{billStatus},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remarks = #{remarks},
thumbnail_url = #{thumbnailUrl},
where id = #{id}
delete from F_TMSORDERBILLSATTACHS where id = #{id}
delete from F_TMSORDERBILLSATTACHS where p_id = #{id}
delete from F_TMSORDERBILLSATTACHS
and p_id = #{pId}
and org_id = #{orgId}
and act_id = #{actId}
and attach_url = #{attachUrl}
and attach_name like concat('%', #{attachName}, '%')
and bill_status = #{billStatus}
and remarks = #{remarks}
delete from F_TMSORDERBILLSATTACHS where id in
#{id}