사전통보 조회 추가

master
mjkhan21 8 months ago
parent 70ee792a6c
commit 02d76476ba

@ -4,12 +4,15 @@ import javax.annotation.Resource;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cokr.xit.foundation.web.AbstractController;
import cokr.xit.interfaces.sntris.StatusCodeWSDTO;
import cokr.xit.interfaces.sntris.buga.Bu04BugaWSDTO;
import cokr.xit.interfaces.sntris.fileoffer.Ye22InputDTO;
import cokr.xit.interfaces.sntris.fileoffer.Ye22NoticeInfoDTO;
import cokr.xit.interfaces.sntris.prenotice.Bu18WebPreNoticeDTO;
import cokr.xit.interfaces.sntris.prenotice.Bu18WebReturnInfoDTO;
import cokr.xit.interfaces.sntris.service.SntrisService;
@ -25,12 +28,18 @@ public class SntrisController extends AbstractController {
@PostMapping(name = "부과 등록", value = "/buga/register")
@Operation(summary = "부과 등록", tags = "부과")
public StatusCodeWSDTO register(@Parameter(description = "사용자 인사대체키") String userId, @Parameter(description = "부과정보") Bu04BugaWSDTO issue) {
return sntrisService.register(userId, null);
return sntrisService.register(userId, issue);
}
@PostMapping(name = "과태료대장 등록", value = "/prenotice/register")
@Operation(summary = "과태료대장 등록", tags = "과태료대장")
public Bu18WebReturnInfoDTO register(@Parameter(description = "부과정보") Bu18WebPreNoticeDTO prenotice) {
public Bu18WebReturnInfoDTO register(@RequestBody Bu18WebPreNoticeDTO prenotice) {
return sntrisService.register(prenotice);
}
@PostMapping(name = "사전통보 조회", value = "/prenotice/list")
@Operation(summary = "사전통보 조회", tags = "과태료대장")
public Ye22NoticeInfoDTO[] getNoticeList(@RequestBody Ye22InputDTO input) {
return sntrisService.getPreNoticeList(input);
}
}
Loading…
Cancel
Save