From fcee772a2f55d0f84577cd344067a9ae5b883968 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 19 十一月 2024 09:09:22 +0800 Subject: [PATCH] 去掉表model_resultstr --- /dev/null | 44 -------------------------------------------- iailab-module-model/iailab-module-model-biz/db/mysql.sql | 7 ------- 2 files changed, 0 insertions(+), 51 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/db/mysql.sql b/iailab-module-model/iailab-module-model-biz/db/mysql.sql index 0f3fb07..f24ad84 100644 --- a/iailab-module-model/iailab-module-model-biz/db/mysql.sql +++ b/iailab-module-model/iailab-module-model-biz/db/mysql.sql @@ -87,13 +87,6 @@ INDEX idx_modelid (modelid) ) engine = innodb default character set utf8mb4 COMMENT = '预测模型输入参数表'; -create table t_mm_model_resultstr -( - id varchar(64) not null, - resultstr varchar(64), - primary key (id) -) engine = innodb default character set utf8mb4 COMMENT = '预测模型结果字符串表'; - create table t_mm_predict_item ( diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmModelResultstrController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmModelResultstrController.java deleted file mode 100644 index 9dcf9dd..0000000 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmModelResultstrController.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.iailab.module.model.mcs.pre.controller.admin; - -import com.iailab.framework.common.pojo.CommonResult; -import com.iailab.framework.common.pojo.PageResult; -import com.iailab.framework.common.util.object.BeanUtils; -import com.iailab.module.model.mcs.pre.entity.MmItemTypeEntity; -import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity; -import com.iailab.module.model.mcs.pre.service.MmModelResultstrService; -import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; -import com.iailab.module.model.mcs.pre.vo.MmModelResultstrRespVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; - -import java.util.List; -import java.util.Map; - -import static com.iailab.framework.common.pojo.CommonResult.success; - -/** - * @author PanZhibao - * @date 2021年05月07日 16:53 - */ -@RestController -@RequestMapping("/model/pre/model-resultstr") -public class MmModelResultstrController { - - @Autowired - private MmModelResultstrService mmModelResultstrService; - - /** - * 预测项结果列表 - */ - @GetMapping("/page") - public CommonResult<PageResult<MmModelResultstrRespVO>> page(@Validated MmModelResultstrPageReqVO reqVO) { - PageResult<MmModelResultstrEntity> page = mmModelResultstrService.page(reqVO); - - return success(BeanUtils.toBean(page, MmModelResultstrRespVO.class)); - } - - @GetMapping("/list") - public CommonResult<List<MmModelResultstrEntity>> list(@RequestParam Map<String, Object> params) { - List<MmModelResultstrEntity> list = mmModelResultstrService.list(params); - - return success(list); - } -} diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmModelResultstrDao.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmModelResultstrDao.java deleted file mode 100644 index 75cf6d9..0000000 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmModelResultstrDao.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.iailab.module.model.mcs.pre.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.pre.entity.MmModelResultstrEntity; -import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; -import org.apache.ibatis.annotations.Mapper; - -/** - * @author PanZhibao - * @date 2021年05月07日 16:38 - */ -@TenantDS -@Mapper -public interface MmModelResultstrDao extends BaseMapperX<MmModelResultstrEntity> { - - default PageResult<MmModelResultstrEntity> selectPage(MmModelResultstrPageReqVO reqVO) { - return selectPage(reqVO, new LambdaQueryWrapperX<MmModelResultstrEntity>() - .likeIfPresent(MmModelResultstrEntity::getResultstr, reqVO.getResultstr()) - .orderByDesc(MmModelResultstrEntity::getResultstr)); - } -} diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/entity/MmModelResultstrEntity.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/entity/MmModelResultstrEntity.java deleted file mode 100644 index b855e68..0000000 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/entity/MmModelResultstrEntity.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.iailab.module.model.mcs.pre.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; - -import java.io.Serializable; - -/** - * @author PanZhibao - * @date 2021年05月07日 16:36 - */ -@Data -@TableName("t_mm_model_resultstr") -public class MmModelResultstrEntity implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id",type = IdType.INPUT) - private String id; - - /** - * 结果 - */ - private String resultstr; -} diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmModelResultstrService.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmModelResultstrService.java deleted file mode 100644 index c5f3963..0000000 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmModelResultstrService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.iailab.module.model.mcs.pre.service; - -import com.iailab.framework.common.page.PageData; -import com.iailab.framework.common.pojo.PageResult; -import com.iailab.framework.common.service.BaseService; -import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity; -import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; - -import java.util.List; -import java.util.Map; - -/** - * @author PanZhibao - * @date 2021年05月07日 16:42 - */ -public interface MmModelResultstrService { - - PageResult<MmModelResultstrEntity> page(MmModelResultstrPageReqVO reqVO); - - MmModelResultstrEntity getInfo(String id); - - List<MmModelResultstrEntity> list(Map<String, Object> params); -} diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelResultstrServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelResultstrServiceImpl.java deleted file mode 100644 index 9315e71..0000000 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmModelResultstrServiceImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.iailab.module.model.mcs.pre.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.iailab.framework.common.pojo.PageResult; -import com.iailab.framework.common.service.impl.BaseServiceImpl; -import com.iailab.module.model.mcs.pre.dao.MmModelParamDao; -import com.iailab.module.model.mcs.pre.dao.MmModelResultstrDao; -import com.iailab.module.model.mcs.pre.entity.MmModelResultstrEntity; -import com.iailab.module.model.mcs.pre.service.MmModelResultstrService; -import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.Collections; -import java.util.List; -import java.util.Map; - -/** - * @author PanZhibao - * @date 2021年05月07日 16:43 - */ -@Service -public class MmModelResultstrServiceImpl extends ServiceImpl<MmModelResultstrDao, MmModelResultstrEntity> - implements MmModelResultstrService { - - @Autowired - private MmModelResultstrDao mmModelResultstrDao; - @Override - public PageResult<MmModelResultstrEntity> page(MmModelResultstrPageReqVO reqVO) { - return mmModelResultstrDao.selectPage(reqVO); - } - - @Override - public MmModelResultstrEntity getInfo(String id) { - return mmModelResultstrDao.selectById(id); - - } - - @Override - public List<MmModelResultstrEntity> list(Map<String, Object> params) { - return mmModelResultstrDao.selectList(new QueryWrapper<>()); - } -} -- Gitblit v1.9.3