package com.rongwei.controller; import com.rongwei.bscommon.system.service.impl.DrugServiceImpl; import com.rongwei.rwcommon.base.R; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * DrugController class * * @author XH * @date 2025/09/17 */ @RestController @RequestMapping("/drug") public class DrugController { @Autowired private DrugServiceImpl drugService; @PostMapping("/inventory/update") public R inventoryQuantityUpdate(@RequestBody List ids) { return drugService.inventoryQuantityUpdate(ids); } }