增加二维码重复使用校验
This commit is contained in:
@@ -23,4 +23,7 @@ public interface BarcodeMapper {
|
||||
|
||||
@NoPlatform
|
||||
Barcode findBarcode(@Param("venueId") Integer venueId,@Param("memberId") Integer memberId);
|
||||
|
||||
@NoPlatform
|
||||
Barcode checkCodeStatus(@Param("barcode") String barcode);
|
||||
}
|
||||
|
||||
@@ -168,4 +168,12 @@
|
||||
and status = 0
|
||||
</select>
|
||||
|
||||
<select id="checkCodeStatus" resultMap="BaseResultMap" parameterType="String" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sv_barcode
|
||||
where barcode = #{barcode,jdbcType=VARCHAR}
|
||||
and status = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user