摘要:
案例: 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
爺的眼睛閃亮
閱讀(70)
推薦(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
爺的眼睛閃亮
閱讀(54)
推薦(0)
摘要:
long start = System.currentTimeMillis(); //需要匹配的key String patternKey = "pay:*"; ScanOptions options = ScanOptions.scanOptions() .count(10000) //這里指定每
閱讀全文
posted @ 2022-12-16 11:37
爺的眼睛閃亮
閱讀(2269)
推薦(0)
摘要:
@Component public class RestTemplateUtils { @Autowired private RestTemplate restTemplate; private static RestTemplateUtils rtu; @PostConstruct public
閱讀全文
posted @ 2022-11-08 16:46
爺的眼睛閃亮
閱讀(46)
推薦(0)
摘要:
BlockingQueue<Runnable> workQueue = new ArrayBlockingQueue<>(10); ThreadPoolExecutor threadPool = new ThreadPoolExecutor(2, 3, 3, TimeUnit.SECONDS, wo
閱讀全文
posted @ 2022-07-12 15:55
爺的眼睛閃亮
閱讀(65)
推薦(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
爺的眼睛閃亮
閱讀(1249)
推薦(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
爺的眼睛閃亮
閱讀(184)
推薦(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
爺的眼睛閃亮
閱讀(251)
推薦(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
爺的眼睛閃亮
閱讀(2501)
推薦(0)
摘要:
String json="[{\"ObjectName\":\"Code\",\"Operator\":\"=\",\"GroupId\":1,\"Value\":\"003581679\"}]"; JSONObject forObject = restTemplate().getForObject
閱讀全文
posted @ 2022-06-08 10:29
爺的眼睛閃亮
閱讀(567)
推薦(0)