kongdeqiang
2022-09-18 d0ed3bf68c62fc4c5177c5a91f72b141f643a12a
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.boying.dao;
 
import com.boying.common.BaseDao;
import com.boying.entity.Park;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
 
@Repository("parkDao")
public interface ParkDao extends BaseDao<Park, Long>{
 
    @Query(value = "select sum(num) from Park")
    Integer sum1();
}