Compare commits
No commits in common. 'master' and 'GYZ_branch' have entirely different histories.
master
...
GYZ_branch
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 35 KiB |
@ -0,0 +1 @@
|
||||
d1
|
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 113 KiB |
After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 76 KiB |
@ -1,135 +0,0 @@
|
||||
package com.example.demo.common;
|
||||
|
||||
|
||||
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.client.entity.UrlEncodedFormEntity;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.utils.URIBuilder;
|
||||
import org.apache.http.entity.ContentType;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class HttpClientUtil {
|
||||
|
||||
public static String doGet(String url, Map<String, String> param) {
|
||||
|
||||
// 创建Httpclient对象
|
||||
CloseableHttpClient httpclient = HttpClients.createDefault();
|
||||
|
||||
String resultString = "";
|
||||
CloseableHttpResponse response = null;
|
||||
try {
|
||||
// 创建uri
|
||||
URIBuilder builder = new URIBuilder(url);
|
||||
if (param != null) {
|
||||
for (String key : param.keySet()) {
|
||||
builder.addParameter(key, param.get(key));
|
||||
}
|
||||
}
|
||||
URI uri = builder.build();
|
||||
|
||||
// 创建http GET请求
|
||||
HttpGet httpGet = new HttpGet(uri);
|
||||
|
||||
// 执行请求
|
||||
response = httpclient.execute(httpGet);
|
||||
// 判断返回状态是否为200
|
||||
if (response.getStatusLine().getStatusCode() == 200) {
|
||||
resultString = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
if (response != null) {
|
||||
response.close();
|
||||
}
|
||||
httpclient.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return resultString;
|
||||
}
|
||||
|
||||
public static String doGet(String url) {
|
||||
return doGet(url, null);
|
||||
}
|
||||
|
||||
public static String doPost(String url, Map<String, String> param) {
|
||||
// 创建Httpclient对象
|
||||
CloseableHttpClient httpClient = HttpClients.createDefault();
|
||||
CloseableHttpResponse response = null;
|
||||
String resultString = "";
|
||||
try {
|
||||
// 创建Http Post请求
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
// 创建参数列表
|
||||
if (param != null) {
|
||||
List<NameValuePair> paramList = new ArrayList<>();
|
||||
for (String key : param.keySet()) {
|
||||
paramList.add(new BasicNameValuePair(key, param.get(key)));
|
||||
}
|
||||
// 模拟表单
|
||||
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList);
|
||||
httpPost.setEntity(entity);
|
||||
}
|
||||
// 执行http请求
|
||||
response = httpClient.execute(httpPost);
|
||||
resultString = EntityUtils.toString(response.getEntity(), "utf-8");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
response.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
return resultString;
|
||||
}
|
||||
|
||||
public static String doPost(String url) {
|
||||
return doPost(url, null);
|
||||
}
|
||||
|
||||
public static String doPostJson(String url, String json) {
|
||||
// 创建Httpclient对象
|
||||
CloseableHttpClient httpClient = HttpClients.createDefault();
|
||||
CloseableHttpResponse response = null;
|
||||
String resultString = "";
|
||||
try {
|
||||
// 创建Http Post请求
|
||||
HttpPost httpPost = new HttpPost(url);
|
||||
// 创建请求内容
|
||||
StringEntity entity = new StringEntity(json, ContentType.APPLICATION_JSON);
|
||||
httpPost.setEntity(entity);
|
||||
// 执行http请求
|
||||
response = httpClient.execute(httpPost);
|
||||
resultString = EntityUtils.toString(response.getEntity(), "utf-8");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
response.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
return resultString;
|
||||
}
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
package com.example.demo.common;
|
||||
|
||||
public class UploadFileTool {
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
package com.example.demo.common.util;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ResponseResult {
|
||||
/**
|
||||
* 请求状态
|
||||
*/
|
||||
private boolean success;
|
||||
/**
|
||||
* 返回提示信息
|
||||
*/
|
||||
private String msg;
|
||||
/**
|
||||
* 返回数据
|
||||
*/
|
||||
private Object data;
|
||||
|
||||
public ResponseResult(boolean success, String msg, Object data) {
|
||||
this.success = success;
|
||||
this.msg = msg;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ResponseResult(boolean code, String msg) {
|
||||
this.success = success;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public ResponseResult(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package com.example.demo.config;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
@Configuration
|
||||
public class MyMvcConfig implements WebMvcConfigurer {
|
||||
@Override
|
||||
public void addViewControllers(ViewControllerRegistry registry) {
|
||||
registry.addViewController("/").setViewName("index");
|
||||
registry.addViewController("/index.html").setViewName("index");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(new LoginHandleInterceptor()).addPathPatterns("/resource").excludePathPatterns("/index.html","dashboard","/","/login","/css/**","/js/**","/img/**");
|
||||
|
||||
}
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
|
||||
package com.example.demo.config;
|
||||
|
||||
import io.swagger.v3.oas.models.ExternalDocumentation;
|
||||
import io.swagger.v3.oas.models.OpenAPI;
|
||||
import io.swagger.v3.oas.models.info.Info;
|
||||
import io.swagger.v3.oas.models.info.License;
|
||||
import org.springdoc.core.GroupedOpenApi;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* SpringDoc API文档相关配置
|
||||
* Created by kirito on 2022/10/2.
|
||||
*/
|
||||
@Configuration
|
||||
public class SpringDocConfig {
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public GroupedOpenApi publicApi() {
|
||||
return GroupedOpenApi.builder()
|
||||
.group("") //分组
|
||||
.pathsToMatch("") //匹配url路径
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
package com.example.demo.config.config;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||
import com.example.demo.domain.Task;
|
||||
import org.apache.ibatis.reflection.MetaObject;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
@Component
|
||||
public class BaseEntityMetaObjectHandler implements MetaObjectHandler {
|
||||
|
||||
|
||||
@Override
|
||||
public void insertFill(MetaObject metaObject) {
|
||||
// 创建时间自动填充
|
||||
if (metaObject.hasSetter(Task.CREATE_TIME) && ObjectUtil.isNull(getFieldValByName(Task.CREATE_TIME, metaObject))) {
|
||||
this.strictInsertFill(metaObject, Task.CREATE_TIME, LocalDateTime.class, LocalDateTime.now());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFill(MetaObject metaObject) {
|
||||
//修改时间自动填充
|
||||
if (metaObject.hasSetter(Task.MODIFIED_TIME) && ObjectUtil.isNull(getFieldValByName(Task.MODIFIED_TIME, metaObject))) {
|
||||
this.strictUpdateFill(metaObject, Task.MODIFIED_TIME, LocalDateTime.class, LocalDateTime.now());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
package com.example.demo.config.config;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.DbType;
|
||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* MybatisPlus 配置类
|
||||
*
|
||||
* @author huang
|
||||
* @since 2022-03-18
|
||||
*/
|
||||
|
||||
@Configuration
|
||||
public class MybatisPlusConfig {
|
||||
/**
|
||||
* 分页插件
|
||||
*/
|
||||
@Bean
|
||||
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
||||
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
|
||||
return interceptor;
|
||||
}
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
package com.example.demo.controller;
|
||||
|
||||
import com.example.demo.common.util.FormatResponseUtil;
|
||||
import com.example.demo.common.util.ResponseResult;
|
||||
import com.example.demo.domain.Dragon;
|
||||
import com.example.demo.service.impl.DragonServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/dragon")
|
||||
public class DragonController {
|
||||
@Autowired
|
||||
DragonServiceImpl dragonService;
|
||||
|
||||
@GetMapping("/dragonList")
|
||||
public ResponseResult queryAll() {
|
||||
return FormatResponseUtil.formatResponse(dragonService.queryAll());
|
||||
}
|
||||
|
||||
@PostMapping("/addDragon")
|
||||
public ResponseResult addDragon(@RequestBody Dragon dragon) {
|
||||
//System.out.println("1111111111");
|
||||
return FormatResponseUtil.formatResponse(dragonService.save(dragon));
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")//这里执行的是物理删除
|
||||
public ResponseResult delTDragonById(Integer id) {
|
||||
return FormatResponseUtil.formatResponse(dragonService.delDragonById(id));
|
||||
}
|
||||
|
||||
@GetMapping("/one")
|
||||
public ResponseResult queryById(int id) {
|
||||
return FormatResponseUtil.formatResponse(dragonService.queryDragonById(id));
|
||||
}
|
||||
|
||||
@PostMapping("/dragonInfo")
|
||||
public ResponseResult updateArea(@RequestBody Dragon dragon) {
|
||||
return FormatResponseUtil.formatResponse(dragonService.updateById(dragon));
|
||||
}
|
||||
|
||||
}
|
@ -1,125 +0,0 @@
|
||||
package com.example.demo.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.example.demo.common.ZipUtils;
|
||||
import com.example.demo.domain.Dragonson;
|
||||
import com.example.demo.domain.User;
|
||||
import com.example.demo.mapper.DragonsonMapper;
|
||||
import com.example.demo.mapper.UserMapper;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.*;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
public class Webneed {
|
||||
@Autowired
|
||||
DragonsonMapper dragonsonMapper;
|
||||
|
||||
@GetMapping("/exceldownload/{id}")
|
||||
public void download(HttpServletResponse response, @PathVariable("id") String dragonid) throws IOException {
|
||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||
HSSFSheet sheet = workbook.createSheet("接龙情况");
|
||||
QueryWrapper<Dragonson> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.like("dragon_id", dragonid);
|
||||
|
||||
List<Dragonson> list = this.dragonsonMapper.selectList(queryWrapper);
|
||||
String filename = dragonid + ".xls";
|
||||
int rowNum = 1;
|
||||
//表头
|
||||
String[] headers = {"num", "dragonid", "studentnumber", "finishtime", "text"};
|
||||
HSSFRow row = sheet.createRow(0);
|
||||
for (int i = 0; i < headers.length; i++) {
|
||||
HSSFCell cell = row.createCell(i);
|
||||
HSSFRichTextString text = new HSSFRichTextString(headers[i]);
|
||||
cell.setCellValue(text);
|
||||
}
|
||||
//在表中存放查询到的数据放入对应的列
|
||||
for (Dragonson dragonson : list) {
|
||||
HSSFRow row1 = sheet.createRow(rowNum);
|
||||
row1.createCell(0).setCellValue(dragonson.getId());
|
||||
row1.createCell(1).setCellValue(dragonson.getDragonid());
|
||||
row1.createCell(2).setCellValue(dragonson.getStudentnumber());
|
||||
row1.createCell(3).setCellValue(dragonson.getFinishtime());
|
||||
row1.createCell(4).setCellValue(dragonson.getText());
|
||||
rowNum++;
|
||||
}
|
||||
response.setContentType("application/octet-stream");
|
||||
response.setHeader("Content-disposition", "attachment;filename=" + filename);
|
||||
response.flushBuffer();
|
||||
workbook.write(response.getOutputStream());
|
||||
}
|
||||
|
||||
@RequestMapping("/daochu")
|
||||
|
||||
public String daochu() {
|
||||
return "daochu";
|
||||
}
|
||||
|
||||
@RequestMapping("/filedownload/{id}")
|
||||
public String downloadfile(@PathVariable("id") String taskid,
|
||||
HttpServletResponse response) throws UnsupportedEncodingException, FileNotFoundException {
|
||||
FileOutputStream fos1 = new FileOutputStream(new File( taskid+".zip"));
|
||||
ZipUtils.toZip("E:\\git\\project\\src\\demo\\target\\"+taskid, fos1, true);
|
||||
File scFileDir = new File("./");
|
||||
String fileName = taskid + ".zip";
|
||||
File fileDir = new File(scFileDir, fileName);
|
||||
System.out.println(fileDir.getName());
|
||||
if (fileDir.exists()) {
|
||||
// 配置文件下载
|
||||
response.setHeader("content-type", "application/octet-stream");
|
||||
response.setContentType("application/octet-stream");
|
||||
// 下载文件能正常显示中文
|
||||
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, "UTF-8"));
|
||||
// 实现文件下载
|
||||
byte[] buffer = new byte[1024];
|
||||
FileInputStream fis = null;
|
||||
BufferedInputStream bis = null;
|
||||
try {
|
||||
fis = new FileInputStream(fileDir);
|
||||
bis = new BufferedInputStream(fis);
|
||||
OutputStream os = response.getOutputStream();
|
||||
int i = bis.read(buffer);
|
||||
while (i != -1) {
|
||||
os.write(buffer, 0, i);
|
||||
i = bis.read(buffer);
|
||||
}
|
||||
System.out.println("Download successfully!");
|
||||
} catch (Exception e) {
|
||||
System.out.println("Download failed!");
|
||||
} finally {
|
||||
if (bis != null) {
|
||||
try {
|
||||
bis.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if (fis != null) {
|
||||
try {
|
||||
fis.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
package com.example.demo.controller;
|
||||
import com.example.demo.domain.Task;
|
||||
import com.example.demo.service.impl.TaskServiceImpl;
|
||||
import com.example.demo.common.util.FormatResponseUtil;
|
||||
import com.example.demo.common.util.ResponseResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@Tag(name = "WXL")
|
||||
@RequestMapping("/task")
|
||||
|
||||
public class taskController {
|
||||
|
||||
@Autowired
|
||||
public TaskServiceImpl taskService;
|
||||
|
||||
@Operation(summary = "获取任务信息")
|
||||
@GetMapping("/taskList")
|
||||
public ResponseResult queryAll() {
|
||||
return FormatResponseUtil.formatResponse(taskService.queryAll());
|
||||
}
|
||||
|
||||
@PostMapping("/addTask")
|
||||
public ResponseResult addTask(@RequestBody Task task) {
|
||||
return FormatResponseUtil.formatResponse(taskService.save(task));
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")//这里执行的是物理删除
|
||||
public ResponseResult delTaskById(Integer id){
|
||||
return FormatResponseUtil.formatResponse(taskService.delTaskById(id));
|
||||
}
|
||||
|
||||
@GetMapping("/one")
|
||||
public ResponseResult queryById(int id){
|
||||
return FormatResponseUtil.formatResponse(taskService.queryTaskById(id));
|
||||
}
|
||||
|
||||
@PostMapping("/taskInfo")
|
||||
public ResponseResult updateArea(@RequestBody Task task){
|
||||
return FormatResponseUtil.formatResponse(taskService.updateById(task));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,107 +0,0 @@
|
||||
package com.example.demo.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class Dragon {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public static final String CREATE_TIME = "createTime";
|
||||
public static final String MODIFIED_TIME = "lastEditTime";
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
/*
|
||||
* 任务内容
|
||||
* */
|
||||
private String property;
|
||||
|
||||
/**
|
||||
* 创建时间戳
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
private String deadtime;
|
||||
private Integer status;
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDeadtime() {
|
||||
return deadtime;
|
||||
}
|
||||
|
||||
public void setDeadtime(String deadtime) {
|
||||
this.deadtime = deadtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 最后修改时间戳
|
||||
*/
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private LocalDateTime lastTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getProperty() {
|
||||
return property;
|
||||
}
|
||||
|
||||
public void setProperty(String property) {
|
||||
this.property = property;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(LocalDateTime createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getLastEditTime() {
|
||||
return lastTime;
|
||||
}
|
||||
|
||||
public void setLastEditTime(LocalDateTime lastEditTime) {
|
||||
this.lastTime = lastEditTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Dragon{" +
|
||||
"id=" + id +
|
||||
", name=" + name +
|
||||
", priority=" + property +
|
||||
", createTime=" + createTime +
|
||||
", lastEditTime=" + lastTime +
|
||||
"}";
|
||||
}
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
package com.example.demo.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("dragonson")
|
||||
public class Dragonson extends Wrapper<Dragonson> {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId("id")
|
||||
private int id;
|
||||
/**
|
||||
* dragon_id
|
||||
*/
|
||||
@TableField("dragon_id")
|
||||
private int dragonid;
|
||||
/**
|
||||
* studentnumber
|
||||
*/
|
||||
@TableField("studentnumber")
|
||||
private String studentnumber;
|
||||
/**
|
||||
* finishtime
|
||||
*/
|
||||
@TableField("finishtime")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date finishtime;
|
||||
/**
|
||||
* text
|
||||
*/
|
||||
@TableField("text")
|
||||
private String text;
|
||||
|
||||
@Override
|
||||
public Dragonson getEntity() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MergeSegments getExpression() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSqlSegment() {
|
||||
return null;
|
||||
}
|
||||
}
|
@ -1,118 +0,0 @@
|
||||
package com.example.demo.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@TableName("user")
|
||||
public class User extends Wrapper<User> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* open_id
|
||||
*/
|
||||
|
||||
@TableId(value = "open_id", type = IdType.INPUT)
|
||||
private String openId;
|
||||
/**
|
||||
* skey
|
||||
*/
|
||||
private String skey;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 最后登录时间
|
||||
*/
|
||||
@TableField("last_visit_time")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date lastVisitTime;
|
||||
/**
|
||||
* session_key
|
||||
*/
|
||||
@TableField("session_key")
|
||||
private String sessionKey;
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
@TableField("city")
|
||||
private String city;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
@TableField("province")
|
||||
private String province;
|
||||
/**
|
||||
* 国
|
||||
*/
|
||||
@TableField("country")
|
||||
private String country;
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
@TableField("avatar_url")
|
||||
private String avatarUrl;
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@TableField("gender")
|
||||
private Integer gender;
|
||||
/**
|
||||
* 网名
|
||||
*/
|
||||
@TableField("nick_name")
|
||||
private String nickName;
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@TableField("name")
|
||||
private String name;
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
@TableField("Student_Number")
|
||||
private String StudentNumber;
|
||||
/**
|
||||
* 权限
|
||||
*/
|
||||
@TableField("power")
|
||||
private int power;
|
||||
|
||||
@Override
|
||||
public User getEntity() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MergeSegments getExpression() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCustomSqlSegment() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSqlSegment() {
|
||||
return null;
|
||||
}
|
||||
}
|