日志级别package优化

This commit is contained in:
ZZ 2021-11-23 16:59:13 +08:00
parent 763194b6e6
commit 735bfadcfb
10 changed files with 18 additions and 18 deletions

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsChargerInterruptDataLogic")
public class BmsChargerInterruptDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsChargerInterruptDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsChargerInterruptDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsChargingCompletedDataLogic")
public class BmsChargingCompletedDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsChargingCompletedDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsChargingCompletedDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsChargingConfigDataLogic")
public class BmsChargingConfigDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsChargingConfigDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsChargingConfigDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsChargingDataLogic")
public class BmsChargingDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsChargingDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsChargingDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsChargingHandshakeDataLogic")
public class BmsChargingHandshakeDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsChargingHandshakeDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsChargingHandshakeDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsErrorDataLogic")
public class BmsErrorDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsErrorDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsErrorDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsInterruptDataLogic")
public class BmsInterruptDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsInterruptDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsInterruptDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
package com.xhpc.pp.logic;
import com.xhpc.mapper.XhpcMessageMapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.pp.mapper.XhpcMessageMapper;
import com.xhpc.pp.tx.ServiceParameter;
import com.xhpc.pp.tx.ServiceResult;
import com.xhpc.pp.tx.logic.ServiceLogic;
@ -17,7 +17,7 @@ import java.util.Map;
@Component("BmsReqChargerOutputDataLogic")
public class BmsReqChargerOutputDataLogic implements ServiceLogic {
private static Logger log = LoggerFactory.getLogger(BmsReqChargerOutputDataLogic.class);
private static final Logger log = LoggerFactory.getLogger(BmsReqChargerOutputDataLogic.class);
@Autowired
private XhpcMessageMapper xhpcMessageMapper;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xhpc.pp.mapper.XhpcMessageMapper">
<mapper namespace="com.xhpc.mapper.XhpcMessageMapper">
<resultMap type="com.xhpc.pp.domain.XhpcMessage" id="XhpcMessageResult">
<id property="messageId" column="message_id"/>

View File

@ -1,6 +1,6 @@
package com.xhpc.pp.mapper;
import com.xhpc.pp.domain.XhpcMessage;
import com.xhpc.mapper.XhpcMessageMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;