src/main/java/com/zgn/hospital/controller/PrescdrugController.java
(完整代码) 1KBpackage com.zgn.hospital.controller;
import com.zgn.hospital.service.PrescdrugService;
import com.zgn.hospital.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @program: hospital_info
* @description:
* @author: ZGN
* @create: 2023-04-04 11:14
*/
@RestController
@RequestMapping("/prescdrug")
public class PrescdrugController {
@Autowired
PrescdrugService prescdrugService;
@PostMapping("/selectdrug/{currentPage}/{size}/{id}")
R select(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size, @PathVariable("id") int id){
return prescdrugService.selectByPage(currentPage,size,id);
}
@PostMapping("/getsum/{id}")
R getsum(@PathVariable("id") int id){
return prescdrugService.getsum(id);
}
@PostMapping("/newpresc/{prescreptionid}/{drugid}/{num}")
R newpresc(@PathVariable("prescreptionid") Integer prescid,@PathVariable("drugid") Integer drugid,@PathVariable("num") Integer num){
return prescdrugService.newpresc(prescid,drugid,num);
}
@PostMapping("/deletedrug/{id}")
R deletedrug(@PathVariable("id") Integer id){
return prescdrugService.deletedrug(id);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
