供应商无法在这里切换仓库

dev2.0
anthonywj 2 years ago
parent 895994ec41
commit 1c8f6cbeb6

@ -25,6 +25,7 @@ import com.glxp.api.res.basic.BasicBussinessTypeResponse;
import com.glxp.api.service.auth.*;
import com.glxp.api.service.basic.IBasicBussinessTypeService;
import com.glxp.api.service.system.SystemParamConfigService;
import com.glxp.api.util.IntUtil;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@ -84,13 +85,11 @@ public class InvWarehouseController extends BaseController {
if (authAdmin.getCustomerId().equals("110")) {
filterInvWarehouseRequest.setUserId(authAdmin.getId());
} else {
if (filterInvWarehouseRequest.getType() == 1) {
if (IntUtil.value(filterInvWarehouseRequest.getType()) == 1) {
filterInvWarehouseRequest.setSpUse(true);
}
filterInvWarehouseRequest.setUserId(null);
}
if (StrUtil.isEmpty(filterInvWarehouseRequest.getDeptCode())) {
return ResultVOUtils.error(500, "部门不能为空");
}

Loading…
Cancel
Save