|
|
@ -1,10 +1,9 @@
|
|
|
|
package com.xit.biz.ctgy.controller;
|
|
|
|
package com.xit.biz.ctgy.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.dto.MinSimsa680Dto;
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.dto.MinSimsa680GroupDto;
|
|
|
|
import com.xit.biz.ctgy.dto.MinSimsa680GroupDto;
|
|
|
|
import com.xit.biz.ctgy.dto.struct.MinSimsa680GroupMapstruct;
|
|
|
|
import com.xit.biz.ctgy.dto.struct.MinSimsa680GroupMapstruct;
|
|
|
|
import com.xit.biz.ctgy.dto.struct.MinSimsa680Mapstruct;
|
|
|
|
import com.xit.biz.ctgy.dto.struct.MinSimsa680Mapstruct;
|
|
|
|
import com.xit.biz.ctgy.service.IMinSimsa680Service;
|
|
|
|
import com.xit.biz.ctgy.service.IParkingService;
|
|
|
|
import com.xit.core.api.IRestResponse;
|
|
|
|
import com.xit.core.api.IRestResponse;
|
|
|
|
import com.xit.core.api.RestResponse;
|
|
|
|
import com.xit.core.api.RestResponse;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@ -17,7 +16,6 @@ import org.mapstruct.factory.Mappers;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@ -25,19 +23,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
|
|
|
|
|
|
|
@Tag(name = "MinCivBoard680Controller", description = "게시글 관리")
|
|
|
|
@Tag(name = "ParkingController", description = "주정차의견진술")
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/api/v1/ctgy/simsa")
|
|
|
|
@RequestMapping("/api/v1/ctgy/parking")
|
|
|
|
@Validated
|
|
|
|
@Validated
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
public class MinSimsa680Controller {
|
|
|
|
public class ParkingController {
|
|
|
|
|
|
|
|
|
|
|
|
private final IMinSimsa680Service service;
|
|
|
|
private final IParkingService service;
|
|
|
|
|
|
|
|
|
|
|
|
private final MinSimsa680Mapstruct mapstruct = Mappers.getMapper(MinSimsa680Mapstruct.class);
|
|
|
|
private final MinSimsa680Mapstruct mapstruct = Mappers.getMapper(MinSimsa680Mapstruct.class);
|
|
|
|
private final MinSimsa680GroupMapstruct groupMapstruct = Mappers.getMapper(MinSimsa680GroupMapstruct.class);
|
|
|
|
private final MinSimsa680GroupMapstruct groupMapstruct = Mappers.getMapper(MinSimsa680GroupMapstruct.class);
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "심사(대상) 목록 조회" , description = "심사(대상) 목록 조회")
|
|
|
|
@Operation(summary = "주정차의견진술심의목록" , description = "주정차의견진술심의목록")
|
|
|
|
@Parameters({
|
|
|
|
@Parameters({
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msYear", description = "심사년도", required = true, example = "2021"),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msYear", description = "심사년도", required = true, example = "2021"),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msChasu", description = "차수", required = false, example = " "),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msChasu", description = "차수", required = false, example = " "),
|
|
|
@ -45,17 +43,17 @@ public class MinSimsa680Controller {
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10")
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10")
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@GetMapping(value="review", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ResponseEntity<? extends IRestResponse> findMinSimsa680Groups(
|
|
|
|
public ResponseEntity<? extends IRestResponse> findSimsas(
|
|
|
|
@Valid
|
|
|
|
@Valid
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
final MinSimsa680GroupDto dto,
|
|
|
|
final MinSimsa680GroupDto dto,
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
final Pageable pageable) {
|
|
|
|
final Pageable pageable) {
|
|
|
|
return RestResponse.of(service.findGroups(dto, pageable));
|
|
|
|
return RestResponse.of(service.findSimsas(dto, pageable));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "심사(대상) 상세 조회" , description = "심사(대상) 상세 조회")
|
|
|
|
@Operation(summary = "주정차의견진술심의목록-상세" , description = "주정차의견진술심의목록-상세")
|
|
|
|
@Parameters({
|
|
|
|
@Parameters({
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msSdate", description = "심사시작일", required = true, example = "2021-01-04"),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msSdate", description = "심사시작일", required = true, example = "2021-01-04"),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msEdate", description = "심사종료일", required = true, example = "2021-01-05"),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msEdate", description = "심사종료일", required = true, example = "2021-01-05"),
|
|
|
@ -63,27 +61,27 @@ public class MinSimsa680Controller {
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msuTeam", description = "팀코드", required = true, example = "002")
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "msuTeam", description = "팀코드", required = true, example = "002")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@GetMapping(value="details", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@GetMapping(value="details", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ResponseEntity<? extends IRestResponse> findMinSimsa680Details(
|
|
|
|
public ResponseEntity<? extends IRestResponse> findSimsaDetails(
|
|
|
|
@Valid
|
|
|
|
@Valid
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
final MinSimsa680GroupDto dto) {
|
|
|
|
final MinSimsa680GroupDto dto) {
|
|
|
|
return RestResponse.of(service.findDetails(dto));
|
|
|
|
return RestResponse.of(service.findSimsaDetails(dto));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TODO :: 파라메터 정의 필요
|
|
|
|
// TODO :: 파라메터 정의 필요
|
|
|
|
@Operation(summary = "심사(대상)자 조회" , description = "심사(대상)자 조회")
|
|
|
|
// @Operation(summary = "심사(대상)자 조회" , description = "심사(대상)자 조회")
|
|
|
|
@Parameters({
|
|
|
|
// @Parameters({
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "page", description = "페이지", required = true, example = "0"),
|
|
|
|
// @Parameter(in = ParameterIn.QUERY, name = "page", description = "페이지", required = true, example = "0"),
|
|
|
|
@Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10")
|
|
|
|
// @Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10")
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
// @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
//// @Transactional(readOnly = true)
|
|
|
|
public ResponseEntity<? extends IRestResponse> findMinSimsa680s(
|
|
|
|
// public ResponseEntity<? extends IRestResponse> findMinSimsa680s(
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
// @Parameter(hidden = true)
|
|
|
|
final MinSimsa680Dto minSimsa680Dto,
|
|
|
|
// final MinSimsa680Dto minSimsa680Dto,
|
|
|
|
@Parameter(hidden = true)
|
|
|
|
// @Parameter(hidden = true)
|
|
|
|
final Pageable pageable) {
|
|
|
|
// final Pageable pageable) {
|
|
|
|
return RestResponse.of(service.findMinSimsa680s2(mapstruct.toEntity(minSimsa680Dto), pageable));
|
|
|
|
// return RestResponse.of(service.findMinSimsa680s2(mapstruct.toEntity(minSimsa680Dto), pageable));
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|