sql语句 带list集合类型参数的情况,对于为空和不为空两种情况的语句判断实现,使用 IF(expr1,expr2,expr3)不生效,因此使用 coalesce
List<Map<String,Object>> getRegionRaking(Date startTime, Date endTime, List<BigInteger> regionId);
(coalesce (?1 , null) is null or t1.seller_id NOT IN (?1))
sql语句 带list集合类型参数的情况,对于为空和不为空两种情况的语句判断实现,使用 IF(expr1,expr2,expr3)不生效,因此使用 coalesce
List<Map<String,Object>> getRegionRaking(Date startTime, Date endTime, List<BigInteger> regionId);
(coalesce (?1 , null) is null or t1.seller_id NOT IN (?1))