1.批量更新医院客户关联关系

master
x_z 2 years ago
parent 18a2f002a7
commit 96635bb435

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

Loading…
Cancel
Save