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

master
x_z 2 years ago
parent 18a2f002a7
commit 96635bb435

@ -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);
}
}
}

Loading…
Cancel
Save