2024年2月6日

摘要: 1.添加依赖 <!-- swagger3 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </depen 阅读全文
posted @ 2024-02-06 17:31 x欣x 阅读(34) 评论(0) 推荐(0) 编辑
 

2024年1月2日

摘要: 获取两个时间之间的时间差(时、分、秒) 示例: public static string GetTime(DateTime date1) { //date1 表示设置的时间 DateTime date2= DateTime.Now; //获取当前时间 TimeSpan Difference= dat 阅读全文
posted @ 2024-01-02 17:15 x欣x 阅读(219) 评论(0) 推荐(0) 编辑
 

2023年12月22日

摘要: <html> <input type="text" id = "url" > <input type="button" value="转换"> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/js-base64@3.6 阅读全文
posted @ 2023-12-22 09:17 x欣x 阅读(82) 评论(0) 推荐(0) 编辑
 

2023年12月20日

摘要: ////创建调度单元 //Task<IScheduler> tsk = StdSchedulerFactory.GetDefaultScheduler(); //IScheduler scheduler = tsk.Result; ////2.创建一个具体的作业即job (具体的job需要单独在一个 阅读全文
posted @ 2023-12-20 19:18 x欣x 阅读(188) 评论(0) 推荐(0) 编辑
 
摘要: using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windo 阅读全文
posted @ 2023-12-20 19:17 x欣x 阅读(20) 评论(0) 推荐(0) 编辑
 
摘要: 文件的上传和下载 控制器: /// <summary> /// 上传web文件 /// </summary> /// <param name="files"></param> /// <param name="wellName">井名</param> /// <param name="userNam 阅读全文
posted @ 2023-12-20 19:09 x欣x 阅读(47) 评论(0) 推荐(0) 编辑
 
摘要: 单一索引:只是用某一列数据作为索引,默认是index索引,这一列可以包含重复数据;如果某一列不存在重复数据最好设置成unique形式的索引,比index的索引速度更快,在text数据上要使用fulltext索引。联合索引:为了更进一步提高检索速度,每次检索都需要用多列同时进行时,就可以把这多列设为联 阅读全文
posted @ 2023-12-20 19:08 x欣x 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: 导入excel/// <summary> /// 导入设计地层单元数据-量纲设置 /// </summary> /// <param name="planId">方案ID</param> /// <param name="lists">录入基本信息</param> /// <param name=" 阅读全文
posted @ 2023-12-20 19:06 x欣x 阅读(1) 评论(0) 推荐(0) 编辑
 
摘要: json中删除一个字段string jsonBody = JsonConvert.SerializeObject(jblist, settings);JArray jsonArray = JArray.Parse(jsonBody); foreach (JObject item in jsonArr 阅读全文
posted @ 2023-12-20 19:01 x欣x 阅读(6) 评论(0) 推荐(0) 编辑