DiagnoseMapsTest.java 1.24 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
package test.hospital.diagnose;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.lyms.base.common.entity.conf.DiagnoseMaps;
import com.lyms.base.common.service.conf.DiagnoseMapsService;
import com.lyms.hospital.service.diagnose.DiagnoseInfoService;
import com.lyms.util.StrUtils;

import test.hospital.BaseServiceTest;

public class DiagnoseMapsTest extends BaseServiceTest{

@Autowired
private DiagnoseMapsService diagnoseMapsService;
@Autowired
private DiagnoseInfoService diagnoseInfoService;
/**
* <li>@Description:根据诊断id获取所有诊断项
* <li>
* <li>创建人:方承
* <li>创建时间:2017年3月29日
* <li>修改人:
* <li>修改时间:
*/
@Test
public void selectByDiagnoseId(){
outJson(diagnoseMapsService.selectByDiagnoseId("1"));
}
@Test
public void insert(){
DiagnoseMaps entity = new DiagnoseMaps();
entity.setId(StrUtils.uuid());
entity.setDiagnoseId("1");
entity.setSourceId("123");
diagnoseMapsService.insert(entity);
}
@Test
public void getLastHighrisk(){
outJson(diagnoseInfoService.getLastHighrisk("1"));
}
}