浏览代码

日志简化

fulonglong 2 年之前
父节点
当前提交
05205bba28

+ 2 - 1
src/main/java/com/charging/chargingparking/modules/mobileController/ParkingRecordController.java

@@ -120,8 +120,9 @@ public class ParkingRecordController {
         try {
             JSONObject jsonObject = JSONObject.parseObject(jsonObjectStr);
             AlarmInfoPlate alarmInfoPlate = JSONObject.parseObject(jsonObject.getString("AlarmInfoPlate"), AlarmInfoPlate.class);
-            log.warn(StrUtil.format("车牌:{},发送数据:{}", alarmInfoPlate.getResult().getPlateResult().getLicense(), alarmInfoPlate));
+            log.warn(StrUtil.format("车牌:{},plateId:{}",alarmInfoPlate.getResult().getPlateResult().getLicense(),alarmInfoPlate.getResult().getPlateResult().getPlateid()));
             resultMap = parkingRecordService.plateRecord(alarmInfoPlate);
+            log.warn(StrUtil.format("车牌:{},发送数据:{}", alarmInfoPlate.getResult().getPlateResult().getLicense(), JSONObject.parseObject(JSONObject.toJSONString(resultMap))));
         } catch (Exception ex) {
             log.error(ex.getMessage());
         }