DtywCbsbDao.java 544 B

123456789101112131415161718192021
  1. package com.jtgh.cjhs.dao;
  2. import java.util.List;
  3. import org.springframework.data.jpa.repository.Query;
  4. import com.jtgh.cjhs.dao.common.CjhsRepository;
  5. import com.jtgh.cjhs.entity.DtywCbsbEntity;
  6. /**
  7. *长江海事DAO
  8. *
  9. * @author 刘福亮
  10. *
  11. */
  12. public interface DtywCbsbDao extends
  13. CjhsRepository<DtywCbsbEntity, String> {
  14. @Query(value = " SELECT * FROM (SELECT * FROM DTYW_CBSB WHERE ZWCM=?1 ORDER BY MRUT DESC)WHERE ROWNUM<2 ", nativeQuery = true)
  15. public List<DtywCbsbEntity> findByZwcm(String zwcm);
  16. }