爷的眼睛闪亮
insideDotNet En_summerGarden
摘要: 案例: select * from f_xxx fb order by (case when fb.status = 0 then 1 when fb.status = 3 then 2 when fb.status = 1 then 3 when fb.status = 2 then 4 else 阅读全文
posted @ 2023-03-16 10:59 爷的眼睛闪亮 阅读(62) 评论(0) 推荐(0) 编辑
摘要: #####查询重复数据 SELECT t.* FROM like_user t, ( SELECT user_id, COUNT(user_id), dynamc_id, COUNT(dynamc_id) FROM like_user GROUP BY user_id, dynamc_id HAVI 阅读全文
posted @ 2022-12-21 11:58 爷的眼睛闪亮 阅读(45) 评论(0) 推荐(0) 编辑
摘要: long start = System.currentTimeMillis(); //需要匹配的key String patternKey = "pay:*"; ScanOptions options = ScanOptions.scanOptions() .count(10000) //这里指定每 阅读全文
posted @ 2022-12-16 11:37 爷的眼睛闪亮 阅读(2034) 评论(0) 推荐(0) 编辑
摘要: @Component public class RestTemplateUtils { @Autowired private RestTemplate restTemplate; private static RestTemplateUtils rtu; @PostConstruct public 阅读全文
posted @ 2022-11-08 16:46 爷的眼睛闪亮 阅读(38) 评论(0) 推荐(0) 编辑
摘要: BlockingQueue<Runnable> workQueue = new ArrayBlockingQueue<>(10); ThreadPoolExecutor threadPool = new ThreadPoolExecutor(2, 3, 3, TimeUnit.SECONDS, wo 阅读全文
posted @ 2022-07-12 15:55 爷的眼睛闪亮 阅读(58) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date=new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime(d 阅读全文
posted @ 2022-07-11 15:57 爷的眼睛闪亮 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: public static <K, V> List<Map<K, V>> castListMap(Object obj, Class<K> kCalzz, Class<V> vCalzz) { List<Map<K, V>> result = new ArrayList<>(); if (obj i 阅读全文
posted @ 2022-06-17 15:45 爷的眼睛闪亮 阅读(176) 评论(0) 推荐(0) 编辑
摘要: import lombok.extern.slf4j.Slf4j; import java.lang.reflect.Field; import java.lang.reflect.Method; @Slf4j public class Hsetman { public static void ma 阅读全文
posted @ 2022-06-14 15:07 爷的眼睛闪亮 阅读(244) 评论(0) 推荐(0) 编辑
摘要: import lombok.extern.slf4j.Slf4j; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; 阅读全文
posted @ 2022-06-14 14:53 爷的眼睛闪亮 阅读(2471) 评论(0) 推荐(0) 编辑
摘要: String json="[{\"ObjectName\":\"Code\",\"Operator\":\"=\",\"GroupId\":1,\"Value\":\"003581679\"}]"; JSONObject forObject = restTemplate().getForObject 阅读全文
posted @ 2022-06-08 10:29 爷的眼睛闪亮 阅读(550) 评论(0) 推荐(0) 编辑