|
|
@ -22,6 +22,7 @@ import org.springframework.web.servlet.ModelAndView; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.concurrent.atomic.AtomicBoolean; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
@ -138,6 +139,28 @@ public class ReviewRecordController extends BaseController<ReviewRecordService, |
|
|
|
return Result.of(result, result); |
|
|
|
return Result.of(result, result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 数据资源批量提交审核 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param ids 主键 |
|
|
|
|
|
|
|
* @param status 要变更的审核状态 |
|
|
|
|
|
|
|
* @param opinion 审核意见 |
|
|
|
|
|
|
|
* @param sendNotice 是否发送通知 |
|
|
|
|
|
|
|
* @return 请求结果 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@PostMapping("/metadata/batch/change") |
|
|
|
|
|
|
|
public Result<Object> metadatabatchSubmit(String ids, String status, String opinion, boolean sendNotice) { |
|
|
|
|
|
|
|
if (StringUtils.isBlankAny(ids, status)) { |
|
|
|
|
|
|
|
return Result.of(null, false, "参数错误"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ReviewStatus reviewStatus = ReviewStatus.valueOf(status); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Arrays.stream(ids.split(",")).forEach(id -> { |
|
|
|
|
|
|
|
reviewRecordService.metadataReview(id, reviewStatus, opinion, sendNotice); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return Result.of(true, true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 资源目录提交审核 |
|
|
|
* 资源目录提交审核 |
|
|
|
* |
|
|
|
* |
|
|
|