|
|
@ -15,6 +15,7 @@ import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
import com.glxp.api.service.auth.DeptService;
|
|
|
|
import com.glxp.api.service.auth.DeptService;
|
|
|
|
|
|
|
|
import com.glxp.api.service.auth.InvWarehouseService;
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@ -33,6 +34,10 @@ public class DeptController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
SystemParamConfigService systemParamConfigService;
|
|
|
|
SystemParamConfigService systemParamConfigService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
InvWarehouseService invWarehouseService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@GetMapping("spms/inv/warehouse/filter")
|
|
|
|
@GetMapping("spms/inv/warehouse/filter")
|
|
|
@ -282,5 +287,15 @@ public class DeptController {
|
|
|
|
return ResultVOUtils.success("禁用成功!");
|
|
|
|
return ResultVOUtils.success("禁用成功!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@PostMapping("/spms/inv/warehouse/selectByCode")
|
|
|
|
|
|
|
|
public BaseResponse selectByCode(@RequestBody DeptEntity request) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (request == null) {
|
|
|
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
String byCode = invWarehouseService.selectParentIdByCode(request.getCode());
|
|
|
|
|
|
|
|
return ResultVOUtils.success(byCode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|