Compare commits
6 Commits
268b63e607
...
feat/jntyz
| Author | SHA1 | Date | |
|---|---|---|---|
| 44efd5689b | |||
|
|
0f7af30789 | ||
|
|
b4ed93171c | ||
|
|
6902a16cfa | ||
|
|
60992dc4f6 | ||
|
|
cb21b38287 |
@@ -0,0 +1,11 @@
|
|||||||
|
package com.xiang.common.manage.jntyzx.zlb;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xiang.common.pojo.jntyzx.zlb.ZlbPayOrder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: xiang
|
||||||
|
* @Date: 2026-05-09 15:11
|
||||||
|
*/
|
||||||
|
public interface IZlbOrderInfoManage extends IService<ZlbPayOrder> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.xiang.common.manage.jntyzx.zlb;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.xiang.common.mapper.ZlbOrderInfoMapper;
|
||||||
|
import com.xiang.common.pojo.jntyzx.zlb.ZlbPayOrder;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: xiang
|
||||||
|
* @Date: 2026-05-09 15:11
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ZlbOrderInfoManageImpl extends ServiceImpl<ZlbOrderInfoMapper, ZlbPayOrder> implements IZlbOrderInfoManage {
|
||||||
|
}
|
||||||
@@ -73,7 +73,7 @@ public class HttpService {
|
|||||||
CloseableHttpResponse response = null;
|
CloseableHttpResponse response = null;
|
||||||
String result = "";
|
String result = "";
|
||||||
try {
|
try {
|
||||||
log.info("HTTP请求,请求地址===>{}, 请求头===>{}, 请求参数===>{}", url, JSON.toJSONString(header), jsonParams);
|
log.debug("HTTP请求,请求地址===>{}, 请求头===>{}, 请求参数===>{}", url, JSON.toJSONString(header), jsonParams);
|
||||||
HttpPost httpPost = new HttpPost(url);
|
HttpPost httpPost = new HttpPost(url);
|
||||||
httpPost.addHeader("Content-Type", "application/json");
|
httpPost.addHeader("Content-Type", "application/json");
|
||||||
// 创建请求内容
|
// 创建请求内容
|
||||||
@@ -88,7 +88,7 @@ public class HttpService {
|
|||||||
}
|
}
|
||||||
response = httpClient.execute(httpPost);
|
response = httpClient.execute(httpPost);
|
||||||
result = EntityUtils.toString(response.getEntity(), "utf-8");
|
result = EntityUtils.toString(response.getEntity(), "utf-8");
|
||||||
log.info("【POST请求】 请求地址===>{}, 响应结果==={}", url, result);
|
log.debug("【POST请求】 请求地址===>{}, 响应结果==={}", url, result);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("doPost异常", e);
|
log.error("doPost异常", e);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -117,10 +117,10 @@ public class HttpService {
|
|||||||
httpGet.setHeader(entry.getKey(), entry.getValue());
|
httpGet.setHeader(entry.getKey(), entry.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.info("doGet请求:请求头:{},请求地址:{}", header, url + request);
|
log.debug("doGet请求:请求头:{},请求地址:{}", header, url + request);
|
||||||
response = httpClient.execute(httpGet);
|
response = httpClient.execute(httpGet);
|
||||||
result = EntityUtils.toString(response.getEntity(), "utf-8");
|
result = EntityUtils.toString(response.getEntity(), "utf-8");
|
||||||
log.info("【GET请求】, 请求地址===>{}, 响应结果===>{}", url + request, result);
|
log.debug("【GET请求】, 请求地址===>{}, 响应结果===>{}", url + request, result);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("doGet异常:", e);
|
log.error("doGet异常:", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ public class JntyzxUserInfoConfigTask extends BaseScheduleTaskTemplate {
|
|||||||
return taskResult;
|
return taskResult;
|
||||||
}
|
}
|
||||||
venueInfoDOS = venueInfoDOS.stream()
|
venueInfoDOS = venueInfoDOS.stream()
|
||||||
|
.filter(item -> !item.getPlaceName().contains("小馆"))
|
||||||
.sorted(Comparator.comparing(item -> VenueInfoUtils.sortVenueInfo(item.getPlaceName())))
|
.sorted(Comparator.comparing(item -> VenueInfoUtils.sortVenueInfo(item.getPlaceName())))
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
@@ -103,6 +104,7 @@ public class JntyzxUserInfoConfigTask extends BaseScheduleTaskTemplate {
|
|||||||
|
|
||||||
List<UserInfoDO> list = Lists.newArrayList();
|
List<UserInfoDO> list = Lists.newArrayList();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
userInfoService.delAll();
|
||||||
for (UserTokenInfoDO user : users) {
|
for (UserTokenInfoDO user : users) {
|
||||||
VenueInfoDO venueInfoDO = venueInfoDOS.get(i);
|
VenueInfoDO venueInfoDO = venueInfoDOS.get(i);
|
||||||
UserInfoDO userInfoDO = new UserInfoDO();
|
UserInfoDO userInfoDO = new UserInfoDO();
|
||||||
|
|||||||
@@ -121,18 +121,23 @@ public class JtVenuePullTask extends BaseScheduleTaskTemplate {
|
|||||||
}
|
}
|
||||||
venueService.saveOrUpdateTodayVenueInfo(sitePositionLists);
|
venueService.saveOrUpdateTodayVenueInfo(sitePositionLists);
|
||||||
|
|
||||||
List<SitePositionList> sitePositionLists6_8 = handleMsgSendList(sitePositionLists, 1);
|
StringBuffer msg = new StringBuffer();
|
||||||
StringBuffer msg = new StringBuffer(
|
|
||||||
"查询到18:00-20:00空闲场地信息=====>\n时间:" + DateUtils.getDateFromDate(LocalDate.now()) + "\n");
|
|
||||||
sitePositionLists6_8.forEach(item -> {
|
|
||||||
msg.append(item.getPlaceName()).append("\n");
|
|
||||||
});
|
|
||||||
List<SitePositionList> sitePositionLists8_10 = handleMsgSendList(sitePositionLists, 2);
|
|
||||||
msg.append("查询到18:00-20:00空闲场地信息=====>\n时间:").append(DateUtils.getDateFromDate(LocalDate.now())).append("\n");
|
|
||||||
sitePositionLists8_10.forEach(item -> msg.append(item.getPlaceName()).append("\n"));
|
|
||||||
|
|
||||||
|
List<SitePositionList> sitePositionLists6_8 = handleMsgSendList(sitePositionLists, 1);
|
||||||
|
if (CollectionUtils.isNotEmpty(sitePositionLists6_8)) {
|
||||||
|
msg.append("查询到18:00-20:00空闲场地信息=====>\n时间:").append(DateUtils.getDateFromDate(LocalDate.now())).append("\n");
|
||||||
|
sitePositionLists6_8.forEach(item -> msg.append(item.getPlaceName()).append("\n"));
|
||||||
|
}
|
||||||
|
List<SitePositionList> sitePositionLists8_10 = handleMsgSendList(sitePositionLists, 2);
|
||||||
|
if (CollectionUtils.isNotEmpty(sitePositionLists8_10)) {
|
||||||
|
msg.append("查询到20:00-22:00空闲场地信息=====>\n时间:").append(DateUtils.getDateFromDate(LocalDate.now())).append("\n");
|
||||||
|
sitePositionLists8_10.forEach(item -> msg.append(item.getPlaceName()).append("\n"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(msg)) {
|
||||||
String key = RedisKeyConstant.JNTYZX_VENUE_MSG_SEND_KEY + RedisKeyConstant.getDate();
|
String key = RedisKeyConstant.JNTYZX_VENUE_MSG_SEND_KEY + RedisKeyConstant.getDate();
|
||||||
msgSendUtils.sendMsgRestrict1Hours(key, msg.toString());
|
msgSendUtils.sendMsgRestrict1Hours(key, msg.toString());
|
||||||
|
}
|
||||||
taskResult.setSuccess(true);
|
taskResult.setSuccess(true);
|
||||||
taskResult.setSummary("查询场地信息成功!时间:" + now);
|
taskResult.setSummary("查询场地信息成功!时间:" + now);
|
||||||
return taskResult;
|
return taskResult;
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ public class JtVenueTomorrowPullTask extends BaseScheduleTaskTemplate {
|
|||||||
}
|
}
|
||||||
map.put(sitePositionList.getPlaceName(), sitePositionList);
|
map.put(sitePositionList.getPlaceName(), sitePositionList);
|
||||||
}
|
}
|
||||||
StringBuffer msg = new StringBuffer("查询江体场地信息=====>\n时间:" + DateUtils.getDateFromDate(LocalDate.now().plusDays(1)) + time + "\n");
|
StringBuffer msg = new StringBuffer("查询江体场地信息=====>\n时间:" + DateUtils.getDateFromDate(LocalDate.now().plusDays(1)) + " " + time + "\n");
|
||||||
map.forEach((placeName, sitePositionList) -> {
|
map.forEach((placeName, sitePositionList) -> {
|
||||||
msg.append(placeName).append("订购人:").append(sitePositionList.getContacts()).append("\n");
|
msg.append(placeName).append("订购人:").append(sitePositionList.getContacts()).append("\n");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -56,6 +56,25 @@ public class VenueInfoUtils {
|
|||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int sortVenueInfo4Zlb(String placeName) {
|
||||||
|
if (placeName.contains("10号")) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (placeName.contains("9号")) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (placeName.contains("2号")) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
if (placeName.contains("8号")) {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
if (placeName.contains("7号")) {
|
||||||
|
return 4;
|
||||||
|
}
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
|
|
||||||
public static List<VenueInfoDO> filterVenueList(String siteTimeName, List<VenueInfoDO> venueInfoDOS) {
|
public static List<VenueInfoDO> filterVenueList(String siteTimeName, List<VenueInfoDO> venueInfoDOS) {
|
||||||
if (StringUtils.equals(siteTimeName, "18:00")) {
|
if (StringUtils.equals(siteTimeName, "18:00")) {
|
||||||
return venueInfoDOS.stream().filter(VenueInfoUtils::get628VenueInfo).collect(Collectors.toList());
|
return venueInfoDOS.stream().filter(VenueInfoUtils::get628VenueInfo).collect(Collectors.toList());
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import com.xiang.common.enums.ScheduleEnums;
|
|||||||
import com.xiang.common.exception.BusinessException;
|
import com.xiang.common.exception.BusinessException;
|
||||||
import com.xiang.common.factory.JntyzxDingTalkFactory;
|
import com.xiang.common.factory.JntyzxDingTalkFactory;
|
||||||
import com.xiang.common.factory.schedule.BaseScheduleTaskTemplate;
|
import com.xiang.common.factory.schedule.BaseScheduleTaskTemplate;
|
||||||
|
import com.xiang.common.manage.jntyzx.zlb.IZlbOrderInfoManage;
|
||||||
|
import com.xiang.common.pojo.jntyzx.zlb.ZlbPayOrder;
|
||||||
import com.xiang.common.pojo.jntyzx.zlb.ZlbTokenInfo;
|
import com.xiang.common.pojo.jntyzx.zlb.ZlbTokenInfo;
|
||||||
import com.xiang.common.pojo.jntyzx.zlb.ZlbUserInfo;
|
import com.xiang.common.pojo.jntyzx.zlb.ZlbUserInfo;
|
||||||
import com.xiang.common.pojo.schedule.TaskResult;
|
import com.xiang.common.pojo.schedule.TaskResult;
|
||||||
@@ -24,6 +26,7 @@ import org.springframework.data.redis.core.RedisTemplate;
|
|||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.time.LocalTime;
|
import java.time.LocalTime;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -40,6 +43,7 @@ public class ZlbOrderTask extends BaseScheduleTaskTemplate {
|
|||||||
private final ZlbTokenInfoService zlbTokenInfoService;
|
private final ZlbTokenInfoService zlbTokenInfoService;
|
||||||
private final JntyzxDingTalkFactory jntyzxDingTalkFactory;
|
private final JntyzxDingTalkFactory jntyzxDingTalkFactory;
|
||||||
private final RedisTemplate redisTemplate;
|
private final RedisTemplate redisTemplate;
|
||||||
|
private final IZlbOrderInfoManage zlbOrderInfoManage;
|
||||||
|
|
||||||
public ZlbOrderTask(IScheduleOpeningConfigService scheduleOpeningConfigService,
|
public ZlbOrderTask(IScheduleOpeningConfigService scheduleOpeningConfigService,
|
||||||
IScheduleRunLogService scheduleRunLogService,
|
IScheduleRunLogService scheduleRunLogService,
|
||||||
@@ -47,13 +51,15 @@ public class ZlbOrderTask extends BaseScheduleTaskTemplate {
|
|||||||
ZlbService zlbService,
|
ZlbService zlbService,
|
||||||
ZlbTokenInfoService zlbTokenInfoService,
|
ZlbTokenInfoService zlbTokenInfoService,
|
||||||
JntyzxDingTalkFactory jntyzxDingTalkFactory,
|
JntyzxDingTalkFactory jntyzxDingTalkFactory,
|
||||||
RedisTemplate redisTemplate) {
|
RedisTemplate redisTemplate,
|
||||||
|
IZlbOrderInfoManage zlbOrderInfoManage) {
|
||||||
super(scheduleOpeningConfigService, scheduleRunLogService);
|
super(scheduleOpeningConfigService, scheduleRunLogService);
|
||||||
this.zlbUserInfoService = zlbUserInfoService;
|
this.zlbUserInfoService = zlbUserInfoService;
|
||||||
this.zlbService = zlbService;
|
this.zlbService = zlbService;
|
||||||
this.zlbTokenInfoService = zlbTokenInfoService;
|
this.zlbTokenInfoService = zlbTokenInfoService;
|
||||||
this.jntyzxDingTalkFactory = jntyzxDingTalkFactory;
|
this.jntyzxDingTalkFactory = jntyzxDingTalkFactory;
|
||||||
this.redisTemplate = redisTemplate;
|
this.redisTemplate = redisTemplate;
|
||||||
|
this.zlbOrderInfoManage = zlbOrderInfoManage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -98,11 +104,15 @@ public class ZlbOrderTask extends BaseScheduleTaskTemplate {
|
|||||||
String tokenId = zlbTokenInfo.getTokenId();
|
String tokenId = zlbTokenInfo.getTokenId();
|
||||||
String secretKey = zlbService.getKey(tokenId, client);
|
String secretKey = zlbService.getKey(tokenId, client);
|
||||||
String siteOrderDetailsStr = zlbService.buildSiteOrder(zlbUserInfo, secretKey, day);
|
String siteOrderDetailsStr = zlbService.buildSiteOrder(zlbUserInfo, secretKey, day);
|
||||||
|
if (StringUtils.isEmpty(siteOrderDetailsStr)) {
|
||||||
|
log.info("构建订单参数异常:{}", siteOrderDetailsStr);
|
||||||
|
throw new BusinessException("构建订单参数异常");
|
||||||
|
}
|
||||||
Map<String, String> headers = zlbService.getHeaders(zlbTokenInfo.getTokenId());
|
Map<String, String> headers = zlbService.getHeaders(zlbTokenInfo.getTokenId());
|
||||||
String newOrderJson = zlbService.buildNewOrder(siteOrderDetailsStr, client);
|
String newOrderJson = zlbService.buildNewOrder(siteOrderDetailsStr, client);
|
||||||
if (StringUtils.isBlank(newOrderJson)) {
|
if (StringUtils.isBlank(newOrderJson)) {
|
||||||
log.info("构建订单参数异常:{}", siteOrderDetailsStr);
|
log.info("构建订单参数异常:{}", siteOrderDetailsStr);
|
||||||
throw new BusinessException("");
|
throw new BusinessException("构建订单参数异常");
|
||||||
}
|
}
|
||||||
ScheduledExecutorService executorService = Executors.newScheduledThreadPool(1);
|
ScheduledExecutorService executorService = Executors.newScheduledThreadPool(1);
|
||||||
//计算9点到现在的时间差
|
//计算9点到现在的时间差
|
||||||
@@ -138,18 +148,26 @@ public class ZlbOrderTask extends BaseScheduleTaskTemplate {
|
|||||||
log.info("订单接口返回结果==> \n {}", response);
|
log.info("订单接口返回结果==> \n {}", response);
|
||||||
JSONObject jsonObject = JSONObject.parseObject(response);
|
JSONObject jsonObject = JSONObject.parseObject(response);
|
||||||
if (jsonObject.getInteger("code") == 200) {
|
if (jsonObject.getInteger("code") == 200) {
|
||||||
jntyzxDingTalkFactory.sendMsg(name + "zlb订单接口下单返回成功请2分钟内付款√√√√√√场地号:" + placeName + "时间:" + siteTimeName);
|
jntyzxDingTalkFactory.sendMsg(name + ":zlb订单接口下单返回成功请2分钟内付款√√√√√√场地号:" + placeName + "时间:" + siteTimeName);
|
||||||
JSONObject data = jsonObject.getJSONObject("data");
|
JSONObject data = jsonObject.getJSONObject("data");
|
||||||
String orderId = data.getString("orderId");
|
String orderId = data.getString("orderId");
|
||||||
log.info("{}订单{}创建成功", name, orderId);
|
log.info("{}订单{}创建成功", name, orderId);
|
||||||
String redisKey = ZlbUrlConstants.REDIS_PREFIX + "_" + orderId + "_" + name;
|
String redisKey = ZlbUrlConstants.REDIS_PREFIX + "_" + orderId + "_" + name;
|
||||||
redisTemplate.opsForValue().set(redisKey, name);
|
redisTemplate.opsForValue().set(redisKey, name);
|
||||||
redisTemplate.expire(redisKey, 120, TimeUnit.SECONDS);
|
redisTemplate.expire(redisKey, 120, TimeUnit.SECONDS);
|
||||||
|
ZlbPayOrder zlbPayOrder = new ZlbPayOrder();
|
||||||
|
zlbPayOrder.setName(name);
|
||||||
|
zlbPayOrder.setDay(DateUtils.getDateFromDate(LocalDate.now().plusDays(1)));
|
||||||
|
zlbPayOrder.setVenues("江体");
|
||||||
|
zlbPayOrder.setPlaceName(placeName);
|
||||||
|
zlbPayOrder.setTime(siteTimeName);
|
||||||
|
zlbPayOrder.setIsPay(0);
|
||||||
|
zlbOrderInfoManage.save(zlbPayOrder);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (jsonObject.getInteger("code") == 500) {
|
if (jsonObject.getInteger("code") == 500) {
|
||||||
if (jsonObject.getString("message").contains("已被售出")) {
|
if (jsonObject.getString("message").contains("已被售出")) {
|
||||||
jntyzxDingTalkFactory.sendMsg(name + "zlb订单接口下单返回失败❌❌❌场地号:" + placeName + "已被售出");
|
jntyzxDingTalkFactory.sendMsg(name + ":zlb订单接口下单返回失败❌❌❌场地号:" + placeName + "已被售出");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,6 +145,6 @@ public class ZlbUserConfigTask extends BaseScheduleTaskTemplate {
|
|||||||
if (CollectionUtils.isEmpty(siteInfoList)) {
|
if (CollectionUtils.isEmpty(siteInfoList)) {
|
||||||
return Lists.newArrayList();
|
return Lists.newArrayList();
|
||||||
}
|
}
|
||||||
return siteInfoList.stream().sorted(Comparator.comparing(item -> VenueInfoUtils.sortVenueInfo(item.getPlaceName()))).collect(Collectors.toList());
|
return siteInfoList.stream().sorted(Comparator.comparing(item -> VenueInfoUtils.sortVenueInfo4Zlb(item.getPlaceName()))).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<configuration scan="true">
|
<configuration scan="true">
|
||||||
|
|
||||||
<!-- 应用名称:和统一配置中的项目代码保持一致(小写) -->
|
<!-- 应用名称:和统一配置中的项目代码保持一致(小写) -->
|
||||||
<springProperty scope="context" name="APP_NAME" source="spring.application.name" defaultValue="X_APP" />
|
<springProperty scope="context" name="APP_NAME" source="spring.application.name" defaultValue="APP" />
|
||||||
<contextName>${APP_NAME}</contextName>
|
<contextName>${APP_NAME}</contextName>
|
||||||
|
|
||||||
<!--日志文件保留天数 -->
|
<!--日志文件保留天数 -->
|
||||||
@@ -65,6 +65,23 @@
|
|||||||
</filter>
|
</filter>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
<appender name="APP_WARN" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<FileNamePattern>${LOG_HOME}/warn-%d{yyyy-MM-dd}.log</FileNamePattern>
|
||||||
|
<MaxHistory>${LOG_MAX_HISTORY}</MaxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||||
|
<pattern>%contextName: %d{yyyy-MM-dd HH:mm:ss.SSS} [%c][%t][%L][%p] [traceId:%X{traceId:-},spanId:%X{spanId:-},localIp:%X{localIp:-}] - %msg%n</pattern>
|
||||||
|
<charset>UTF-8</charset>
|
||||||
|
</encoder>
|
||||||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||||
|
<level>warn</level>
|
||||||
|
<onMatch>ACCEPT</onMatch>
|
||||||
|
<onMismatch>DENY</onMismatch>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
|
||||||
<!-- 按照每天生成日志文件:主项目日志 -->
|
<!-- 按照每天生成日志文件:主项目日志 -->
|
||||||
<appender name="APP_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
<appender name="APP_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
@@ -90,12 +107,12 @@
|
|||||||
<root level="INFO">
|
<root level="INFO">
|
||||||
<appender-ref ref="APP_DEBUG"/>
|
<appender-ref ref="APP_DEBUG"/>
|
||||||
<appender-ref ref="APP_INFO"/>
|
<appender-ref ref="APP_INFO"/>
|
||||||
|
<appender-ref ref="APP_WARN"/>
|
||||||
<appender-ref ref="APP_ERROR"/>
|
<appender-ref ref="APP_ERROR"/>
|
||||||
<appender-ref ref="CONSOLE"/>
|
<appender-ref ref="CONSOLE"/>
|
||||||
</root>
|
</root>
|
||||||
|
|
||||||
<!-- mybatis 日志级别 -->
|
<logger name="com.xiang" level="DEBUG"/>
|
||||||
<logger name="com.xiang" level="INFO"/>
|
|
||||||
<!-- Spring 框架 -->
|
<!-- Spring 框架 -->
|
||||||
<logger name="org.springframework" level="INFO"/>
|
<logger name="org.springframework" level="INFO"/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user