摘要: C# 操作DataTable数据量达到6000条左右的时候会出现性能问题。 调试模式会直接报错:内存溢出。 编译的运行程序则会直接退出。 只能减少数据量。 阅读全文
posted @ 2023-02-24 17:04 liskov_design 阅读(237) 评论(1) 推荐(0) 编辑
摘要: nohup dotnet /www/wwwroot/xxx.dll --urls "http://*:6001;http://*:6002" &此时候的6001和6002端口对应的程序的内存和static变量都是存在同一个堆栈里面,可以做缓存。 nohup dotnet /www/wwwroot/x 阅读全文
posted @ 2023-02-20 14:19 liskov_design 阅读(45) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-02-15 17:44 liskov_design 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 代码: StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("{0} sssss{", "aaaa"); stringBuilder.AppendLine("}"); 报错: 解决办法: Stri 阅读全文
posted @ 2023-02-15 17:41 liskov_design 阅读(367) 评论(0) 推荐(0) 编辑
摘要: /// <summary>/// 获取该时间所在月份的最后一天的string(年月日)/// </summary>/// <param name="time"></param>/// <returns></returns>public static string get_last_day_at_pa 阅读全文
posted @ 2023-02-09 10:24 liskov_design 阅读(147) 评论(0) 推荐(0) 编辑
摘要: truncate table table_name_xxx 执行速度非常快,只会产生极少的日志log 阅读全文
posted @ 2023-02-09 10:21 liskov_design 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 代码:prettyFormat function prettyFormat(str) { try { // 设置缩进为2个空格 str = JSON.stringify(JSON.parse(str), null, 2); str = str .replace(/&/g, '&') .replace 阅读全文
posted @ 2023-02-06 14:54 liskov_design 阅读(51) 评论(0) 推荐(0) 编辑
摘要: private static HashSet<string> hashSetLocationIds = new HashSet<string>(); if (hashSetLocationIds.Contains(id)) return; if (hashSetLocationIds.Count > 阅读全文
posted @ 2023-01-18 15:15 liskov_design 阅读(15) 评论(0) 推荐(0) 编辑
摘要: //需要注册Instance Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); var data = UrlDecode(response.RawBytes, Encoding.GetEncoding("gbk")); 阅读全文
posted @ 2023-01-17 16:40 liskov_design 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 废话不说。直接上代码。 private static HashSet<string> hashSetLocationIds = new HashSet<string>(); string id = string.Format("{0}{1}{2}{3}{4}", 1,2,3,4).md5(); if 阅读全文
posted @ 2023-01-17 15:19 liskov_design 阅读(25) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-01-17 11:13 liskov_design 阅读(0) 评论(0) 推荐(0) 编辑
摘要: -- 诺e票电子发票开放平台,上海航信模拟测试发票平台的开票方法封装JAVA。 -- 封装之后的目录长这样。 公用的结构目录: │ InvoiceElectronicsUtil.java 公用类入库 │ ├─config 配置package │ Constant.java │ ConstantInv 阅读全文
posted @ 2023-01-16 14:56 liskov_design 阅读(1428) 评论(1) 推荐(0) 编辑
摘要: [ { "stationuuid": "9616a843-0601-11e8-ae97-52543be04c82", "name": "NHKFM", "url": "https://nhkradioakfm-i.akamaihd.net/hls/live/512290/1-fm/1-fm-01.m 阅读全文
posted @ 2023-01-16 14:19 liskov_design 阅读(170) 评论(0) 推荐(0) 编辑
摘要: echo 取日期、时间变量值set yy=%date:~0,4% set mm=%date:~5,2% set dd=%date:~8,2% if /i %time:~0,2% lss 10 set hh=0%time:~1,1% if /i %time:~0,2% geq 10 set hh=%t 阅读全文
posted @ 2023-01-16 11:11 liskov_design 阅读(31) 评论(0) 推荐(0) 编辑
摘要: //create_time 降序 NSComparisonResult sort_desc(NSDictionary *firstDict, NSDictionary *secondDict, void *context) { NSDateFormatter *dateFormatter = [[N 阅读全文
posted @ 2023-01-16 10:47 liskov_design 阅读(134) 评论(0) 推荐(0) 编辑
摘要: def op_ports(citykey): try: citykey = str(citykey).replace(" ", "%20") xurl = "http://api.maersk.com/locations/?brand=maeu&cityName=" + citykey + "&ty 阅读全文
posted @ 2023-01-13 18:06 liskov_design 阅读(129) 评论(0) 推荐(0) 编辑
摘要: MSK电商舱位的快速抢舱位的思路和办法 首先马士基有Freight的API系统,这个系统API的运价接口需要公司销售或者管理层的人去和马士基的本地销售沟通,前提条件是一年的货量需要达到10W TEU,至于什么是TEU自行百度。 沟通成功后msk会发送邮件过来并且附带Slack的相关账号信息。 通过S 阅读全文
posted @ 2023-01-13 17:59 liskov_design 阅读(458) 评论(3) 推荐(1) 编辑
摘要: { "maerskCorrelationId": "a016bc0916272fe9", "offers": [ { "productOffer": null, "routeScheduleWithPrices": null, "contracts": null, "offerFilteredRea 阅读全文
posted @ 2023-01-13 17:05 liskov_design 阅读(654) 评论(0) 推荐(0) 编辑
摘要: /** * @Description: * sql查询结果直接转为List<T>结果 * * 该sql语句和Bean里面的属性是区分大小写的,所以尽量保持一致【要么大写】,【要么小写】 * @author: xxxxxx * @date 2013/4/27 17:53 */ @Override pu 阅读全文
posted @ 2023-01-13 16:58 liskov_design 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 金蝶财务销账核销凭证模板的数据库设计 sql1: create table `base_huilv` ( `id` varchar(36) PRIMARY KEY comment 'id' , `直接汇率` varchar(200) comment '直接汇率' , `间接汇率` varchar(2 阅读全文
posted @ 2023-01-13 16:31 liskov_design 阅读(65) 评论(0) 推荐(0) 编辑