Browse Source

Merge remote-tracking branch 'origin/develop' into develop

tags/v1.1.0^2
chenjiandong 1 year ago
parent
commit
c3108f1eda
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/WorkOrderServiceImpl.java

+ 20
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/WorkOrderServiceImpl.java View File

import com.tuoheng.admin.mapper.WorkOrderQuestionMapper; import com.tuoheng.admin.mapper.WorkOrderQuestionMapper;
import com.tuoheng.admin.service.IWorkOrderService; import com.tuoheng.admin.service.IWorkOrderService;
import com.tuoheng.common.common.BaseServiceImpl; import com.tuoheng.common.common.BaseServiceImpl;
import com.tuoheng.common.config.CommonConfig;
import com.tuoheng.common.exception.ServiceException; import com.tuoheng.common.exception.ServiceException;
import com.tuoheng.common.utils.DateUtils; import com.tuoheng.common.utils.DateUtils;
import com.tuoheng.common.utils.JsonResult; import com.tuoheng.common.utils.JsonResult;
IPage<WorkOrderQuestionVO> page = new Page<>(request.getPage(), request.getLimit()); IPage<WorkOrderQuestionVO> page = new Page<>(request.getPage(), request.getLimit());
// 查询结果 // 查询结果
IPage<WorkOrderQuestionVO> pageInfo = workOrderMapper.questionPage(page, request); IPage<WorkOrderQuestionVO> pageInfo = workOrderMapper.questionPage(page, request);
for (WorkOrderQuestionVO record : pageInfo.getRecords()) {
if(StringUtils.isNotEmpty(record.getHandlerImage())){
String[] imgHanders = record.getHandlerImage().split(",");
for (int i = 0; i < imgHanders.length; i++) {
imgHanders[i] = CommonConfig.imageURL + imgHanders[i];
}
String handerImg = StringUtils.join(imgHanders, ",");
record.setHandlerImage(handerImg);
}
}
return JsonResult.success(pageInfo); return JsonResult.success(pageInfo);
} }


QuestionHandle questionHandle = questionHandleMapper.selectOne(new LambdaQueryWrapper<QuestionHandle>() QuestionHandle questionHandle = questionHandleMapper.selectOne(new LambdaQueryWrapper<QuestionHandle>()
.eq(QuestionHandle::getQuestionId, questionId) .eq(QuestionHandle::getQuestionId, questionId)
.eq(QuestionHandle::getMark, MarkTypeEnum.VALID.getCode())); .eq(QuestionHandle::getMark, MarkTypeEnum.VALID.getCode()));
//拼接图片域名
if(null != questionHandle && StringUtils.isNotEmpty(questionHandle.getHandlerImage())){
String[] imgHanders = questionHandle.getHandlerImage().split(",");
for (int i = 0; i < imgHanders.length; i++) {
imgHanders[i] = CommonConfig.imageURL + imgHanders[i];
}
String handerImg = StringUtils.join(imgHanders, ",");
questionHandle.setHandlerImage(handerImg);
}


//查询问题处理状态 //查询问题处理状态
WorkOrderQuestion workOrderQuestion = workOrderQuestionMapper.selectOne(new LambdaQueryWrapper<WorkOrderQuestion>() WorkOrderQuestion workOrderQuestion = workOrderQuestionMapper.selectOne(new LambdaQueryWrapper<WorkOrderQuestion>()

Loading…
Cancel
Save