更新了补推的逻辑

master
土豆兄弟 4 years ago
parent a442aa462e
commit cde2ecabd8

@ -1,6 +1,6 @@
spring:
profiles:
active: prod
active: stg
# 序列化忽略null的k-v配置
jackson:
default-property-inclusion: non_null
@ -84,7 +84,7 @@ spring:
# 数据库相关配置
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/push?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false
url: jdbc:mysql://47.99.218.9:3306/push?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false
username: root
password: Yuyou@2020
# 下游请求配置信息
@ -105,5 +105,5 @@ ab:
appId: excin4hg3n29yc73ns9x
url: https://www.shijikj.cn/ex/infoColl
secretKey: ex456c24iejto89pavp
logging:
config: classpath:logback.xml
#logging:
# config: classpath:logback.xml

@ -37,7 +37,7 @@
<root level="INFO">
<!-- TODO prod 环境去掉std -->
<!--<appender-ref ref="stdAppender"/>-->
<appender-ref ref="fileAppender"/>
<appender-ref ref="stdAppender"/>
<!--<appender-ref ref="fileAppender"/>-->
</root>
</configuration>

@ -23,7 +23,7 @@ import java.util.List;
* extends OpenapiApplicationTest
*/
@Slf4j
public class ZMSortTest extends OpenapiApplicationTest{
public class ZMSortTest extends OpenapiApplicationTest{
@Autowired
@Qualifier("ABClientServiceProxy")
@ -52,8 +52,9 @@ public class ZMSortTest extends OpenapiApplicationTest{
&& StringUtils.isNotBlank(abzmMessageDTO.getData().getGrade())
&& StringUtils.isNotBlank(abzmMessageDTO.getData().getCourse())
){
// System.out.println(abzmMessageDTO);
System.out.println("abzmMessageDTO" + abzmMessageDTO);
boolean insert = abClientService.recordZMClientMsg(abzmMessageDTO);
System.out.println("insert " + insert);
if (insert){
log.info("success");
}else {
@ -73,7 +74,7 @@ public class ZMSortTest extends OpenapiApplicationTest{
list.forEach(
each->{
if (StringUtils.isNotBlank(each.trim())){
result.add(each.trim()+ "}");
result.add(StringUtils.substring(each.trim(),0,each.trim().length()-1));
}
}
);

Loading…
Cancel
Save