|
|
@@ -248,6 +248,7 @@ public class FsPatientBaseInfoServiceImpl extends ServiceImpl<FsPatientBaseInfoM
|
|
|
//红包配置信息
|
|
|
BigDecimal amount = new BigDecimal("0.1");
|
|
|
boolean openFlag = false;
|
|
|
+ Long redSecond = 0L;
|
|
|
String json = getProjectRedPacketConfig();
|
|
|
if(StringUtils.isNotEmpty(json)) {
|
|
|
try {
|
|
|
@@ -257,13 +258,16 @@ public class FsPatientBaseInfoServiceImpl extends ServiceImpl<FsPatientBaseInfoM
|
|
|
openFlag = true;
|
|
|
}
|
|
|
amount = jsonObject.getBigDecimal("amount");
|
|
|
+ redSecond = jsonObject.getLong("redSecond");
|
|
|
} catch (Exception e) {
|
|
|
log.error("解析理疗红包配置失败, json={}", json, e);
|
|
|
amount = new BigDecimal("0.1");
|
|
|
+ redSecond = 0L;
|
|
|
}
|
|
|
}
|
|
|
patientBaseInfoVO.setAmount(amount);
|
|
|
patientBaseInfoVO.setOpenFlag(openFlag);
|
|
|
+ patientBaseInfoVO.setRedSecond(redSecond);
|
|
|
return R.ok().put("data", patientBaseInfoVO);
|
|
|
}
|
|
|
|
|
|
@@ -375,6 +379,14 @@ public class FsPatientBaseInfoServiceImpl extends ServiceImpl<FsPatientBaseInfoM
|
|
|
return sendProjectRedPacket(param,user,companyUser);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public int reject(FsPatientBaseInfo param) {
|
|
|
+ FsPatientBaseInfo map = new FsPatientBaseInfo();
|
|
|
+ map.setId(param.getId());
|
|
|
+ map.setDoctorStatus(0);
|
|
|
+ return fsPatientBaseInfoMapper.updateFsPatientBaseInfo(map);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private R sendProjectRedPacket(FsProjectSendRewardUParam param,FsUser user,CompanyUser companyUser){
|
|
|
//默认0.1红包数据
|