diff --git a/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java b/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java index c9c7586c..911ea3a3 100644 --- a/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java +++ b/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java @@ -23,6 +23,7 @@ import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; @@ -53,6 +54,22 @@ public class PatientService implements IPatientService { private PatientDao patientDao; @Resource 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 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 - 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; //先查看这个患者的需要的记录次数,在下面的这个对照组对象中呢 diff --git a/tcm/src/main/resources/application-dev.yml b/tcm/src/main/resources/application-dev.yml index 06f2e23e..dd22ee3d 100644 --- a/tcm/src/main/resources/application-dev.yml +++ b/tcm/src/main/resources/application-dev.yml @@ -34,4 +34,13 @@ file: imgDomain: https://test.tall.wiki/gateway/tcm/uploads/ #gameMqName: game_status_wisdom logging: - path: \ No newline at end of file + path: +day: + one: 9 + two: 30 + oneFront: 0 + oneAfter: 14 + twoAfter: 90 + three: 270 + threeFront: 180 + threeAfter: 365 \ No newline at end of file diff --git a/tcm/src/main/resources/application-prod.yml b/tcm/src/main/resources/application-prod.yml index 46906293..8029e69d 100644 --- a/tcm/src/main/resources/application-prod.yml +++ b/tcm/src/main/resources/application-prod.yml @@ -37,4 +37,13 @@ file: path: /home/cloud/tcm/uploads/ signUpUrl: https://www.tall.wiki/compete/ domain: https://www.tall.wiki/gateway/tcm/ - imgDomain: https://www.tall.wiki/gateway/tcm/uploads/ \ No newline at end of file + imgDomain: https://www.tall.wiki/gateway/tcm/uploads/ +day: + one: 9 + two: 30 + oneFront: 0 + oneAfter: 14 + twoAfter: 90 + three: 270 + threeFront: 180 + threeAfter: 365 \ No newline at end of file diff --git a/tcm/src/main/resources/application-test.yml b/tcm/src/main/resources/application-test.yml index 075e57cb..92d2cc05 100644 --- a/tcm/src/main/resources/application-test.yml +++ b/tcm/src/main/resources/application-test.yml @@ -33,3 +33,12 @@ file: path: /home/cloud/tcm/uploads/ domain: https://test.tall.wiki/gateway/tcm/ imgDomain: https://test.tall.wiki/gateway/tcm/uploads/ +day: + one: 9 + two: 30 + oneFront: 0 + oneAfter: 14 + twoAfter: 90 + three: 270 + threeFront: 180 + threeAfter: 365