kongdeqiang
2022-09-19 a9862e81851bbe037edc6bb1c7f562c1e55c0d7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.boying.service;
 
import com.boying.common.BaseDao;
import com.boying.common.BaseService;
import com.boying.dao.ParkDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import javax.annotation.Resource;
 
@Service
@Transactional(readOnly = true)
public class ParkService extends BaseService {
 
    @Autowired
    private ParkDao parkDao;
 
    @Override
    @Resource(name="parkDao")
    protected void setBaseDao(BaseDao baseDao) {
        this.baseDao = baseDao;
    }
 
    public int count1() {
        Integer a = parkDao.sum1();
        if(a==null){
            return 0;
        }else{
            return a.intValue();
        }
    }
}