CarChaoBaoDao.java 465 B

1234567891011121314151617
  1. package com.nokia.financeapi.dao.car;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import org.apache.ibatis.annotations.Param;
  4. import org.apache.ibatis.annotations.Select;
  5. @Mapper
  6. public interface CarChaoBaoDao {
  7. /**
  8. * 判断是否有数据
  9. * @param endYearMonth 账期
  10. */
  11. @Select("""
  12. select exists (select 1 from car.car_chao_bao where year_month = #{endYearMonth})
  13. """)
  14. boolean hasData(@Param("endYearMonth") Integer endYearMonth);
  15. }