src/main/java/com/web/controller/OperationController.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.web.controller;

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.Operation;
import com.web.entity.OperationExample;
import com.web.service.HospitalizationadviceService;
import com.web.service.InpatientService;
import com.web.service.OperationService;

@Controller
public class OperationController {
	
	@Resource
	InpatientService inpatientService;
	
	@Resource
	HospitalizationadviceService hospitalizationadviceService;
	
	@Resource(name="operationServiceImpl")
	OperationService os;
	
	@Resource
	OperationService operationService;
	
	@RequestMapping("/queryOperation")
	@ResponseBody
	public List<Operation> queryAllOperation(){
		
		OperationExample oe = new OperationExample();
		
		return operationService.queryAllOperation(oe);
	}
	
	@RequestMapping("/queryPatientUserRoom")
	@ResponseBody
	public List<Operation> queryPatientUserRoom(){
		
		return operationService.queryPatientUserRoom();
	}
	
	@RequestMapping("/updateOperation")
	@ResponseBody
	public Operation sendUpdateOperation(Integer oid) {
		
		Operation operation = os.selectByPrimaryKey(oid);
		
		return operation;
	}
	
	@RequestMapping("/saveOperation")
	@ResponseBody
	public Integer saveUpdateOperation(Operation operation) {
		
后面还有 19 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。