Commit dfaec2dc by manxiaoqiang

app排序

parent b985f602
......@@ -172,7 +172,7 @@ public class ContractServiceImpl implements ContractService{
contractChangeRepository.save(cc);
//同步修改trackingio的数据
if(resource.getPlatform().equals("tkio")){
if(contract.getPlatform().equals("tkio")){
accountService.update(contract);
}
return contractRepository.save(contract);
......
......@@ -171,6 +171,9 @@ public class TkioAccountServiceImpl implements TkioAccountService {
}
}
Account4Web aw = account4WebRepository.findByEmail(email);
if(null == aw){
return null;
}
List<BackVisit> backVisitList = backVisitRepository.findAllByPlatformAndEmail("tkio", email);
if(ValidateUtil.isValid(backVisitList)){
aw.setBackTime(backVisitList.size());
......
......@@ -115,6 +115,9 @@ public class TrackAccountServiceImpl implements TrackAccountService{
}
}
TrackAccount4Web aw = trackAccount4WebRepository.findByEmail(email);
if(null == aw){
return null;
}
List<BackVisit> backVisitList = backVisitRepository.findAllByPlatformAndEmail("track", email);
if(ValidateUtil.isValid(backVisitList)){
aw.setBackTime(backVisitList.size());
......
......@@ -10,7 +10,7 @@ public enum ResultStatus {
NUMBER_LIMIT(-300, "超过限定值,无法添加"),
NETWORK_ERROR(404, "网络异常"),
PARAM_INVALID(-1000, "参数错误"),
USERNAME_OR_PASSWORD_ERROR(-1001, "用户名或密码错误"),
USER_EMPTY(-1001, "用户不存在"),
USERNAME_LOGIN_EXPIRE(-1002, "用户登陆失效"),
SUB_ACCOUNT_DISABLE(-1003, "子帐号已禁用"),
ORIGINAL_ACCOUNT_DISABLE(-1004, "主体帐号已禁用"),
......
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