CodeMapper.getCodesOf(..) orderBy 추가

master
mjkhan21 1 year ago
parent 68c494805e
commit 8482e4cd91

@ -239,7 +239,7 @@ public interface CodeMapper extends AbstractMapper {
* @return
*/
default Map<String, List<CommonCode>> getCodesOf(String... groupIDs) {
List<CommonCode> codes = getCodes(new CodeQuery().setGroupIDs(groupIDs));
List<CommonCode> codes = getCodes(new CodeQuery().setGroupIDs(groupIDs).setOrderBy("GRP_ID, SRT_ORD, CODE"));
return codes.stream().collect(Collectors.groupingBy(CommonCode::getGroupID));
}

Loading…
Cancel
Save