#干货
SELECT
count(1) as a
FROM
gdm.gdm_m04_ord_sum
where
dt = '2019-12-09'
and parent_sale_ord_id = sale_ord_id
dp='ACTIVE' 卡分区
干货物
中通快递的正则校验。目前中通正则为:
^((118|828|618|680|518|528|688|689|010|880|660|805|888|988|628|205|717|718|719|728|738|76[0-9]|701|757|751|768|778|779|358)[0-9]{9})$|^((5711|2008|2009|2010|1180)[0-9]{8})$|^((66|88)[0-9]{8})$|^(3[5,6,7]|4[0-9]|5[3-6]|[7|8]8)\d{10}$|^(78|63|12|64)\d{10}$|^(11|13|54|55|56|50|51|72)\d{10}$|^9\d{11}$|^2[1-9]{1}[0-9]{10}$|^2710[0-9]{11}$|^731[0-9]{11}$|^751[0-7]{1}[0-9]{10}$|^753[0-9]{11}$|^771[0-9]{11}$|^73[0-9]{12}$
java8
-------------- before -----------------
map = new HashMap<>();
for (Strategy strategy : strategies) {
map.put(strategy.getType(), strategy);
}
-------------- after Java8 -----------------
map = strategies.stream().collect(Collectors.toMap(Strategy::getType, strategy -> strategy));
java8的收集器。
来源:CSDN
作者:yangbinfx
链接:https://blog.csdn.net/yangbinfx/article/details/103496432