| package com.zy.asrs.mapper; | 
|   | 
| import com.baomidou.mybatisplus.mapper.BaseMapper; | 
| import com.zy.asrs.entity.RowLastno; | 
| import org.apache.ibatis.annotations.Mapper; | 
| import org.apache.ibatis.annotations.Param; | 
| import org.apache.ibatis.annotations.Update; | 
| import org.springframework.stereotype.Repository; | 
|   | 
| @Mapper | 
| @Repository | 
| public interface RowLastnoMapper extends BaseMapper<RowLastno> { | 
|   | 
|     RowLastno findBySection(Integer row); | 
|   | 
|     @Update("update asr_row_lastno set wrk_mk = 1 where whs_type = 1") | 
|     void updateInitWrkMk(); | 
|   | 
|     @Update("update asr_row_lastno set wrk_mk = 1 where whs_type = #{whs}") | 
|     void updateNextWrkMk(@Param("whs") int i); | 
| } |