李俊

内网迁移环境代码调整

...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <groupId>com.erry.iclear</groupId> 11 <groupId>com.erry.iclear</groupId>
12 <artifactId>iclear-api</artifactId> 12 <artifactId>iclear-api</artifactId>
13 <version>0.0.1-SNAPSHOT</version> 13 <version>0.0.1-SNAPSHOT</version>
14 - <packaging>jar</packaging> 14 + <packaging>war</packaging>
15 <name>iClear-api</name> 15 <name>iClear-api</name>
16 <description>iClear-api</description> 16 <description>iClear-api</description>
17 <properties> 17 <properties>
...@@ -116,6 +116,10 @@ ...@@ -116,6 +116,10 @@
116 </dependency> 116 </dependency>
117 <dependency> 117 <dependency>
118 <groupId>org.springframework.boot</groupId> 118 <groupId>org.springframework.boot</groupId>
119 + <artifactId>spring-boot-starter-validation</artifactId>
120 + </dependency>
121 + <dependency>
122 + <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-tomcat</artifactId> 123 <artifactId>spring-boot-starter-tomcat</artifactId>
120 <scope>provided</scope> 124 <scope>provided</scope>
121 </dependency> 125 </dependency>
...@@ -125,7 +129,6 @@ ...@@ -125,7 +129,6 @@
125 <optional>true</optional> 129 <optional>true</optional>
126 <scope>true</scope> 130 <scope>true</scope>
127 </dependency> 131 </dependency>
128 -
129 </dependencies> 132 </dependencies>
130 133
131 <profiles> 134 <profiles>
......
1 +
2 +
3 +CREATE TABLE [dbo].[T_ICLEAR_API_CHECK_LOG](
4 + [ID] [bigint] IDENTITY(1,1) NOT NULL,
5 + [request_appid] [varchar](200) NULL,
6 + [request_appkey] [varchar](200) NULL,
7 + [request_token] [varchar](200) NULL,
8 + [consignment_code] [varchar](200) NULL,
9 + [request_text] [text] NULL,
10 + [response_text] [text] NULL,
11 + [request_ip] [varchar](200) NULL,
12 + [create_time] [datetime] NULL,
13 + [success] [int] NULL,
14 + [code] [varchar](200) NULL,
15 +PRIMARY KEY CLUSTERED
16 +(
17 + [ID] ASC
18 +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
19 +) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
20 +GO
21 +
22 +
......
...@@ -108,7 +108,11 @@ public class FedexDataInterface { ...@@ -108,7 +108,11 @@ public class FedexDataInterface {
108 sw.start("checkFedexMawb"); 108 sw.start("checkFedexMawb");
109 String msg = result.getMsg(); 109 String msg = result.getMsg();
110 String iclearCheckMsg = fedexService.checkFedexMawb(saveMawbFedexResult).getMsg(); 110 String iclearCheckMsg = fedexService.checkFedexMawb(saveMawbFedexResult).getMsg();
111 - result.setMsg(msg+";"+iclearCheckMsg); 111 + if(StringUtil.isEmpty(msg) && StringUtil.isEmpty(iclearCheckMsg)){
112 + result.setSuccess(Boolean.TRUE);
113 + }else{
114 + result.setMsg(msg+";"+iclearCheckMsg);
115 + }
112 sw.stop(); 116 sw.stop();
113 117
114 log.info(sw.prettyPrint()); 118 log.info(sw.prettyPrint());
......
...@@ -74,4 +74,4 @@ public class HsCodeInterface { ...@@ -74,4 +74,4 @@ public class HsCodeInterface {
74 iClearApiHsCodeLogService.saveIClearApiHsCodeLog(iclearApiHsCodeLog); 74 iClearApiHsCodeLogService.saveIClearApiHsCodeLog(iclearApiHsCodeLog);
75 } 75 }
76 } 76 }
77 -}
...\ No newline at end of file ...\ No newline at end of file
77 +}
......
...@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
10 10
11 /** 11 /**
12 * @author Administrator 12 * @author Administrator
13 + *
13 */ 14 */
14 @RestController 15 @RestController
15 @RequestMapping("/system") 16 @RequestMapping("/system")
...@@ -46,7 +47,7 @@ public class IClearExportInterface { ...@@ -46,7 +47,7 @@ public class IClearExportInterface {
46 @GetMapping("/refreshSendMawbe") 47 @GetMapping("/refreshSendMawbe")
47 public String refreshSendMawbe() { 48 public String refreshSendMawbe() {
48 try{ 49 try{
49 - 50 +
50 51
51 return "Success"; 52 return "Success";
52 }catch (Exception e){ 53 }catch (Exception e){
......