dev-discount
袁野 4 years ago
parent 590cbe1f46
commit 228c62c0fa
  1. 3
      hai-service/src/main/java/com/hai/service/impl/HighAgentServiceImpl.java

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

Loading…
Cancel
Save