| | |
| | | package com.iailab.module.model.mcs.sche.service.impl; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DSTransactional; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.framework.common.util.object.ConvertUtils; |
| | | import com.iailab.module.model.mcs.sche.dao.StSuggestSnapshotConfDetDao; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfDetEntity; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotConfDetService; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | |
| | |
| | | private StSuggestSnapshotConfDetService stSuggestSnapshotConfDetService; |
| | | |
| | | @Override |
| | | public PageResult<StSuggestSnapshotConfDetRespVO> page(StSuggestSnapshotConfDetPageReqVO reqVO) { |
| | | IPage<StSuggestSnapshotConfDetRespVO> page = baseDao.selectPage(reqVO); |
| | | return new PageResult<>(page.getRecords(), page.getTotal()); |
| | | public PageResult<StSuggestSnapshotConfDetEntity> page(StSuggestSnapshotConfDetPageReqVO reqVO) { |
| | | return baseDao.selectPage(reqVO); |
| | | } |
| | | |
| | | @Override |
| | |
| | | public void delete(String id) { |
| | | baseDao.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public StSuggestSnapshotConfDetRespVO getByConfId(String confId) { |
| | | return ConvertUtils.sourceToTarget(baseDao.selectOne("conf_id", confId), StSuggestSnapshotConfDetRespVO.class); |
| | | } |
| | | } |