对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.controller.admin; |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotConfDetService; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetSaveReqVO; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | | |
| | | /** |
| | | * @author DongYukun |
| | | * @Description |
| | | * @createTime 2025年05月23日 |
| | | */ |
| | | @Tag(name = "调度建议快照详情") |
| | | @RestController |
| | | @RequestMapping("/model/suggest/snapshot/conf-det") |
| | | public class StSuggestSnapshotConfDetController { |
| | | |
| | | @Autowired |
| | | private StSuggestSnapshotConfDetService stSuggestSnapshotConfDetService; |
| | | |
| | | @GetMapping("/page") |
| | | @PreAuthorize("@ss.hasPermission('suggest:snapshot:query')") |
| | | public CommonResult<PageResult<StSuggestSnapshotConfDetRespVO>> getPage(@Valid StSuggestSnapshotConfDetPageReqVO pageVO) { |
| | | PageResult<StSuggestSnapshotConfDetRespVO> pageResult = stSuggestSnapshotConfDetService.page(pageVO); |
| | | return success(pageResult); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | | @PreAuthorize("@ss.hasPermission('suggest:snapshot:create')") |
| | | public CommonResult<Boolean> create(@Valid @RequestBody StSuggestSnapshotConfDetSaveReqVO createReqVO) { |
| | | stSuggestSnapshotConfDetService.create(createReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | @PreAuthorize("@ss.hasPermission('suggest:snapshot:update')") |
| | | public CommonResult<Boolean> update(@Valid @RequestBody StSuggestSnapshotConfDetSaveReqVO updateReqVO) { |
| | | stSuggestSnapshotConfDetService.update(updateReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('suggest:snapshot:delete')") |
| | | public CommonResult<Boolean> deleteTenant(@RequestParam("id") String id) { |
| | | stSuggestSnapshotConfDetService.delete(id); |
| | | return success(true); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.controller.admin; |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotConfMainService; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainSaveReqVO; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | | |
| | | /** |
| | | * @author DongYukun |
| | | * @Description |
| | | * @createTime 2025年05月23日 |
| | | */ |
| | | @Tag(name = "调度建议快照") |
| | | @RestController |
| | | @RequestMapping("/model/suggest/snapshot/conf-main") |
| | | public class StSuggestSnapshotConfMainController { |
| | | |
| | | @Autowired |
| | | private StSuggestSnapshotConfMainService stSuggestSnapshotConfMainService; |
| | | |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<StSuggestSnapshotConfMainRespVO>> getPage(@Valid StSuggestSnapshotConfMainPageReqVO pageVO) { |
| | | PageResult<StSuggestSnapshotConfMainRespVO> pageResult = stSuggestSnapshotConfMainService.page(pageVO); |
| | | return success(pageResult); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | | public CommonResult<Boolean> create(@Valid @RequestBody StSuggestSnapshotConfMainSaveReqVO createReqVO) { |
| | | stSuggestSnapshotConfMainService.create(createReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | public CommonResult<Boolean> update(@Valid @RequestBody StSuggestSnapshotConfMainSaveReqVO updateReqVO) { |
| | | stSuggestSnapshotConfMainService.update(updateReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | public CommonResult<Boolean> deleteTenant(@RequestParam("id") String id) { |
| | | stSuggestSnapshotConfMainService.delete(id); |
| | | return success(true); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.controller.admin; |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotRecordService; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordChartReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordSaveReqVO; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | | |
| | | public class StSuggestSnapshotRecordController { |
| | | |
| | | @Autowired |
| | | private StSuggestSnapshotRecordService stSuggestSnapshotRecordService; |
| | | |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<StSuggestSnapshotRecordRespVO>> getPage(@Valid StSuggestSnapshotRecordChartReqVO pageVO) { |
| | | PageResult<StSuggestSnapshotRecordRespVO> pageResult = stSuggestSnapshotRecordService.page(pageVO); |
| | | return success(pageResult); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | | public CommonResult<Boolean> create(@Valid @RequestBody StSuggestSnapshotRecordSaveReqVO createReqVO) { |
| | | stSuggestSnapshotRecordService.create(createReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | public CommonResult<Boolean> update(@Valid @RequestBody StSuggestSnapshotRecordSaveReqVO updateReqVO) { |
| | | stSuggestSnapshotRecordService.update(updateReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | public CommonResult<Boolean> deleteTenant(@RequestParam("id") String id) { |
| | | stSuggestSnapshotRecordService.delete(id); |
| | | return success(true); |
| | | } |
| | | } |
| | |
| | | package com.iailab.module.model.mcs.sche.dao; |
| | | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
| | | import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
| | | import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfDetEntity; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetPageReqVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author Jay |
| | |
| | | @TenantDS |
| | | @Mapper |
| | | public interface StSuggestSnapshotConfDetDao extends BaseMapperX<StSuggestSnapshotConfDetEntity> { |
| | | |
| | | default PageResult<StSuggestSnapshotConfDetEntity> selectPage(StSuggestSnapshotConfDetPageReqVO reqVO) { |
| | | return selectPage(reqVO); |
| | | } |
| | | } |
| | |
| | | package com.iailab.module.model.mcs.sche.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
| | | import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainEntity; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainRespVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author Jay |
| | |
| | | @TenantDS |
| | | @Mapper |
| | | public interface StSuggestSnapshotConfMainDao extends BaseMapperX<StSuggestSnapshotConfMainEntity> { |
| | | |
| | | default PageResult<StSuggestSnapshotConfMainEntity> selectPage(StSuggestSnapshotConfMainPageReqVO reqVO) { |
| | | return selectPage(reqVO); |
| | | } |
| | | } |
| | |
| | | package com.iailab.module.model.mcs.sche.dao; |
| | | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
| | | import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotRecordEntity; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordChartReqVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | |
| | | @TenantDS |
| | | @Mapper |
| | | public interface StSuggestSnapshotRecordDao extends BaseMapperX<StSuggestSnapshotRecordEntity> { |
| | | |
| | | default PageResult<StSuggestSnapshotRecordEntity> selectPage(StSuggestSnapshotRecordChartReqVO reqVO) { |
| | | return selectPage(reqVO); |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.iailab.framework.mybatis.core.dataobject.BaseDO; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | */ |
| | | @Data |
| | | @TableName("t_st_suggest_snapshot_conf_det") |
| | | public class StSuggestSnapshotConfDetEntity implements Serializable { |
| | | public class StSuggestSnapshotConfDetEntity extends BaseDO { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | package com.iailab.module.model.mcs.sche.service; |
| | | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.BaseService; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfDetEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfDetEntity; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetSaveReqVO; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | public interface StSuggestSnapshotConfDetService extends BaseService<StSuggestSnapshotConfDetEntity> { |
| | | PageResult<StSuggestSnapshotConfDetRespVO> page(StSuggestSnapshotConfDetPageReqVO reqVO); |
| | | |
| | | void create(StSuggestSnapshotConfDetSaveReqVO createReqVO); |
| | | |
| | | void update(StSuggestSnapshotConfDetSaveReqVO createReqVO); |
| | | |
| | | void delete(String id); |
| | | } |
| | |
| | | package com.iailab.module.model.mcs.sche.service; |
| | | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.BaseService; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainEntity; |
| | | |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainSaveReqVO; |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | public interface StSuggestSnapshotConfMainService extends BaseService<StSuggestSnapshotConfMainEntity> { |
| | | PageResult<StSuggestSnapshotConfMainRespVO> page(StSuggestSnapshotConfMainPageReqVO reqVO); |
| | | |
| | | void create(StSuggestSnapshotConfMainSaveReqVO createReqVO); |
| | | |
| | | void update(StSuggestSnapshotConfMainSaveReqVO createReqVO); |
| | | |
| | | void delete(String id); |
| | | } |
| | |
| | | package com.iailab.module.model.mcs.sche.service; |
| | | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.BaseService; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotRecordEntity; |
| | | |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordChartReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordSaveReqVO; |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | public interface StSuggestSnapshotRecordService extends BaseService<StSuggestSnapshotRecordEntity> { |
| | | PageResult<StSuggestSnapshotRecordRespVO> page(StSuggestSnapshotRecordChartReqVO reqVO); |
| | | |
| | | void create(StSuggestSnapshotRecordSaveReqVO createReqVO); |
| | | |
| | | void update(StSuggestSnapshotRecordSaveReqVO createReqVO); |
| | | |
| | | void delete(String id); |
| | | } |
| | |
| | | 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.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 com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfDetSaveReqVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | |
| | | /** |
| | |
| | | implements StSuggestSnapshotConfDetService { |
| | | |
| | | |
| | | @Autowired |
| | | private StSuggestSnapshotConfDetService stSuggestSnapshotConfDetService; |
| | | |
| | | @Override |
| | | public PageResult<StSuggestSnapshotConfDetRespVO> page(StSuggestSnapshotConfDetPageReqVO reqVO) { |
| | | IPage<StSuggestSnapshotConfDetRespVO> page = baseDao.selectPage(reqVO); |
| | | return new PageResult<>(page.getRecords(), page.getTotal()); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void create(StSuggestSnapshotConfDetSaveReqVO createReqVO) { |
| | | StSuggestSnapshotConfDetEntity entity = BeanUtils.toBean(createReqVO, StSuggestSnapshotConfDetEntity.class); |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | baseDao.insert(entity); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void update(StSuggestSnapshotConfDetSaveReqVO updateReqVO) { |
| | | StSuggestSnapshotConfDetEntity entity = BeanUtils.toBean(updateReqVO, StSuggestSnapshotConfDetEntity.class); |
| | | baseDao.updateById(entity); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void delete(String id) { |
| | | baseDao.deleteById(id); |
| | | } |
| | | } |
| | |
| | | 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.module.model.mcs.sche.dao.StSuggestSnapshotConfMainDao; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainDetEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainEntity; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotConfMainEntity; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotConfMainDetService; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotConfMainService; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainPageReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotConfMainSaveReqVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class StSuggestSnapshotConfMainServiceImpl extends BaseServiceImpl<StSuggestSnapshotConfMainDao, StSuggestSnapshotConfMainEntity> |
| | | implements StSuggestSnapshotConfMainService { |
| | | |
| | | @Override |
| | | public PageResult<StSuggestSnapshotConfMainRespVO> page(StSuggestSnapshotConfMainPageReqVO reqVO) { |
| | | IPage<StSuggestSnapshotConfMainRespVO> page = baseDao.selectPage(reqVO); |
| | | return new PageResult<>(page.getRecords(), page.getTotal()); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void create(StSuggestSnapshotConfMainSaveReqVO createReqVO) { |
| | | StSuggestSnapshotConfMainEntity entity = BeanUtils.toBean(createReqVO, StSuggestSnapshotConfMainEntity.class); |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | baseDao.insert(entity); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void update(StSuggestSnapshotConfMainSaveReqVO updateReqVO) { |
| | | StSuggestSnapshotConfMainEntity entity = BeanUtils.toBean(updateReqVO, StSuggestSnapshotConfMainEntity.class); |
| | | baseDao.updateById(entity); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void delete(String id) { |
| | | baseDao.deleteById(id); |
| | | } |
| | | } |
| | |
| | | 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.module.model.mcs.sche.dao.StSuggestSnapshotRecordDao; |
| | | import com.iailab.module.model.mcs.sche.entity.StSuggestSnapshotRecordEntity; |
| | | import com.iailab.module.model.mcs.sche.service.StSuggestSnapshotRecordService; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordChartReqVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordRespVO; |
| | | import com.iailab.module.model.mcs.sche.vo.StSuggestSnapshotRecordSaveReqVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.UUID; |
| | | |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class StSuggestSnapshotRecordServiceImpl extends BaseServiceImpl<StSuggestSnapshotRecordDao, StSuggestSnapshotRecordEntity> |
| | | implements StSuggestSnapshotRecordService { |
| | | |
| | | |
| | | @Autowired |
| | | private StSuggestSnapshotRecordService StSuggestSnapshotRecordService; |
| | | |
| | | @Override |
| | | public PageResult<StSuggestSnapshotRecordRespVO> page(StSuggestSnapshotRecordChartReqVO reqVO) { |
| | | IPage<StSuggestSnapshotRecordRespVO> page = baseDao.selectPage(reqVO); |
| | | return new PageResult<>(page.getRecords(), page.getTotal()); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void create(StSuggestSnapshotRecordSaveReqVO createReqVO) { |
| | | StSuggestSnapshotRecordEntity entity = BeanUtils.toBean(createReqVO, StSuggestSnapshotRecordEntity.class); |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | baseDao.insert(entity); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void update(StSuggestSnapshotRecordSaveReqVO updateReqVO) { |
| | | StSuggestSnapshotRecordEntity entity = BeanUtils.toBean(updateReqVO, StSuggestSnapshotRecordEntity.class); |
| | | baseDao.updateById(entity); |
| | | } |
| | | |
| | | @Override |
| | | @DSTransactional(rollbackFor = Exception.class) |
| | | public void delete(String id) { |
| | | baseDao.deleteById(id); |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议快照配置分页 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotConfDetPageReqVO { |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String confId; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议创建/修改 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotConfDetRespVO { |
| | | |
| | | @Schema(description = "ID") |
| | | private String id; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String confId; |
| | | |
| | | @Schema(description = "数据类型(DATAPOINT,IND,PLAN,PREDICTITEM)") |
| | | private String dataType; |
| | | |
| | | @Schema(description = "数据编号") |
| | | private String dataNo; |
| | | |
| | | @Schema(description = "左侧长度(min)") |
| | | private Integer leftLength; |
| | | |
| | | @Schema(description = "右侧侧长度(min)") |
| | | private Integer rightLength; |
| | | |
| | | @Schema(description = "排序") |
| | | private Integer sort; |
| | | |
| | | @Schema(description = "拓展字段1") |
| | | private String ext1; |
| | | |
| | | @Schema(description = "拓展字段2") |
| | | private String ext2; |
| | | |
| | | @Schema(description = "拓展字段3") |
| | | private String ext3; |
| | | |
| | | @Schema(description = "拓展字段4") |
| | | private String ext4; |
| | | |
| | | @Schema(description = "拓展字段5") |
| | | private String ext5; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议创建/修改 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotConfDetSaveReqVO { |
| | | |
| | | @Schema(description = "ID") |
| | | private String id; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String confId; |
| | | |
| | | @Schema(description = "数据类型(DATAPOINT,IND,PLAN,PREDICTITEM)") |
| | | private String dataType; |
| | | |
| | | @Schema(description = "数据编号") |
| | | private String dataNo; |
| | | |
| | | @Schema(description = "左侧长度(min)") |
| | | private Integer leftLength; |
| | | |
| | | @Schema(description = "右侧侧长度(min)") |
| | | private Integer rightLength; |
| | | |
| | | @Schema(description = "排序") |
| | | private Integer sort; |
| | | |
| | | @Schema(description = "拓展字段1") |
| | | private String ext1; |
| | | |
| | | @Schema(description = "拓展字段2") |
| | | private String ext2; |
| | | |
| | | @Schema(description = "拓展字段3") |
| | | private String ext3; |
| | | |
| | | @Schema(description = "拓展字段4") |
| | | private String ext4; |
| | | |
| | | @Schema(description = "拓展字段5") |
| | | private String ext5; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议快照配置详情分页 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotConfMainPageReqVO { |
| | | |
| | | @Schema(description = "标题") |
| | | private String title; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String modelId; |
| | | |
| | | @Schema(description = "调整对象") |
| | | private String scheduleObj; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议创建/修改 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotConfMainRespVO { |
| | | |
| | | @Schema(description = "ID") |
| | | private String id; |
| | | |
| | | @Schema(description = "标题") |
| | | private String title; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String modelId; |
| | | |
| | | @Schema(description = "调整对象") |
| | | private String scheduleObj; |
| | | |
| | | @Schema(description = "创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createTime; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议创建/修改 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotConfMainSaveReqVO { |
| | | |
| | | @Schema(description = "ID") |
| | | private String id; |
| | | |
| | | @Schema(description = "标题") |
| | | private String title; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String modelId; |
| | | |
| | | @Schema(description = "调整对象") |
| | | private String scheduleObj; |
| | | |
| | | @Schema(description = "创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createTime; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议快照图表查询 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotRecordChartReqVO { |
| | | |
| | | @Schema(description = "数据类型(DATAPOINT,IND,PLAN,PREDICTITEM)") |
| | | private String dataType; |
| | | |
| | | @Schema(description = "数据编号") |
| | | private String dataNo; |
| | | |
| | | @Schema(description = "开始时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date startTime; |
| | | |
| | | @Schema(description = "结束时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date endTime; |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议创建/修改 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotRecordRespVO { |
| | | |
| | | @Schema(description = "ID") |
| | | private String id; |
| | | |
| | | @Schema(description = "建议ID(只记录采纳)") |
| | | private String suggestId; |
| | | |
| | | @Schema(description = "操作记录ID(只记录采纳)") |
| | | private String operationId; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String modelId; |
| | | |
| | | @Schema(description = "数据类型(DATAPOINT,IND,PLAN,PREDICTITEM)") |
| | | private String dataType; |
| | | |
| | | @Schema(description = "数据编号") |
| | | private String dataNo; |
| | | |
| | | @Schema(description = "开始时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date startTime; |
| | | |
| | | @Schema(description = "结束时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date endTime; |
| | | |
| | | @Schema(description = "序列化的数据") |
| | | private String jsonValue; |
| | | |
| | | @Schema(description = "排序") |
| | | private Integer sort; |
| | | |
| | | |
| | | } |
对比新文件 |
| | |
| | | package com.iailab.module.model.mcs.sche.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @author Jay |
| | | */ |
| | | @Schema(description = "模型服务 - 调度建议创建/修改 Request VO") |
| | | @Data |
| | | public class StSuggestSnapshotRecordSaveReqVO { |
| | | |
| | | @Schema(description = "ID") |
| | | private String id; |
| | | |
| | | @Schema(description = "建议ID(只记录采纳)") |
| | | private String suggestId; |
| | | |
| | | @Schema(description = "操作记录ID(只记录采纳)") |
| | | private String operationId; |
| | | |
| | | @Schema(description = "模型ID") |
| | | private String modelId; |
| | | |
| | | @Schema(description = "数据类型(DATAPOINT,IND,PLAN,PREDICTITEM)") |
| | | private String dataType; |
| | | |
| | | @Schema(description = "数据编号") |
| | | private String dataNo; |
| | | |
| | | @Schema(description = "开始时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date startTime; |
| | | |
| | | @Schema(description = "结束时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date endTime; |
| | | |
| | | @Schema(description = "序列化的数据") |
| | | private String jsonValue; |
| | | |
| | | @Schema(description = "排序") |
| | | private Integer sort; |
| | | |
| | | |
| | | } |