
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
package com.ajin.ajinerp.master.account.web;
import com.ajin.ajinerp.common.vo.CustomeResultMap;
import com.ajin.ajinerp.master.account.service.AccountService;
import com.ajin.ajinerp.master.account.vo.AccountVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
@RestController
@RequiredArgsConstructor
public class AccountController {
private final AccountService accountService;
/**
* @author 박민혁
* @since 2024.03.13
*
* 계정 과목 정보 조회
*/
@GetMapping(value = "/getAccountList.json")
public CustomeResultMap getAccountList() throws Exception{
CustomeResultMap map = accountService.getAccountList();
return map;
}
/**
* @author 박민혁
* @since 2024.03.14
*
* 계정 과목 정보 검색
*/
@PostMapping(value = "/searchAccountList.json")
public CustomeResultMap searchAccountList(@RequestBody AccountVO accountVO) throws Exception{
CustomeResultMap map = accountService.searchAccountList(accountVO);
return map;
}
/**
* @author 박민혁
* @since 2024.03.13
*
* 계정 과목 정보 단일 조회
*/
@PostMapping(value = "/getAccountData.json")
public CustomeResultMap getAccountData(@RequestBody AccountVO accountVO) throws Exception{
CustomeResultMap map = accountService.getAccountData(accountVO);
return map;
}
/**
* @author 박민혁
* @since 2024.03.13
*
* 계정 과목 정보 추가 및 수정
*/
@PostMapping(value = "/mergeAccountData.json")
public CustomeResultMap mergeAccountData(@RequestBody AccountVO accountVO) throws Exception{
CustomeResultMap map = accountService.mergeAccountData(accountVO);
return map;
}
/**
* @author 박민혁
* @since 2024.03.13
*
* 계정 과목 정보 삭제
*/
@DeleteMapping(value = "/deleteAccountData.json")
public CustomeResultMap deleteAccountData(@RequestBody String accode) throws Exception{
CustomeResultMap map = accountService.deleteAccountData(accode);
return map;
}
}