hanzhiwei hace 1 año
padre
commit
74c62b97bf

+ 2 - 0
zd-modules/zd-airbottle/src/main/java/com/zd/airbottle/service/impl/AlarmRecordServiceImpl.java

@@ -464,6 +464,7 @@ public class AlarmRecordServiceImpl implements IAlarmRecordService {
         warningNoticeLogDto.setBeaconTag(beaconTag);
         //查询到实验室负责人id 安全责任人id
         ResultData<List<CheckSubjectDto>> subjectInfoList = laboratoryService.findSubjectInfoList(String.valueOf(dbStock.getSubjectId()));
+        log.info("5A={}",JSON.toJSONString(subjectInfoList));
         StringBuffer userIds = new StringBuffer();
         StringBuffer phones = new StringBuffer();
         if (HttpStatus.SUCCESS == subjectInfoList.getCode()) {
@@ -480,6 +481,7 @@ public class AlarmRecordServiceImpl implements IAlarmRecordService {
             userIds.append(i.getSafeUserId()).append(",").append(i.getAdminId());
             phones.append(i.getAdminPhone()).append(",").append(i.getSafeUserPhone());
         }
+        log.info("6A={}",JSON.toJSONString(warningNoticeLogDto));
         ResultData resultData = laboratoryService.addWarningNoticeLog(warningNoticeLogDto);
         if (HttpStatus.SUCCESS != resultData.getCode()) {
             return 0;

+ 2 - 0
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/controller/WarningNoticeLogController.java

@@ -1,6 +1,7 @@
 package com.zd.laboratory.controller;
 
 import cn.hutool.core.date.LocalDateTimeUtil;
+import com.alibaba.fastjson.JSON;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -57,6 +58,7 @@ public class WarningNoticeLogController extends AbstractController {
     public ResultData add(@RequestBody WarningNoticeLogDto warningNoticeLogDto){
         WarningNoticeLog warningNoticeLog = new WarningNoticeLog();
         BeanUtils.copyProperties(warningNoticeLogDto,warningNoticeLog);
+        log.info("7A={}", JSON.toJSONString(warningNoticeLog));
         Long logId = warningNoticeLogService.addWarningNoticeLog(warningNoticeLog);
         if (logId > 0) {
             return ResultData.success(logId);