|
|
@@ -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(); |