opc.id,
opc.sb_id,
opc.sb_name,
opc.position_num,
opc.line,
opc.type,
opc.warn_first,
opc.warn_second,
opc.warn_third,
opc.warn_four,
opc.warn_first_color,
opc.warn_second_color,
opc.warn_third_color,
opc.warn_four_color,
opc.low,
opc.high,
opc.description,
opc.result,
opc.av_flag,
opc.port_flag,
opc.fetch_flag,
opc.created_flag,
opc.position_flag,
opc.x_position,
opc.y_position,
opc.img_x_position,
opc.img_y_position,
opc.width,
opc.height,
opc.ratio,
opc.unit,
opc.info,
opc.remark,
opc.created_user_id,
opc.update_user_id,
opc.created_time,
opc.update_time
opc.sb_id,
opc.sb_name,
opc.position_num,
opc.line,
opc.type,
opc.info,
opc.warn_first,
opc.warn_second,
opc.warn_third,
opc.warn_four,
opc.low,
opc.high,
opc.description,
opc.result,
opc.av_flag,
opc.port_flag,
opc.fetch_flag,
opc.created_flag,
opc.position_flag,
opc.x_position,
opc.y_position,
opc.img_x_position,
opc.img_y_position,
opc.width,
opc.height,
opc.ratio,
opc.unit,
opc.remark,
and opc.id = #{id}
and opc.created_flag = #{createdFlag}
and opc.av_flag = #{avFlag}
and opc.port_flag = #{portFlag}
and opc.fetch_flag = #{fetchFlag}
and opc.position_flag = #{positionFlag}
and opc.sb_id = #{sbId}
and opc.sb_name = #{sbName}
and opc.position_num = #{positionNum}
and opc.line = #{line}
and opc.type = #{type}
and opc.description = #{description}
and opc.result = #{result}
and opc.ratio = #{ratio}
and opc.unit = #{unit}
and opc.remark = #{remark}
and opc.created_user_id = #{createdUserId}
and opc.update_user_id = #{updateUserId}
and opc.created_time =]]>; #{createdTimeStart}
and opc.created_time #{createdTimeEnd}
and opc.created_time = #{createdTime}
and opc.update_time =]]>; #{updateTimeStart}
and opc.update_time #{updateTimeEnd}
and opc.update_time = #{updateTime}
and (
opc.sb_name like concat(concat('%',#{keyword}),'%')
or opc.position_num like concat(concat('%',#{keyword}),'%')
)
AND opc.id in
#{item}
update t_remote_opc
result = #{item.result},
remark = #{item.remark},
update_user_id = #{item.updateUserId},
update_time = #{item.updateTime}
av_flag = #{item.avFlag}
created_flag = #{item.createdFlag}
position_flag = #{item.positionFlag}
fetch_flag = #{fetchFlag}
port_flag = #{portFlag}
x_position = #{item.xPosition}
y_position = #{item.yPosition}
width = #{item.width}
height = #{item.height}
where position_num = #{item.positionNum}