Commit 6aeae1ec by 阮思源

营销活动整体优化

parent f3d83178
...@@ -931,7 +931,9 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz { ...@@ -931,7 +931,9 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
paramMap.put("bookId", bookAndChannelDTO.getBookId()); paramMap.put("bookId", bookAndChannelDTO.getBookId());
paramMap.put("channelId", bookAndChannelDTO.getChannelId()); paramMap.put("channelId", bookAndChannelDTO.getChannelId());
AdvertisingAdviserPermission permission = (AdvertisingAdviserPermission) advertisingAdviserPermissionDao.getBy(paramMap, "getByAdviserId"); AdvertisingAdviserPermission permission = (AdvertisingAdviserPermission) advertisingAdviserPermissionDao.getBy(paramMap, "getByAdviserId");
if (null != permission) { if (null == permission) {
advertisingAdviserPermissionDao.insert(adviserPermission);
} else {
adviserPermission.setId(permission.getId()); adviserPermission.setId(permission.getId());
advertisingAdviserPermissionDao.update(adviserPermission); advertisingAdviserPermissionDao.update(adviserPermission);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment