摘要: GET方法获取用户列表接口中,若请求成功但得到的用户列表为空,后端也应返回为200,eg: return new Response<>("暂无用户信息",Response.SUCCESS_CODE,userList); //尽管此时的userList为空数组 查询日志列表或其他信息给前端显示时,应按 阅读全文
posted @ 2020-03-12 22:45 不是公子的小白 阅读(571) 评论(0) 推荐(0) 编辑
摘要: package com.xolo.core.request; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data public class CreateGroupMemberRequest { @ApiM 阅读全文
posted @ 2020-03-12 22:43 不是公子的小白 阅读(374) 评论(0) 推荐(0) 编辑
摘要: package com.xolo.core.response; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.List; @Data public class GroupEas 阅读全文
posted @ 2020-03-12 22:42 不是公子的小白 阅读(1420) 评论(0) 推荐(0) 编辑
摘要: @GetMapping("download/result")@ApiOperation("提供手机号绑定结果给浏览器下载") //Controller层代码 public Response<Boolean> downloadResultExcel(HttpServletRequest request 阅读全文
posted @ 2020-03-12 22:42 不是公子的小白 阅读(376) 评论(0) 推荐(0) 编辑
摘要: public Response<Boolean> uploadPhoneDocument(MultipartFile file,String token) throws IOException { String fileNameTemp = file.getOriginalFilename(); / 阅读全文
posted @ 2020-03-12 22:41 不是公子的小白 阅读(2354) 评论(0) 推荐(0) 编辑
摘要: Map<PhoneExcel,Integer> map = new HashMap<>(); for(PhoneExcel temp:phoneExcelList){ //得到重复项以及重复次数 Integer i = 1; //定义一个计数器,用来记录重复数据的个数 if(map.get(temp 阅读全文
posted @ 2020-03-12 22:38 不是公子的小白 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: 对List进行删除操作时应注意索引值的变化 对数据库内容有软删除操作时,进行查询操作需注意增加对"is_delete"软删除字段的判断 导出数据到Excel文件时应注意设置Date类型的格式 对数据库进行查询操作时应根据查询对象的数目选择用selectOne还是selectList commit时应 阅读全文
posted @ 2020-03-12 22:37 不是公子的小白 阅读(426) 评论(0) 推荐(0) 编辑
摘要: package com.xolo.core.entity; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com. 阅读全文
posted @ 2020-03-12 22:36 不是公子的小白 阅读(773) 评论(0) 推荐(0) 编辑
摘要: //调用远程服务器的shell脚本//ip:远程服务器的ip地址//username:远程服务器的登录用户名//port:远程服务器的登录端口号//cmd:登录之后的命令 public Response<Boolean> runRemoteShell(String ip,String usernam 阅读全文
posted @ 2020-03-12 22:36 不是公子的小白 阅读(977) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd def csv_to_xlsx_pd(): #csv文件名,假若csv文件中含有中文则需加上encoding='gb18030' csv = pd.read_csv('test.csv', encoding='gb18030', engine='python' 阅读全文
posted @ 2020-03-12 22:33 不是公子的小白 阅读(1596) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import os #设定文件路径 path='test/' fileList=os.listdir(path) n = 0 for i in fileList: # 设置旧文件名(就是路径+文件名) oldname = path + os.sep + 阅读全文
posted @ 2020-03-12 22:32 不是公子的小白 阅读(1843) 评论(0) 推荐(0) 编辑
摘要: GROUP_CONCAT()函数可以将分组后多条记录的同一字段的值,拼接成一条记录返回。但是在默认情况下,这个最大拼接长度是有限制的,导致结果不完整。 可以使用sql查询最大长度: show variables like 'group_concat_max_len'; 可以使用sql修改最大长度: 阅读全文
posted @ 2020-03-12 22:28 不是公子的小白 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Mysql数据库中通常使用Like关键字进行模糊查询,Like关键字通常用在where条件查询子句中并且配合%_使用 %表示任意个字符,_表示单个字符 '%a' //以a结尾的数据 'a%' //以a开头的数据 '%a%' //含有a的数据 '_a_' //三位且中间字母是a的 '_a' //两位且 阅读全文
posted @ 2020-03-12 22:27 不是公子的小白 阅读(957) 评论(0) 推荐(0) 编辑