src/main/java/com/web/controller/PrescriptionController.java
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.web.controller;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.web.entity.Medicalrecord;
import com.web.entity.Prescription;
import com.web.service.PrescriptionService;
@Controller
@RequestMapping("/prescription")
public class PrescriptionController {
@Resource
PrescriptionService prescriptionService;
@RequestMapping("/queryPrescription")
@ResponseBody
public List<Prescription> getAllPrescription(){
List<Prescription> list = prescriptionService.getPrescription();
return list;
}
@RequestMapping("/addPrescription")
@ResponseBody
public Integer addPrescription(Prescription Prescription) {
Integer m= prescriptionService.addPrescription(Prescription);
return m;
}
@RequestMapping("/getById")
@ResponseBody
public Prescription getById(Integer pid) {
Prescription prescription = prescriptionService.getPrescriptionById(pid);
return prescription;
}
@RequestMapping("/saveUpdatePrescription")
@ResponseBody
public Integer saveUpdatePrescription(Prescription prescriptionnumber) {
return prescriptionService.updatePrescriptionByNumber(prescriptionnumber);
}
后面还有 34 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
