|
|
@@ -54,20 +54,13 @@ public class ResubmitInspectionService { |
|
|
|
*/ |
|
|
|
public JsonResult resubmit(EditInspectionRequest request) { |
|
|
|
log.info("进入重新提交任务业务"); |
|
|
|
String userId = CurrentUserUtil.getUserId(); |
|
|
|
String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
User user = CurrentUserUtil.getUserInfo(); |
|
|
|
String tenantId = user.getTenantId(); |
|
|
|
JsonResult result = this.checkParam(tenantId, request); |
|
|
|
if (0 != result.getCode()) { |
|
|
|
log.info("重新提交任务业务:校验参数失败:{}", result.getMsg()); |
|
|
|
return result; |
|
|
|
} |
|
|
|
User user = userMapper.selectOne(new LambdaQueryWrapper<User>() |
|
|
|
.eq(User::getTenantId, tenantId) |
|
|
|
.eq(User::getId, userId) |
|
|
|
.eq(User::getMark, 1)); |
|
|
|
if (null == user) { |
|
|
|
return JsonResult.error(ResubmitInspectionCodeEnum.USER_IS_NOT_EXIST.getCode(), ResubmitInspectionCodeEnum.USER_IS_NOT_EXIST.getMsg()); |
|
|
|
} |
|
|
|
// 构造inspection对象 |
|
|
|
result = this.buildInspection(user, tenantId, request); |
|
|
|
if (0 != result.getCode()) { |