|
|
@ -72,9 +72,10 @@ public class HighAgentServiceImpl implements HighAgentService { |
|
|
|
highAgentMapper.updateByPrimaryKey(highAgentModel); |
|
|
|
highAgentMapper.updateByPrimaryKey(highAgentModel); |
|
|
|
// 查询主账号
|
|
|
|
// 查询主账号
|
|
|
|
SecUser mainAccount = secUserService.getMainAccount(4, highAgentModel.getId()); |
|
|
|
SecUser mainAccount = secUserService.getMainAccount(4, highAgentModel.getId()); |
|
|
|
|
|
|
|
|
|
|
|
if (mainAccount != null) { |
|
|
|
if (mainAccount != null) { |
|
|
|
String userPass = MD5Util.encode(highAgentModel.getSecUser().getPassword().getBytes()); |
|
|
|
if (!mainAccount.getPassword().equals(highAgentModel.getSecUser().getPassword())) { |
|
|
|
if (!mainAccount.getPassword().equals(userPass)) { |
|
|
|
String userPass = MD5Util.encode(highAgentModel.getSecUser().getPassword().getBytes()); |
|
|
|
mainAccount.setPassword(userPass); |
|
|
|
mainAccount.setPassword(userPass); |
|
|
|
} |
|
|
|
} |
|
|
|
if (highAgentModel.getStatus() == 0) { |
|
|
|
if (highAgentModel.getStatus() == 0) { |
|
|
|