Idea Spring Boot 主控台打印跟踪SQL 在文件mybatis-config.xml 添加下面配置即可跟踪SQL <!-- 打印查询语句 --> <setting name="logImpl" value="STDOUT_LOGGING" />
C# 计算农历日期方法 笔记public static class ChinaDate{ private static ChineseLunisolarCalendar china = new ChineseLunisolarCalendar(); private static Hashtable gHoliday = new Hashtable(); private static Hashtable nHoliday = new Hashtable(); private static str...
微信小程序避免重复保存数据 干掉微信小程序-避免多次点击,重复触发事件干掉微信小程序-避免多次点击,重复触发事件#问题描述#开发小程序时,或者说是在做前端的时候,我们经常会遇到当用户点击某个按钮时,没有得到反馈的话,大部分用户都会接着点击,这就会造成前端接收到多次请求的响应。这主要是因为后端api请求需要时间,导致用户以为没点击到或者是页面假死,在上次请求还没处理完,就再次点击按钮。所以,接下来说说,在微信小程序中避免多次点击,重复触发事件的两种思路。解决方法一:#使用 wx.showLoading 在请求
C# .net 获取 本周、本月、本季度、本年 的开始时间或结束时间 using System;using System.Collections.Generic;using System.Text;namespace System{ public static class DateTimeExpansion { #region 获取 本周、本月、本季度、本年 的开始时间或结束时间 /// <summary> /// 获取 本周、本月、本季度、本年 的开始时间 /// <.
vs2019 Cannot find an instance of the Microsoft .VisualStudio.Shell.Interop.IVsReferenceManagerservi vs2019添加引用提示“找不到 Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager 服务的实例不知道是不是安装时候的问题?解决方法:开始菜单-打开 Developer Command Prompt for VS 2019 。定位到vs2017安装目录下的 /Common7/IDE/PublicAssemblies这个我是路径可以参考:D:\Program Files (x86)\Microsoft Visual Studio\2
WebStorm中批量修复红波澜线 添加【"lint-fix":"eslint --fix --ext .js,.vue src"】,运行npm run lint-fix便可以格式化所有的代码 "scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "start": "npm run dev", "unit": "jest --config test/unit..
C#怎么调用金蝶k3登陆界面 在vb环境下的K3登录界面,资料非常大.也很容易找到.但是相对而言.net的就少了不少.本人曾为金蝶k3的二次开发工程师.最近闲来无事,将以前的成果分享出来.方案一:调用类库.该方法的特点是需要引用com组件,并且添加到项目中.具体代码如下:k3Login._ClsLogin loginer = new k3Login.ClsLoginClass( );if(loginer.CheckLogin( ))MessageBox.Show("OK");else...
ESLint fix自动修复所有格式问题 ESLint fix自动修复所有格式问题"lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/ test/unit test/e2e/specs",npm run lint-fix转载:https://www.cnblogs.com/yeminglong/p/12722985.html
C# 快速比较获取两个datatable差异的数据 DataTable dtUser = new DataTable(); dtUser.Columns.Add("username", System.Type.GetType("System.String")); dtUser.Columns.Add("age", System.Type.GetType("System.String")); DataTable dtDND = new DataTable(); ...
驱动下获取dll的函数地址 /************************************************************************获取baiDLL中的函数地址lpFunctionName函数名称pDllNameDLL文件名称************************************************************************//*******************************...
K3cloud字段说明表 select a.FID,b.FNAME from T_MDL_ELEMENTTYPE a,T_MDL_ELEMENTTYPE_L b where a.FID=b.FID and b.FLOCALEID=2052
Office 每次打开 Excel的同时会打开一个新的sheet 1 的excel 文件 https://blog.csdn.net/sinat_34104446/article/details/80210424
c# dev gridControl 实现列宽度自适应 gridControl1.DataSource = dt; gridView1.PopulateColumns(); gridView1.OptionsView.ColumnAutoWidth = false; this.gridView1.BestFitColumns(); for (int I = 0; I < gridView1.Columns.Count; I++) ...
SQL修改XML 替换数据 declare @xml xmldeclare @Str varchar(max)select @xml= FDefinitionXml from t_wf_defversion where FProcDefId='5bd83a0b5ca689' and FVERSION='0083'set @Str=REPLACE(CONVERT(varchar(max),@xml),'<Logic...
C# 由INSERT INTO语句转成对象类 string str = @"INSERT INTO SEOrderEntry (FInterID,FEntryID,FBrNo,FMapNumber,FMapName,FItemID,FBarCode,FAuxPropID,FQty,FUnitID, Fauxqty,FStockQtyOnlyForShow,FEntry...
C# 无key值的json数组解析 json原型:{"confirmation_ids": ["12344","abdfd"]}JObject JObject=JObject.Parse(result)jarray = (JArray)JObject["confirmation_ids"]; foreach (var item in jarray) ...
C# 增加无key 数组json JObject JObject = new JObject(); JArray jarray = new JArray(); jarray.Add("0abb79e84e034754b9b50c5fd953e2d1"); jarray.Add("0abb79e84e034754b9b50c5fd953e...
C# 加密算法HmacSHA256 //加密算法HmacSHA256 private static string HmacSHA256(string secret, string signKey) { string signRet = string.Empty; using (HMACSHA256 mac = new HMACSHA2...
C# HttpRequest基础连接已经关闭: 接收时发生意外错误 stringrust="123344";Dictionary<string, string> dic = new Dictionary<string, string>(); dic.Add("grant_type", "client_credentials"); dic.Add("scope", "write");...
金蝶K3cloud查询单据接口 string FBillNO = "CGRK00022"; JObject jsonQuer = new JObject(); jsonQuer.Add("FormId", "STK_InStock"); jsonQuer.Add("FieldKeys", "FID,FMaterialId,FMater...
K3cloud上下单据关联 FENTRYID 下游单据分录内码 FLINKID 连接表内码 FSBILLID 原单FID FSID原单FEntryID高级金蝶K3cloud二次开发QQ群:188617330
C# 读取Excel方法 using System;using System.Collections.Generic;using System.Data;using System.Diagnostics;using System.Linq;using System.Text;using System.Threading;namespace 怡心爬虫工具{ public class ExcelOpt...
C# POST方式下载Excel或文件 HttpWebRequest request = null; string url = "http://lotus.chinab2bi.com/lotus/sellCsgnsaQry/exportAllDetail.hlt"; //登录页面 request = (HttpWebRequest)WebRequest.Create(url);...
C#语言的Image和byte数组的互相转换 /// <summary> /// 字节数组转换为图片 /// </summary> /// <param name="buffer">字节数组</param> /// <returns>图片</returns> public Image Byte...
C# POST 含异常处理 using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Text;namespace Bst.PulgIn{ public static class PostHelp { /// <...
C# Get方法 string strURL = "https://www.sojson.com/open/api/weather/json.shtml?city=北京"; System.Net.HttpWebRequest request; // 创建一个HTTP请求 request = (System.Net.HttpW...
nginx+flup+win7 64位+python 最近搞python web的部署,参考了很多文献,搞了2、3天时间,终于把nginx+flup+win7 64位+python搭建好了貌似有些模块要python3.6才有的,反正我2.7 和3.6都安装了,我就复制版主的过来明细修改下,更加清晰些,符合小白第一次部署Windows下nginx配置python服务器Windows下nginx配置python服务器安装python安装flup包创建Py...
汇编大写转换并显示在屏幕 assume cs:codeseg,ss:stacksg,ds:datasgstacksg segment dw 0,0,0,0,0,0,0,0stacksg endsdatasg segment db 'ibm ' db 'dec ' db 'dos ' db 'vax ...
ASP.NET 4.0尚未在 Web 服务器上注册 解决方法 使用Visual studio 2012创建web应用程序时出现如下提示ASP.NET 4.0尚未在 Web 服务器上注册。为了使网站正确运行,可能需要手动将 Web 服务器配置为使用 ASP.NET 4.0,按 F1 可了解更多详细信息.查阅百度后知道出现这个错误是因为IIS 7 采用了更安全的Web.Config管理机制,默认情况下会锁住配置项不允许更改。解决方法:首先设置IIS应用程序池 n...
C#高效插入sql数据库数据 创建表:CREATE TABLE Product(Id UNIQUEIDENTIFIER PRIMARY KEY,NAME VARCHAR(50) NOT NULL,Price DECIMAL(18,2) NOT NULL)c#代码: void InsertTwo() { Console.WriteLine("使用Bu
C#高效插入sql数据库数据 创建表:CREATE TABLE Product(Id UNIQUEIDENTIFIER PRIMARY KEY,NAME VARCHAR(50) NOT NULL,Price DECIMAL(18,2) NOT NULL)代码: void InsertTwo() { Console.WriteLine("使用Bulk
C#构造表头和表体json JObject obj = new JObject(); obj.Add("Name", "Ray"); obj.Add("Gender", "Male");//表体 JObject contact = new JObject();//再构造一个里面的json对象 contact.Add("Ph
C# 分类汇总数据 //这里dt2改下自己的datetable var groupBy = from q in dt2.AsEnumerable() group q by new { t1 = q.Field("FBILLTYPEID"), t2 = q.Field("FDate") } into g//分那列数据
C# WebAPI 传递可选参数及指定访问那个接口的方法。 在WebApiConfig.cs 文件指定访问的url及参数(专业的就是指定路由,用url比较通俗易懂点) public static void Register(HttpConfiguration config) { //config.MapHttpAttributeRoutes(); config.Routes.MapH
C#WebAPI返回json去掉双引号前面的反斜杠 string str="{\"msgType\":1001,\"msgstring\":\"信息\"}";//这里是你的json带有反斜杠的HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "applicat
asp通过json调用webservice接口,并获取返回的xml数据及解析 本事例是asp调用webservice接口,并获取返回的xml数据及解析!Response.Write "测试时间:"&now()&""dim url,SOAPAction,HOSTurl="http://192.168.17.71/KDWebservice/KDService.asmx?op=CreateCust"//webserbice地址 =号后面
金蝶k3cloud二次开发,调用动态表单调用回调函数刷新页面 金蝶k3cloud二次开发 this.View.ShowForm(showParam,r=>this .Onclos(r) ); private void Onclos(FormResult result) { this.View.ShowMessage("test"); this.View.Refresh();
k3cloud二次开例子 开发工具• Visual studio 2012• IE插件Silverlight5• SQLServer 2008R2 或 Oracle 11G R2• 跟踪工具(HttpWatchPro6.0)• 插件Building路径(K3Cloud\K3CloudServer\Bin\)注意事项:使用SQL