Commit 0d66e633 by manxiaoqiang

2

parent d205ff9a
...@@ -584,15 +584,18 @@ public class TkioAccountServiceImpl implements TkioAccountService { ...@@ -584,15 +584,18 @@ public class TkioAccountServiceImpl implements TkioAccountService {
Contract contract = contractRepository.findByCode(resource.getContractCode()); Contract contract = contractRepository.findByCode(resource.getContractCode());
//增值服务 //增值服务
if(contract.getType().equals(ContractTypeEnum.INCREMENT.getKey())){ if(contract.getType().equals(ContractTypeEnum.INCREMENT.getKey())){
if(contract.getPriceLevel().longValue() == 1l){ Crowd crowd = crowdRepository.findOne(resource.getContractCode());
Crowd crowd = crowdRepository.findOne(resource.getContractCode()); if(null != crowd){
if(null != crowd){ crowd.setPayment(1);
crowd.setPayment(1); crowdRepository.save(crowd);
crowdRepository.save(crowd); }
} //人群分析
if(null == contract.getEndDate()){
contract.setStatus("end"); contract.setStatus("end");
contractRepository.save(contract); contractRepository.save(contract);
} }
}else{//基础套餐 }else{//基础套餐
Account account = accountRepository.findByEmail(resource.getEmail()); Account account = accountRepository.findByEmail(resource.getEmail());
PressMoney press = pressMoneyRepository.findOnePress("tkio",account.getId()); PressMoney press = pressMoneyRepository.findOnePress("tkio",account.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment