Browse Source

修改配置

recovery
wang1007152140 4 years ago
parent
commit
33414c28de
  1. 25
      tcm/src/main/java/com/ccsens/tcm/service/PatientService.java
  2. 11
      tcm/src/main/resources/application-dev.yml
  3. 11
      tcm/src/main/resources/application-prod.yml
  4. 9
      tcm/src/main/resources/application-test.yml

25
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 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;
//先查看这个患者的需要的记录次数,在下面的这个对照组对象中呢 //先查看这个患者的需要的记录次数,在下面的这个对照组对象中呢

11
tcm/src/main/resources/application-dev.yml

@ -34,4 +34,13 @@ file:
imgDomain: https://test.tall.wiki/gateway/tcm/uploads/ imgDomain: https://test.tall.wiki/gateway/tcm/uploads/
#gameMqName: game_status_wisdom #gameMqName: game_status_wisdom
logging: logging:
path: path:
day:
one: 9
two: 30
oneFront: 0
oneAfter: 14
twoAfter: 90
three: 270
threeFront: 180
threeAfter: 365

11
tcm/src/main/resources/application-prod.yml

@ -37,4 +37,13 @@ file:
path: /home/cloud/tcm/uploads/ path: /home/cloud/tcm/uploads/
signUpUrl: https://www.tall.wiki/compete/ signUpUrl: https://www.tall.wiki/compete/
domain: https://www.tall.wiki/gateway/tcm/ domain: https://www.tall.wiki/gateway/tcm/
imgDomain: https://www.tall.wiki/gateway/tcm/uploads/ 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

9
tcm/src/main/resources/application-test.yml

@ -33,3 +33,12 @@ file:
path: /home/cloud/tcm/uploads/ path: /home/cloud/tcm/uploads/
domain: https://test.tall.wiki/gateway/tcm/ domain: https://test.tall.wiki/gateway/tcm/
imgDomain: https://test.tall.wiki/gateway/tcm/uploads/ 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

Loading…
Cancel
Save