Commit 751be2c8 by 田超

Merge branch 'fixbug/fixdefaultrights' into 'master'

bug: [none] fixdefaultrights

See merge request rays/pcloud-book!1152
parents 6ace65c5 f8649eec
......@@ -2319,6 +2319,10 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
}
}
if (null == dto) {
Long defaultRightsSettingId = bookBiz.getDefaultRightsSettingId();
dto = rightsSettingDAO.getDTOById(defaultRightsSettingId);
}
return dto;
}
......@@ -3344,7 +3348,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
rightsSettingDto = getByLabel(adviserDto.getTempletId(), adviserDto.getSecondTempletId(), adviserDto.getGraLabelId(),
adviserDto.getSubLabelId(), adviserDto.getVolLabelId(), adviserDto.getVerLabelId(), adviserDto.getThirdTempletId());
if (null == rightsSettingDto) {
RightsSettingDto rightsSettingDto4New = rightsSettingDAO.getDTOById(2267L);
RightsSettingDto rightsSettingDto4New = rightsSettingDAO.getDTOById(bookBiz.getDefaultRightsSettingId());
return rightsSettingDto4New;
}
Long rightsSettingId = rightsSettingDto.getId();
......
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