package cn.com.goldenwater.dcproj.service.impl.rsvr; import cn.com.goldenwater.core.service.AbstractCrudService; import cn.com.goldenwater.dcproj.dao.BisInspSafeExtManageDao; import cn.com.goldenwater.dcproj.model.BisInspSafeExtApp; import cn.com.goldenwater.dcproj.model.BisInspSafeExtManage; import cn.com.goldenwater.dcproj.param.BisInspSafeExtManageParam; import cn.com.goldenwater.dcproj.service.BisInspSafeExtManageService; import cn.com.goldenwater.id.util.UuidUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.Date; /** * @author lune * @date 2019-2-18 */ @Service @Transactional public class BisInspSafeExtManageServiceImpl extends AbstractCrudService implements BisInspSafeExtManageService { @Autowired private BisInspSafeExtManageDao bisInspSafeExtManageDao; public BisInspSafeExtManageServiceImpl(BisInspSafeExtManageDao bisInspSafeExtManageDao) { super(bisInspSafeExtManageDao); this.bisInspSafeExtManageDao = bisInspSafeExtManageDao; } @Override public int insert(BisInspSafeExtManage entity) { entity.setMngrnId(UuidUtil.uuid()); entity.setCreateTime(new Date()); return super.insert(entity); } @Override public int update(BisInspSafeExtManage entity) { entity.setUpdateTime(new Date()); return super.update(entity); } @Override public BisInspSafeExtApp getApp(String id) { return bisInspSafeExtManageDao.getSafeExtApp(id); } }