石广澎
2023-11-27 aef2a705884dbb25b24d23fc886c563327f4753e
consum-base/src/main/java/com/consum/base/controller/LWhFormInventoryController.java
@@ -9,7 +9,6 @@
import com.consum.base.pojo.response.FormInventoryGoodsVO;
import com.consum.base.pojo.response.FormInventoryVO;
import com.consum.base.service.FinSysTenantUserServiceImpl;
import com.consum.base.service.LWhFormInventoryCoreService;
import com.consum.base.service.LWhFormInventoryServiceImpl;
import com.consum.model.po.FinSysTenantUser;
import com.consum.model.po.LWhFormInventory;
@@ -46,8 +45,6 @@
    private LWhFormInventoryServiceImpl lWhFormInventoryService;
    @Autowired
    private FinSysTenantUserServiceImpl finSysTenantUserService;
    @Autowired
    private LWhFormInventoryCoreService lWhFormInventoryCoreService;
    /**
@@ -193,7 +190,7 @@
            return ResponseValue.error("参数错误");
        }
        int num = this.lWhFormInventoryService.updateInventoryInfo(dto, 1);
        int num = this.lWhFormInventoryService.updateInventoryInfo(dto, 1, null, null);
        return num > 0 ? ResponseValue.success(1) : ResponseValue.error("暂存失败!");
    }
@@ -212,14 +209,11 @@
        if (dto == null) {
            return ResponseValue.error("参数错误");
        }
        int num = this.lWhFormInventoryService.updateInventoryInfo(dto, 2);
        S_user_core currentUser = this.getCurrentUser();
        FinSysTenantUser sysInfo = this.getSysInfo();
        int num = this.lWhFormInventoryService.updateInventoryInfo(dto, 2, currentUser, sysInfo);
        String inOutFormByInventoryId = lWhFormInventoryCoreService.createInOutFormByInventoryId(dto.getId(), currentUser, sysInfo);
        return num > 0 ? ResponseValue.success(1) : ResponseValue.error(inOutFormByInventoryId);
        return num > 0 ? ResponseValue.success(1) : ResponseValue.error("盘点失败!");
    }
    /**