外部引用jar问题处理
This commit is contained in:
parent
34cffd2b0d
commit
c9f6a5a41a
|
@ -76,6 +76,7 @@
|
||||||
<version>2.5.15</version>
|
<version>2.5.15</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
||||||
|
<includeSystemScope>true</includeSystemScope>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|
|
@ -173,15 +173,4 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<includeSystemScope>true</includeSystemScope>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
|
@ -14,4 +14,6 @@ public interface IAiService {
|
||||||
void sendAiTask(String content, BusOrderInfo busOrderInfo);
|
void sendAiTask(String content, BusOrderInfo busOrderInfo);
|
||||||
|
|
||||||
void sendToAi();
|
void sendToAi();
|
||||||
|
|
||||||
|
void sms();
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,6 +405,14 @@ public class AiServiceImpl implements IAiService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void sms() {
|
||||||
|
String content = "#分机号#测试";
|
||||||
|
BusOrderInfo busOrderInfo = orderInfoService.selectBusOrderInfoById(1L);
|
||||||
|
sendSmsTask(content,busOrderInfo);
|
||||||
|
}
|
||||||
|
|
||||||
private synchronized void sendSmsTask(String content, BusOrderInfo busOrderInfo) {
|
private synchronized void sendSmsTask(String content, BusOrderInfo busOrderInfo) {
|
||||||
try {
|
try {
|
||||||
String phoneNo = busOrderInfo.getPrivcyPhone().split(",")[0];//#分机号#
|
String phoneNo = busOrderInfo.getPrivcyPhone().split(",")[0];//#分机号#
|
||||||
|
@ -421,7 +429,8 @@ public class AiServiceImpl implements IAiService {
|
||||||
fifteenInfoService.insertBusFifteenInfo(fifteenInfo);
|
fifteenInfoService.insertBusFifteenInfo(fifteenInfo);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("建立sendSmsTask错误: " + e.getMessage());
|
System.out.println("建立sendSmsTask错误: " + busOrderInfo.toString());
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue