文件名从 Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/util/VciBaseUtil.java 修改 |
| | |
| | | package com.vci.ubcs.com.vci.starter.web.util; |
| | | package com.vci.ubcs.starter.web.util; |
| | | |
| | | // |
| | | // Source code recreated from a .class file by IntelliJ IDEA |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.vci.ubcs.com.vci.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.com.vci.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.ubcs.com.vci.starter.web.toolmodel.DateConverter; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.ubcs.starter.web.toolmodel.DateConverter; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | |
| | | public static String getPk() { |
| | | return UUID.randomUUID().toString(); |
| | | } |
| | | |
| | | public static SessionInfo getCurrentUserSessionInfo() throws VciBaseException { |
| | | SessionInfo si = getCurrentUserSessionInfoNotException(); |
| | | if (si == null) { |
| | | throw new VciBaseException("noLogin", new String[]{"娌℃湁褰撳墠鐢ㄦ埛淇℃伅"}); |
| | | } else { |
| | | return si; |
| | | } |
| | | } |
| | | |
| | | public static int getIntForBoolean(boolean b) { |
| | |
| | | } |
| | | } |
| | | |
| | | public static SessionInfo getCurrentUserSessionInfoNotException() { |
| | | return (SessionInfo) WebThreadLocalUtil.getCurrentUserSessionInfoInThread().get(); |
| | | } |
| | | |
| | | public static String getStringValueFromObject(Object obj) { |
| | | if (obj == null) { |
| | | return ""; |
| | |
| | | } |
| | | } |
| | | |
| | | public static SessionInfo getCurrentUserSessionInfoNotException() { |
| | | return (SessionInfo) WebThreadLocalUtil.getCurrentUserSessionInfoInThread().get(); |
| | | } |
| | | |
| | | |
| | | public static <T> Collection<Collection<T>> switchCollectionForOracleIn(Collection<T> list) { |
| | | return switchCollectionForOracleIn(list, 500); |
| | | } |