DilVersionMapper.java 690 B

12345678910111213141516171819
  1. package com.steerinfo.route.mapper;
  2. import com.steerinfo.dil.model.DilVersion;
  3. import com.steerinfo.framework.mapper.IBaseMapper;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import org.apache.ibatis.annotations.Select;
  7. import org.apache.ibatis.annotations.Update;
  8. import java.math.BigDecimal;
  9. @Mapper
  10. public interface DilVersionMapper extends IBaseMapper<DilVersion, BigDecimal> {
  11. @Select("select VERSION_VALUE from DIL_VERSION where VERSION_TYPE = 3")
  12. String getToken();
  13. @Update("update DIL_VERSION set VERSION_VALUE = #{token}, UPDATE_TIME = SYSDATE where VERSION_TYPE = 3")
  14. int updateToken(@Param("token") String token);
  15. }