|
|
|
@ -241,11 +241,13 @@ public class PlatformService {
|
|
|
|
|
|
|
|
|
|
//更新当前客户关联数据的所有key
|
|
|
|
|
List<UnitMaintainPlatform> list = unitMaintainPlatformDao.selectByCustomerId(unitMaintainPlatform.getCustomerId());
|
|
|
|
|
for (UnitMaintainPlatform maintainPlatform : list) {
|
|
|
|
|
maintainPlatform.setAppid(unitMaintainPlatform.getAppid());
|
|
|
|
|
maintainPlatform.setApiKey(unitMaintainPlatform.getApiKey());
|
|
|
|
|
maintainPlatform.setSecretKey(unitMaintainPlatform.getSecretKey());
|
|
|
|
|
unitMaintainPlatformDao.updateById(maintainPlatform);
|
|
|
|
|
if (CollUtil.isNotEmpty(list)) {
|
|
|
|
|
for (UnitMaintainPlatform maintainPlatform : list) {
|
|
|
|
|
maintainPlatform.setAppid(unitMaintainPlatform.getAppid());
|
|
|
|
|
maintainPlatform.setApiKey(unitMaintainPlatform.getApiKey());
|
|
|
|
|
maintainPlatform.setSecretKey(unitMaintainPlatform.getSecretKey());
|
|
|
|
|
unitMaintainPlatformDao.updateById(maintainPlatform);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|