src/main/java/com/web/controller/IcuController.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.Icu;
import com.web.service.IcuService;

@Controller
@RequestMapping("/icu")
public class IcuController {

	@Resource
	IcuService icuService;

	@RequestMapping("/addIcu")
	@ResponseBody
	public Integer addIcu(Icu icu) {

		// 二次封装数据
		icu.setIsdelete(0);
		icu.setUnhealedrate(Double.parseDouble("100"));
		icu.setMortality(Double.parseDouble("100"));
		icu.setDiagnosticcoincidence("符合");
		icu.setBedutilizationrate(Double.parseDouble("100"));

		return icuService.addIcu(icu);
	}

	@RequestMapping("/deleteById")
	@ResponseBody
	public Integer deleteById(Icu icu) {
		icu.setIsdelete(1);
		return icuService.deleteById(icu);
	}

	@RequestMapping("/updateIcuById")
	@ResponseBody
	public Integer updateIcuById(Icu icu) {

		return icuService.updateIcu(icu);
	}

	@RequestMapping("/queryIcu")
	@ResponseBody
	public List<Icu> queryIcu() {

		return icuService.getAllIcu();
	}

	@RequestMapping("/getIcuById")
	@ResponseBody
	public Icu getIcuById(Integer icuid) {

		return icuService.getIcuById(icuid);
后面还有 3 行代码,购买后查看完整代码

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

AI 解读

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

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