|
@@ -0,0 +1,19 @@
|
|
|
+package com.gis.cms.mapper;
|
|
|
+
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
+import com.gis.cms.entity.po.ArEnterEntity;
|
|
|
+import com.gis.cms.entity.po.ArPrizeEntity;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+@Component
|
|
|
+@Mapper
|
|
|
+public interface ArPrizeMapper extends BaseMapper<ArPrizeEntity> {
|
|
|
+
|
|
|
+
|
|
|
+ @Update("update ar_prize set count = count+#{count} , update_time = NOW() where is_delete=0 and type = #{type} ")
|
|
|
+ void updateCount(@Param("type") String type, @Param("count") Integer count);
|
|
|
+}
|