上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: -- sql server分组排序取出每组顺序第一条 select * from ( select *,row_number() over(partition by bloodbag_id order by operation_date desc) rn from tt_blood_log )t w 阅读全文
posted @ 2023-09-26 15:32 一隅桥畔 阅读(470) 评论(0) 推荐(0)
摘要: -- 分组排序取出每组顺序第一条 select substring_index(group_concat(id order by create_time desc),',',1) from tb_order group by user_id 阅读全文
posted @ 2023-09-23 14:38 一隅桥畔 阅读(183) 评论(0) 推荐(0)
摘要: 1、依赖sun.misc.BASE64Decoder.jar /** * Base64编码 * @param data 要加密的字符数组 * @return String 加密后的16进制字符串 */ public static String encode(byte[] data){ return 阅读全文
posted @ 2023-08-24 09:20 一隅桥畔 阅读(133) 评论(0) 推荐(0)
摘要: /** * request中参数转换成map */ public static Map<String, String> requestParamsToMap(HttpServletRequest request) { Map<String, String> reqMap = new HashMap< 阅读全文
posted @ 2023-08-23 23:03 一隅桥畔 阅读(86) 评论(0) 推荐(0)
摘要: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <!--打包时将lib里面 阅读全文
posted @ 2023-08-01 18:37 一隅桥畔 阅读(64) 评论(0) 推荐(0)
摘要: select dateadd(minute,-10,getdate());-- 减10分钟 select dateadd(hour,-10,getdate());-- 减10小时 select dateadd(day,-10,getdate());-- 减10天 阅读全文
posted @ 2023-07-07 14:56 一隅桥畔 阅读(241) 评论(0) 推荐(0)
摘要: alter table t_user add constraint UK_user_code -- 指定约束的名称 unique (user_code) -- 指定唯一键的列名 go 阅读全文
posted @ 2023-07-05 23:33 一隅桥畔 阅读(142) 评论(0) 推荐(0)
摘要: package com.lbdz.bsf.util; import net.sf.json.JSONObject; import net.sf.json.JSONSerializer; import net.sf.json.xml.XMLSerializer; /** * xml和json转换 */ 阅读全文
posted @ 2023-06-16 17:36 一隅桥畔 阅读(612) 评论(0) 推荐(0)
摘要: //获取出生日期 function getBirthday(cardNo) { var birthday = cardNo.substring(6, 10) + "-" + cardNo.substring(10, 12) + "-" + cardNo.substring(12, 14); retu 阅读全文
posted @ 2023-04-28 15:35 一隅桥畔 阅读(101) 评论(0) 推荐(0)
摘要: //校验手机号 function checkPhone(phone) { var flag = true; //手机号 var reg = /^1[3|4|5|7|8][0-9]\d{8}$/; //电话 var reg0 = /^(0[1-9]\d{1,2}-)\d{6,7}$/; if(reg. 阅读全文
posted @ 2023-04-28 15:27 一隅桥畔 阅读(2008) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页