Browse Source

大屏 去掉 侨城汇的数据请求 & json deserializer fix

xiachuang 3 weeks ago
parent
commit
faf05a26ee

+ 1 - 1
pom.xml

@@ -12,7 +12,7 @@
     </parent>
     </parent>
 
 
     <groupId>cn.superdesk.uniorder</groupId>
     <groupId>cn.superdesk.uniorder</groupId>
-    <artifactId>superdesk-operation-center</artifactId>
+    <artifactId>superdesk-operation-center-dubbo</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <version>0.0.1-SNAPSHOT</version>
     <packaging>pom</packaging>
     <packaging>pom</packaging>
 
 

+ 1 - 1
superdesk-uniorder-common-json/pom.xml

@@ -4,7 +4,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 11 - 4
superdesk-uniorder-common-json/src/main/java/cn/superdesk/uniorder/common/json/deserializer/BigDecimalScale2ConvertDeserializer.java

@@ -3,6 +3,7 @@ package cn.superdesk.uniorder.common.json.deserializer;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.databind.DeserializationContext;
 import com.fasterxml.jackson.databind.DeserializationContext;
 import com.fasterxml.jackson.databind.JsonDeserializer;
 import com.fasterxml.jackson.databind.JsonDeserializer;
+import lombok.extern.slf4j.Slf4j;
 
 
 import java.io.IOException;
 import java.io.IOException;
 import java.math.BigDecimal;
 import java.math.BigDecimal;
@@ -18,6 +19,7 @@ import java.util.Objects;
  * @UpdateRemark: 修改内容
  * @UpdateRemark: 修改内容
  * @Version: 1.0
  * @Version: 1.0
  */
  */
+@Slf4j
 public class BigDecimalScale2ConvertDeserializer extends JsonDeserializer<BigDecimal> {
 public class BigDecimalScale2ConvertDeserializer extends JsonDeserializer<BigDecimal> {
 
 
 	/**
 	/**
@@ -30,14 +32,19 @@ public class BigDecimalScale2ConvertDeserializer extends JsonDeserializer<BigDec
 	 */
 	 */
 	@Override
 	@Override
 	public BigDecimal deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {
 	public BigDecimal deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {
-
-		if (Objects.isNull(jsonParser.getDecimalValue())) {
+		String text = jsonParser.getText();
+		if (Objects.isNull(text) || text.trim().isEmpty()) {
 //			return null;
 //			return null;
 			return BigDecimal.ZERO;
 			return BigDecimal.ZERO;
 		} else {
 		} else {
 			// 这里取floor
 			// 这里取floor
-			return jsonParser.getDecimalValue().setScale(2, RoundingMode.FLOOR);
-		}
+            try {
+				return new BigDecimal(text).setScale(2, RoundingMode.FLOOR);
+            } catch (Exception e) {
+				log.info("decimal数据格式转换异常,text: {}", text);
+				throw new RuntimeException("decimal数据格式转换异常");
+            }
+        }
 	}
 	}
 
 
 }
 }

+ 1 - 1
superdesk-uniorder-common-mq-kafka/pom.xml

@@ -4,7 +4,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-common-mq-redis/pom.xml

@@ -5,7 +5,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-common-queue/pom.xml

@@ -4,7 +4,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-common-xml/pom.xml

@@ -4,7 +4,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-common/pom.xml

@@ -4,7 +4,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-dao/pom.xml

@@ -6,7 +6,7 @@
 
 
 	<parent>
 	<parent>
 		<groupId>cn.superdesk.uniorder</groupId>
 		<groupId>cn.superdesk.uniorder</groupId>
-		<artifactId>superdesk-operation-center</artifactId>
+		<artifactId>superdesk-operation-center-dubbo</artifactId>
 		<version>0.0.1-SNAPSHOT</version>
 		<version>0.0.1-SNAPSHOT</version>
 	</parent>
 	</parent>
 
 

+ 1 - 1
superdesk-uniorder-dto/pom.xml

@@ -6,7 +6,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-dubbo-consumer/pom.xml

@@ -5,7 +5,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-dubbo-facade/pom.xml

@@ -5,7 +5,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-dubbo-provider/pom.xml

@@ -6,7 +6,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-executor/pom.xml

@@ -6,7 +6,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-openapi/pom.xml

@@ -6,7 +6,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-openapicall-thirdpart-szhtxx-electronicInvoice-dto/pom.xml

@@ -5,7 +5,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-openapicall-thirdpart-szhtxx-paperInvoice-dto/pom.xml

@@ -6,7 +6,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-openapicall/pom.xml

@@ -5,7 +5,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-service/pom.xml

@@ -5,7 +5,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 13 - 13
superdesk-uniorder-service/src/main/java/cn/superdesk/uniorder/service/_dashboard/impl/TvDashboardServiceImpl.java

@@ -97,19 +97,19 @@ public class TvDashboardServiceImpl implements TvDashboardService {
 
 
 		if (ObjectUtil.isNotNull(queryCriteria.getSpecialHandleCallOct()) && queryCriteria.getSpecialHandleCallOct().compareTo(SPECIAL_HANDLE_CALL_OCT) == 0) {
 		if (ObjectUtil.isNotNull(queryCriteria.getSpecialHandleCallOct()) && queryCriteria.getSpecialHandleCallOct().compareTo(SPECIAL_HANDLE_CALL_OCT) == 0) {
 
 
-			R<TvHeadDataVo> octResponse = octlifeUniOrderCallApiService.dashboardTvGetHeadDataOct("", queryCriteria);
-
-			if (ObjectUtil.isNotNull(octResponse)) {
-
-				octDate = octResponse.getData();
-
-				log.info("octDate response date \n{}", AnJsonUtils.toJson(octDate));
-
-				if (ObjectUtil.isNotNull(octDate)) {
-					countDateList.add(octDate);
-					responseDate.setOctTvHeadDataVo(octDate);
-				}
-			}
+			// R<TvHeadDataVo> octResponse = octlifeUniOrderCallApiService.dashboardTvGetHeadDataOct("", queryCriteria);
+			//
+			// if (ObjectUtil.isNotNull(octResponse)) {
+			//
+			// 	octDate = octResponse.getData();
+			//
+			// 	log.info("octDate response date \n{}", AnJsonUtils.toJson(octDate));
+			//
+			// 	if (ObjectUtil.isNotNull(octDate)) {
+			// 		countDateList.add(octDate);
+					responseDate.setOctTvHeadDataVo(new TvHeadDataVo());
+				// }
+			// }
 
 
 		}
 		}
 
 

+ 1 - 1
superdesk-uniorder-web/pom.xml

@@ -6,7 +6,7 @@
 
 
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
 
 

+ 1 - 1
superdesk-uniorder-xxl-job-admin/pom.xml

@@ -4,7 +4,7 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
     <parent>
         <groupId>cn.superdesk.uniorder</groupId>
         <groupId>cn.superdesk.uniorder</groupId>
-        <artifactId>superdesk-operation-center</artifactId>
+        <artifactId>superdesk-operation-center-dubbo</artifactId>
         <version>0.0.1-SNAPSHOT</version>
         <version>0.0.1-SNAPSHOT</version>
     </parent>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <modelVersion>4.0.0</modelVersion>