|
|
@ -161,11 +161,12 @@ public class QcPDAController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping("/submitInspection")
|
|
|
|
@PostMapping("/submitInspection")
|
|
|
|
public R<Boolean> submitInspection(String json, List<MultipartFile> checkItemFiles) {
|
|
|
|
public R<Boolean> submitInspection(String json, List<MultipartFile> checkItemFiles) {
|
|
|
|
|
|
|
|
|
|
|
|
// 处理文件上传
|
|
|
|
|
|
|
|
List<Long> ossIds = handleFileUploads(checkItemFiles);
|
|
|
|
|
|
|
|
QcInspectionMainBo bo= JSONObject.parseObject(json, QcInspectionMainBo.class);
|
|
|
|
QcInspectionMainBo bo= JSONObject.parseObject(json, QcInspectionMainBo.class);
|
|
|
|
bo.setOssIds(ossIds);
|
|
|
|
// 处理文件上传
|
|
|
|
|
|
|
|
if(!checkItemFiles.isEmpty()){
|
|
|
|
|
|
|
|
List<Long> ossIds = handleFileUploads(checkItemFiles);
|
|
|
|
|
|
|
|
bo.setOssIds(ossIds);
|
|
|
|
|
|
|
|
}
|
|
|
|
Boolean result = qcPDAService.submitInspection(bo);
|
|
|
|
Boolean result = qcPDAService.submitInspection(bo);
|
|
|
|
if (result != null && result) {
|
|
|
|
if (result != null && result) {
|
|
|
|
return R.ok(true);
|
|
|
|
return R.ok(true);
|
|
|
|