3254194295 11 miesięcy temu
rodzic
commit
c8af4aa713

+ 1 - 1
platform-rest/src/main/java/com/platform/rest/controller/sb/SbInfoController.java

@@ -67,7 +67,7 @@ public class SbInfoController {
     @SysLog("仪表批量退库")
     @PutMapping("/yiBiao/batch/back-store")
     //@PreAuthorize("@pms.hasPermission('sb-infos-edit')")
-    public R yiBiaoBatchBackStore(SbInfoDTO sbInfoDTO) {
+    public R yiBiaoBatchBackStore(@RequestBody SbInfoDTO sbInfoDTO) {
         sbInfoService.yiBiaoBatchBackStore(sbInfoDTO);
         return new R<>();
     }

+ 1 - 1
platform-service/src/main/java/com/platform/service/sb/impl/SbInfoServiceImpl.java

@@ -151,7 +151,7 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
             sbInfoDTO.getSbIds().forEach(item->{
                 udpSb.setId(item);
                 udpSb.setPositionId("658d2817a6cf000dacd41698");
-//                udpSb.setStatus(SbInfoStatusEnum.IN_BACK.getValue());
+                udpSb.setStatus(sbInfoDTO.getStatus());
                 if (sbInfoDTO.getStatus() == SbInfoStatusEnum.SCRAPED.getValue()) {
                     udpSb.setScrapedDate(LocalDateTime.now());
                 }