DrugController.java 839 B

123456789101112131415161718192021222324252627282930
  1. package com.rongwei.controller;
  2. import com.rongwei.bscommon.system.service.impl.DrugServiceImpl;
  3. import com.rongwei.rwcommon.base.R;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestBody;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RestController;
  9. import java.util.List;
  10. /**
  11. * DrugController class
  12. *
  13. * @author XH
  14. * @date 2025/09/17
  15. */
  16. @RestController
  17. @RequestMapping("/drug")
  18. public class DrugController {
  19. @Autowired
  20. private DrugServiceImpl drugService;
  21. @PostMapping("/inventory/update")
  22. public R inventoryQuantityUpdate(@RequestBody List<String> ids) {
  23. return drugService.inventoryQuantityUpdate(ids);
  24. }
  25. }