| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package cn.com.goldenwater.dcproj.service.impl.rsfco;
- import cn.com.goldenwater.core.service.AbstractCrudService;
- import cn.com.goldenwater.dcproj.dao.BisInspRsfcoRgstrFcsDao;
- import cn.com.goldenwater.dcproj.model.BisInspAll;
- import cn.com.goldenwater.dcproj.model.BisInspRsfcoRgstrFcs;
- import cn.com.goldenwater.dcproj.param.BisInspRsfcoRgstrFcsParam;
- import cn.com.goldenwater.dcproj.service.BisInspRsfcoRgstrFcsService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- /**
- * @author lune
- * @date 2021年3月29日
- */
- @Service
- @Transactional(rollbackFor = Exception.class)
- public class BisInspRsfcoRgstrFcsServiceImpl extends AbstractCrudService<BisInspRsfcoRgstrFcs, BisInspRsfcoRgstrFcsParam> implements BisInspRsfcoRgstrFcsService {
- @Autowired
- private BisInspRsfcoRgstrFcsDao bisInspRsfcoRgstrFcsDao;
- public BisInspRsfcoRgstrFcsServiceImpl(BisInspRsfcoRgstrFcsDao bisInspRsfcoRgstrFcsDao) {
- super(bisInspRsfcoRgstrFcsDao);
- this.bisInspRsfcoRgstrFcsDao = bisInspRsfcoRgstrFcsDao;
- }
- //
- @Override
- public BisInspRsfcoRgstrFcs getWith(String var1) {
- BisInspRsfcoRgstrFcs rgstrFcs = bisInspRsfcoRgstrFcsDao.getWith(var1);
- if (rgstrFcs == null){
- BisInspAll org = bisInspRsfcoRgstrFcsDao.getORG(var1);
- rgstrFcs = new BisInspRsfcoRgstrFcs();
- rgstrFcs.setRgstrId(var1);
- if (org != null){
- rgstrFcs.setInspUnit(org.getOrgName());
- }
- }
- return rgstrFcs;
- }
- }
|