공통코드 중복체크,등록,수정,순서저장 API 커밋
This commit is contained in:
@@ -44,8 +44,8 @@ public class CommonCodeService {
|
||||
* @return 생성된 코드 id
|
||||
*/
|
||||
@Transactional
|
||||
public Long save(AddReq req) {
|
||||
return commonCodeCoreService.save(req).getId();
|
||||
public ApiResponseDto.ResponseObj save(AddReq req) {
|
||||
return commonCodeCoreService.save(req);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,8 +55,8 @@ public class CommonCodeService {
|
||||
* @param req 수정요청 정보
|
||||
*/
|
||||
@Transactional
|
||||
public void update(Long id, ModifyReq req) {
|
||||
commonCodeCoreService.update(id, req);
|
||||
public ApiResponseDto.ResponseObj update(Long id, ModifyReq req) {
|
||||
return commonCodeCoreService.update(id, req);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,8 +75,8 @@ public class CommonCodeService {
|
||||
* @param req id, order 정보를 가진 List
|
||||
*/
|
||||
@Transactional
|
||||
public void updateOrder(OrderReq req) {
|
||||
commonCodeCoreService.updateOrder(req);
|
||||
public ApiResponseDto.ResponseObj updateOrder(OrderReq req) {
|
||||
return commonCodeCoreService.updateOrder(req);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,4 +88,15 @@ public class CommonCodeService {
|
||||
public List<Basic> findByCode(String code) {
|
||||
return commonCodeCoreService.findByCode(code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 중복 체크
|
||||
*
|
||||
* @param parentId
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseDto.ResponseObj getCodeCheckDuplicate(Long parentId, String code) {
|
||||
return commonCodeCoreService.getCodeCheckDuplicate(parentId, code);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user