| | |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.module.model.mcs.sche.dao.StScheduleModelDao; |
| | | import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleModelOutService; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleModelParamService; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleModelService; |
| | | import com.iailab.module.model.mcs.sche.service.StScheduleModelSettingService; |
| | |
| | | @Autowired |
| | | private StScheduleModelSettingService stScheduleModelSettingService; |
| | | |
| | | @Autowired |
| | | private StScheduleModelOutService stScheduleModelOutService; |
| | | |
| | | @Override |
| | | public PageResult<StScheduleModelEntity> page(StScheduleModelPageReqVO reqVO) { |
| | | return stScheduleModelDao.selectPage(reqVO); |
| | |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | stScheduleModelDao.insert(entity); |
| | | stScheduleModelParamService.saveList(entity.getId(), reqVO.getParamList()); |
| | | stScheduleModelOutService.insertList(reqVO.getModelOut(), entity.getId()); |
| | | stScheduleModelSettingService.saveList(entity.getId(), reqVO.getSettingList()); |
| | | } |
| | | |
| | |
| | | stScheduleModelDao.updateById(entity); |
| | | stScheduleModelParamService.saveList(entity.getId(), reqVO.getParamList()); |
| | | stScheduleModelSettingService.saveList(entity.getId(), reqVO.getSettingList()); |
| | | stScheduleModelOutService.deleteScheduleModelOut(entity.getId()); |
| | | stScheduleModelOutService.insertList(reqVO.getModelOut(), entity.getId()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | stScheduleModelDao.deleteById(id); |
| | | stScheduleModelParamService.deleteByModelId(id); |
| | | stScheduleModelSettingService.deleteByModelId(id); |
| | | stScheduleModelOutService.deleteScheduleModelOut(id); |
| | | } |
| | | |
| | | @Override |