|
@ -23,6 +23,7 @@ import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.BeanUtils; |
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
@ -53,6 +54,22 @@ public class PatientService implements IPatientService { |
|
|
private PatientDao patientDao; |
|
|
private PatientDao patientDao; |
|
|
@Resource |
|
|
@Resource |
|
|
private InpatientMapper inpatientMapper; |
|
|
private InpatientMapper inpatientMapper; |
|
|
|
|
|
@Value("${day.one}") |
|
|
|
|
|
public int one; |
|
|
|
|
|
@Value("${day.two}") |
|
|
|
|
|
public int two; |
|
|
|
|
|
@Value("${day.oneFront}") |
|
|
|
|
|
public int oneFront; |
|
|
|
|
|
@Value("${day.oneAfter}") |
|
|
|
|
|
public int oneAfter; |
|
|
|
|
|
@Value("${day.twoAfter}") |
|
|
|
|
|
public int twoAfter; |
|
|
|
|
|
@Value("${day.three}") |
|
|
|
|
|
public int three; |
|
|
|
|
|
@Value("${day.threeFront}") |
|
|
|
|
|
public int threeFront; |
|
|
|
|
|
@Value("${day.threeAfter}") |
|
|
|
|
|
public int threeAfter; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void savePatient(PatientDto.SavePatient param, Long userId) { |
|
|
public void savePatient(PatientDto.SavePatient param, Long userId) { |
|
@ -92,14 +109,6 @@ public class PatientService implements IPatientService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//试题只需要记录3次的 9 和30 算分界限 <9 =0 ;<30 =14 ; >30 =90 记录2次的 270 算分界线 <270 算180 ,>270 算365
|
|
|
//试题只需要记录3次的 9 和30 算分界限 <9 =0 ;<30 =14 ; >30 =90 记录2次的 270 算分界线 <270 算180 ,>270 算365
|
|
|
int one=9; |
|
|
|
|
|
int two=30; |
|
|
|
|
|
int oneFront=0; |
|
|
|
|
|
int oneAfter=14; |
|
|
|
|
|
int twoAfter=90; |
|
|
|
|
|
int three=270; |
|
|
|
|
|
int threeFront=180; |
|
|
|
|
|
int threeAfter=365; |
|
|
|
|
|
//是否需要去修改基本信息表中的录入状态
|
|
|
//是否需要去修改基本信息表中的录入状态
|
|
|
Boolean update=false; |
|
|
Boolean update=false; |
|
|
//先查看这个患者的需要的记录次数,在下面的这个对照组对象中呢
|
|
|
//先查看这个患者的需要的记录次数,在下面的这个对照组对象中呢
|
|
|