Browse Source

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
6e6a307035
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java

+ 4
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java View File

@@ -13,6 +13,7 @@ import com.tuoheng.common.core.config.common.CommonConfig;
import com.tuoheng.common.core.enums.ServiceExceptionEnum;
import com.tuoheng.common.core.exception.ServiceException;
import com.tuoheng.common.core.utils.CommonUtils;
import com.tuoheng.common.core.utils.DateUtils;
import com.tuoheng.common.core.utils.JsonResult;
import com.tuoheng.common.core.utils.StringUtils;
import com.tuoheng.miniprogram.dao.*;
@@ -239,11 +240,14 @@ public class InspectionFileServiceImpl implements IInspectionFileService {
if (StringUtils.isEmpty(entity.getId())) {
return JsonResult.error("问题id为空");
}

//查询当前问题
LambdaUpdateWrapper<InspectionFile> qw = new LambdaUpdateWrapper<>();
qw.eq(InspectionFile::getId, entity.getId());
qw.eq(InspectionFile::getMark, 1);
qw.set(InspectionFile::getStatus, 15);
qw.set(InspectionFile::getCheckUser, CurrentUserUtil.getUserId());
qw.set(InspectionFile::getCheckTime, DateUtils.now());
int count = inspectionFileMapper.update(entity, qw);
if (count <= 0) {
return JsonResult.error();

Loading…
Cancel
Save