1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.dy.pipIrrBase.district;
 
import com.dy.pipIrrGlobal.daoBa.BaDistrictMapper;
import com.dy.pipIrrGlobal.pojoBa.BaDistrict;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Slf4j
@Service
public class DistrictSv {
 
    private BaDistrictMapper baDistrictMapper ;
 
    @Autowired
    private void setBaDistrictMapper(BaDistrictMapper baDistrictMapper){
        this.baDistrictMapper = baDistrictMapper ;
    }
 
 
    public int save(BaDistrict po){
        return this.baDistrictMapper.insert(po) ;
    }
}