Browse Source

重构代码

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
a11a3a3f8b
3 changed files with 4 additions and 8 deletions
  1. +2
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/query/QueryAccidentByIdService.java
  2. +1
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/query/QueryAccidentPageListService.java
  3. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java

+ 2
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/query/QueryAccidentByIdService.java View File

@@ -13,6 +13,7 @@ import com.tuoheng.admin.enums.MarkEnum;
import com.tuoheng.admin.mapper.AccidentMapper;
import com.tuoheng.admin.mapper.DeptMapper;
import com.tuoheng.admin.request.accident.QueryAccidentPageListRequest;
import com.tuoheng.admin.utils.CurrentUserUtil;
import com.tuoheng.admin.vo.accident.AccidentVo;
import com.tuoheng.common.core.exception.ServiceException;
import com.tuoheng.common.core.utils.JsonResult;
@@ -42,10 +43,7 @@ public class QueryAccidentByIdService {

public JsonResult getInfoById(String id) {
// log.info("进入根据ID查询事件业务");

// String tenantId = CurrentUserUtil.getTenantId();
String tenantId = "1";

String tenantId = CurrentUserUtil.getTenantId();
JsonResult result = this.check(tenantId, id);
if (0 != result.getCode()) {
log.info("进入根据ID查询事件业务:校验失败:{}", result.getMsg());

+ 1
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/query/QueryAccidentPageListService.java View File

@@ -57,10 +57,7 @@ public class QueryAccidentPageListService {

public JsonResult getPageList(QueryAccidentPageListRequest request) {
// log.info("进入查询事件分页列表业务");

// String tenantId = CurrentUserUtil.getTenantId();

String tenantId = "1";
String tenantId = CurrentUserUtil.getTenantId();
request.setTenantId(tenantId);

JsonResult result = this.check(tenantId, request);

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java View File

@@ -142,6 +142,7 @@ public class DspCallbackServiceImpl implements IDspCallbackService {
List<QuestionFile> questionFiles = dspCallbackRequest.getQuestionFiles();
if (!CollectionUtils.isEmpty(questionFiles)) {
log.info("问题图片处理开始, 图片数量:{}", questionFiles.size());
log.info("问题图片处理开始, isLive:{}", inspection.getIsLive());
// 坐标
boolean online_condition = AiAnalyseTypeEnum.ONLINE.getCode() == inspection.getIsLive();
boolean offline_condition = AiAnalyseTypeEnum.OFFLINE.getCode() == inspection.getIsLive();

Loading…
Cancel
Save