资源简介

东北大学web课设作业,
使用SSM框架实现,包含了所有功能,得分90+,spring、springmvc、MyBatis

资源截图

代码片段和文件信息

package com.javen.controller;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.javen.model.drug;
import com.javen.model.medicalrecord;
import com.javen.model.prescription;
import com.javen.model.template;
import com.javen.model.templatedetail;
import com.javen.service.IDiagnosisService;

@Controller
@RequestMapping(value=“/his/DoctorVisit“)
public class DoctorRecordController {
@Resource  
@Autowired
private IDiagnosisService diagnosisService;




    //提交看诊信息
@RequestMapping(value=“/kanzhen“)
@ResponseBody
    public Map Commit(@RequestBody medicalrecord amedicalrecord) {


Map  map = new HashMap();
     int result =this.diagnosisService.AddResult(amedicalrecord);
     if(result==1) {
    
     map.put(“result“ “success“);
     }else {
     map.put(“result“ “fail“);
}
     //更改就诊状态
     this.diagnosisService.updatestaus(amedicalrecord.getRegistrationid());
    
        return map;
    }
    
    
    //获取看诊信息
@RequestMapping(value=“/Record/{medicalrecordid}“)
@ResponseBody
   public medicalrecord Record(@PathVariable String medicalrecordid) {
medicalrecord aMedicalrecord = this.diagnosisService.getRecord(medicalrecordid);


return aMedicalrecord;
    }

    //获取模板名称
@RequestMapping(value=“/template/{templatename}“)
@ResponseBody
   public List