添加实体类

master
陈思豪 2024-08-22 20:55:13 +08:00
parent 6b634c4d61
commit 584a6276c9
7 changed files with 88 additions and 11 deletions

View File

@ -23,6 +23,8 @@
<artifactId>cloud-task-common</artifactId> <artifactId>cloud-task-common</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
</dependency> </dependency>
<!-- SpringCloud Alibaba Nacos --> <!-- SpringCloud Alibaba Nacos -->
<dependency> <dependency>
<groupId>com.alibaba.cloud</groupId> <groupId>com.alibaba.cloud</groupId>
@ -65,18 +67,12 @@
<artifactId>cloud-common-datascope</artifactId> <artifactId>cloud-common-datascope</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.muyu</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>cloud-common-log</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<version>3.6.3</version>
</dependency> </dependency>
<!-- 接口模块 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-api-doc</artifactId>
</dependency>
<!-- XllJob定时任务 --> <!-- XllJob定时任务 -->
<dependency> <dependency>

View File

@ -0,0 +1,31 @@
package com.muyu.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.domain.TaskInputInfo;
import com.muyu.service.TaskInputInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @PackageName:com.muyu.controller
* @ClassName:TaskInputController
* @Description:
* @author:
* @date: 2024/8/22 20:17
*/
@RestController
@RequestMapping("/taskInput")
public class TaskInputController {
@Autowired
private TaskInputInfoService taskInputInfoService;
// @PostMapping("/selectAll")
// public Result<List<TaskInputInfo>> selectAll(@RequestBody List<TaskInputInfo> taskInputInfos) {
// return Result.success(taskInputInfoService.);
// }
}

View File

@ -0,0 +1,9 @@
package com.muyu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.domain.TaskInputInfo;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface TaskInputInfoMapper extends BaseMapper<TaskInputInfo> {
}

View File

@ -0,0 +1,14 @@
package com.muyu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.domain.TaskInputInfo;
/**
* @PackageName:com.muyu.service
* @ClassName:TaskInputInfoService
* @Description:
* @author:
* @date: 2024/8/22 20:18
*/
public interface TaskInputInfoService extends IService<TaskInputInfo> {
}

View File

@ -0,0 +1,26 @@
package com.muyu.service.impl;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.domain.TaskInfo;
import com.muyu.domain.TaskInputInfo;
import com.muyu.mapper.TaskInputInfoMapper;
import com.muyu.mapper.TaskMapper;
import com.muyu.service.TaskInputInfoService;
import com.muyu.service.TaskService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;
/**
* @PackageName:com.muyu.service
* @ClassName:TaskInputInfoService
* @Description:
* @author:
* @date: 2024/8/22 20:18
*/
@Service
public class TaskInputInfoServiceImpl extends ServiceImpl<TaskInputInfoMapper, TaskInputInfo> implements TaskInputInfoService {
}

View File

@ -56,7 +56,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskInfo> implement
@Override @Override
public String deleteById(Integer id) { public String deleteById(Integer id) {
this.deleteById(id); TaskMapper taskMapper = this.baseMapper;
taskMapper.deleteById(id);
return "success"; return "success";
} }

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.116.184.54:8848 addr: 47.116.184.54:8848
user-name: nacos user-name: nacos
password: nacos password: nacos
namespace: text namespace: cloud-2112
# Spring # Spring
spring: spring: