|
|
|
@ -1,18 +1,22 @@
|
|
|
|
|
package org.dromara.api.controller;
|
|
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.dromara.api.domain.QcTaskInfo;
|
|
|
|
|
import org.dromara.api.service.IPdaApiService;
|
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.pda.api.model.BaseMaterial;
|
|
|
|
|
import org.dromara.pda.api.model.vo.RemoteDefectVo;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -27,7 +31,7 @@ import java.util.List;
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/pdaApi")
|
|
|
|
|
public class PdaApiController {
|
|
|
|
|
public class PdaApiController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private final IPdaApiService iPdaApiService;
|
|
|
|
@ -51,8 +55,8 @@ public class PdaApiController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getDefectDetail")
|
|
|
|
|
public R< List<RemoteDefectVo>> getDefectDetail(@NotBlank(message = "{defect.type.not.blank}") String defectType) {
|
|
|
|
|
List<RemoteDefectVo> defectDetail = iPdaApiService.getDefectDetail(defectType);
|
|
|
|
|
public R< List<RemoteDefectVo>> getDefectDetail(@NotBlank(message = "{defect.operation.not.blank}") String operationCode) {
|
|
|
|
|
List<RemoteDefectVo> defectDetail = iPdaApiService.getDefectDetail(operationCode);
|
|
|
|
|
if (defectDetail == null) {
|
|
|
|
|
return R.fail();
|
|
|
|
|
}
|
|
|
|
|