2024年7月26日
摘要: 注意:该方法只能对抽象类使用,比如:public abstract class Xxx<T>,否则会报错。 代码如下: // 获取当前new的对象的泛型的父类类型 ParameterizedType pt = (ParameterizedType) this.getClass().getGeneri 阅读全文
posted @ 2024-07-26 14:00 花开浪漫拾 阅读(1) 评论(0) 推荐(0) 编辑
  2024年7月16日
摘要: 代码: select *, group_concat( round_index order by field(round_index, 3,4,1,2)) from xxx 阅读全文
posted @ 2024-07-16 11:29 花开浪漫拾 阅读(4) 评论(0) 推荐(1) 编辑
摘要: 解决方式:在接口中定义方法传入参数、返回参数为对一个的类型,mapstruct的实现类会自动调用该方法。 代码: @Mapper(builder = @Builder(disableBuilder = true)) public interface StlmtCheckingResultConver 阅读全文
posted @ 2024-07-16 10:39 花开浪漫拾 阅读(5) 评论(0) 推荐(1) 编辑
  2024年6月14日
摘要: 期望效果:在xml里面写sql时自动追加deleted逻辑删除字段。比如SELECT count(0) FROM aaa。 执行时最终为 SELECT count(0) FROM aaa WHERE deleted = '0' 实现代码如下: @Beanpublic TenantLineInnerI 阅读全文
posted @ 2024-06-14 15:48 花开浪漫拾 阅读(5) 评论(0) 推荐(0) 编辑
  2024年6月12日
摘要: 代码: <!DOCTYPE html> <html> <head> <style> .reversed-text { transform: rotateY(180deg); } </style> </head> <body> <p class="reversed-text">这是需要反转的文本。</ 阅读全文
posted @ 2024-06-12 14:02 花开浪漫拾 阅读(9) 评论(0) 推荐(0) 编辑
  2024年5月15日
摘要: 代码如下: public static <T,K> List<T> listToTree(List<T> list,Predicate<T> isTop,Function<? super T, ? extends K> getId , Function<? super T, ? extends K> 阅读全文
posted @ 2024-05-15 16:28 花开浪漫拾 阅读(90) 评论(0) 推荐(2) 编辑
  2024年5月9日
摘要: // ==UserScript== // @name url自动追加端口 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You 阅读全文
posted @ 2024-05-09 18:12 花开浪漫拾 阅读(16) 评论(0) 推荐(0) 编辑
  2024年1月10日
摘要: linux根据进程关键搜索字批量结束进程(替换xxxxxx为自己想要查的关键字进程) ps -ef|grep xxxxxx|grep -v grep|awk '{print "kill -9 " $2}' |sh 阅读全文
posted @ 2024-01-10 09:02 花开浪漫拾 阅读(29) 评论(0) 推荐(0) 编辑
  2023年11月15日
摘要: #使用Git bash here执行: #查看git每个人当日提交代码行数(修改“--after”日期为今天 ) git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author=" 阅读全文
posted @ 2023-11-15 16:52 花开浪漫拾 阅读(240) 评论(0) 推荐(4) 编辑
  2023年11月13日
摘要: #为了解决本地打包上传到服务器时耗时过久,直接用服务器自动更新代码并打包 #使用 sh linux-dabao-auto.sh 即可 linux-dabao-1-git-pull.sh #更新代码cd /home/app/szzy/yjdaxt/git/sz-yjda/home/app/szzy/y 阅读全文
posted @ 2023-11-13 17:51 花开浪漫拾 阅读(75) 评论(0) 推荐(0) 编辑