anti_fake id, product_no,security_code,batch_number,sha_value,produce_time,scan_time,status,use_status,scan_number,create_time,update_time #{productNo},#{securityCode},#{batchNumber},#{shaValue},#{produceTime},#{scanTime},#{status},#{useStatus},#{scanNumber},now(),now() #{i.productNo},#{i.securityCode},#{i.batchNumber},#{i.shaValue},#{i.produceTime},#{i.scanTime},#{i.status},#{i.useStatus}, #{i.scanNumber},now(),now() product_no = #{productNo}, security_code = #{securityCode}, batch_number = #{batchNumber}, sha_value = #{shaValue}, produce_time = #{produceTime}, scan_time = #{scanTime}, status = #{status}, use_status = #{useStatus}, scan_number = #{scanNumber}, update_time =now() id = #{id} and product_no = #{productNo} and security_code = #{securityCode} and batch_number = #{batchNumber} and sha_value = #{shaValue} and produce_time = #{produceTime} and scan_time = #{scanTime} and status = #{status} and use_status = #{useStatus} and sca_number = #{scaNumber} and create_time >= #{createTime} and #{updateTime} >= update_time insert into () value( ) UPDATE id = #{id} UPDATE use_status=1 use_status=1 and batch_number=#{batchNumber} INSERT INTO () VALUES ()