Browse Source

그룹관리 - 사용자 관리 조회시 승인된 사용자만 표출

feature/auth
junh_eee(이준희) 2 years ago
parent
commit
d3fdd9c747
  1. 4
      src/main/java/com/palnet/biz/api/bas/group/controller/BasGroupUserController.java
  2. 1
      src/main/java/com/palnet/biz/api/bas/group/service/BasGroupUserService.java
  3. 1
      src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java

4
src/main/java/com/palnet/biz/api/bas/group/controller/BasGroupUserController.java

@ -30,6 +30,7 @@ import com.palnet.biz.api.comn.response.BasicResponse;
import com.palnet.biz.api.comn.response.ErrorResponse;
import com.palnet.biz.api.comn.response.SuccessResponse;
import com.palnet.comn.code.RSErrorCode;
import com.palnet.comn.exception.CustomException;
import com.palnet.comn.utils.JsonUtils;
import lombok.RequiredArgsConstructor;
@ -95,6 +96,9 @@ public class BasGroupUserController {
try {
boolean result = service.delegate(rq);
resultMap.put("result", result);
} catch (CustomException e) {
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR)
.body(new ErrorResponse(e.getMessage(), e.getErrorCode()));
} catch (Exception e) {
log.error("IGNORE : {}", e);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR)

1
src/main/java/com/palnet/biz/api/bas/group/service/BasGroupUserService.java

@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.palnet.biz.api.anls.hstry.model.AnlsHstryModel;
import com.palnet.biz.api.anls.hstry.model.AnlsHstryRqModel;

1
src/main/java/com/palnet/biz/jpa/repository/pty/PtyGroupQueryRepository.java

@ -309,6 +309,7 @@ public class PtyGroupQueryRepository{
builder.and(bas.useYn.eq("Y"));
builder.and(dtl.joinYn.eq("Y"));
builder.and(dtl.aprvlYn.eq("Y"));
if(!StringUtils.isEmpty(rq.getGroupNm())) {

Loading…
Cancel
Save