diff --git a/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteController.java b/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteController.java new file mode 100644 index 00000000..087e38d5 --- /dev/null +++ b/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteController.java @@ -0,0 +1,41 @@ +package com.interplug.qcast.biz.specialNote; + +import org.springframework.http.HttpStatus; +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.ResponseStatus; +import org.springframework.web.bind.annotation.RestController; +import com.interplug.qcast.biz.specialNote.dto.SpecialNoteItemRequest; +import com.interplug.qcast.biz.specialNote.dto.SpecialNoteRequest; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +@Slf4j +@RestController +@RequestMapping("/api/special-note") +@RequiredArgsConstructor +@Tag(name = "SpecialNoteController", description = "견적 특이사항 관련 API") +public class SpecialNoteController { + + private final SpecialNoteService specialNoteService; + + @Operation(description = "견적 특이사항 정보를 등록/수정한다. (동기화)") + @PostMapping("/special-note-save") + @ResponseStatus(HttpStatus.OK) + public void setSpecialNoteSave(@RequestBody SpecialNoteRequest specialNoteRequest) + throws Exception { + specialNoteService.setSpecialNoteSave(specialNoteRequest); + } + + @Operation(description = "견적 특이사항 ITEM 정보를 등록/수정한다. (동기화)") + @PostMapping("/special-note-item-save") + @ResponseStatus(HttpStatus.OK) + public void setSpecialNoteItemSave(@RequestBody SpecialNoteItemRequest specialNoteItemRequest) + throws Exception { + specialNoteService.setSpecialNoteItemSave(specialNoteItemRequest); + } + +} diff --git a/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteMapper.java b/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteMapper.java new file mode 100644 index 00000000..0874f10b --- /dev/null +++ b/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteMapper.java @@ -0,0 +1,14 @@ +package com.interplug.qcast.biz.specialNote; + +import org.apache.ibatis.annotations.Mapper; +import com.interplug.qcast.biz.specialNote.dto.SpecialNoteItemRequest; +import com.interplug.qcast.biz.specialNote.dto.SpecialNoteRequest; + +@Mapper +public interface SpecialNoteMapper { + + void setSpecialNoteSave(SpecialNoteRequest specialNoteRequest) throws Exception; + + void setSpecialNoteItemSave(SpecialNoteItemRequest specialNoteItemRequest) throws Exception; + +} diff --git a/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteService.java b/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteService.java new file mode 100644 index 00000000..f628295d --- /dev/null +++ b/src/main/java/com/interplug/qcast/biz/specialNote/SpecialNoteService.java @@ -0,0 +1,25 @@ +package com.interplug.qcast.biz.specialNote; + +import org.springframework.stereotype.Service; +import com.interplug.qcast.biz.specialNote.dto.SpecialNoteItemRequest; +import com.interplug.qcast.biz.specialNote.dto.SpecialNoteRequest; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +@Slf4j +@Service +@RequiredArgsConstructor +public class SpecialNoteService { + + private final SpecialNoteMapper specialNoteMapper; + + public void setSpecialNoteSave(SpecialNoteRequest specialNoteRequest) throws Exception { + specialNoteMapper.setSpecialNoteSave(specialNoteRequest); + } + + public void setSpecialNoteItemSave(SpecialNoteItemRequest specialNoteItemRequest) + throws Exception { + specialNoteMapper.setSpecialNoteItemSave(specialNoteItemRequest); + } + +} diff --git a/src/main/java/com/interplug/qcast/biz/specialNote/dto/SpecialNoteItemRequest.java b/src/main/java/com/interplug/qcast/biz/specialNote/dto/SpecialNoteItemRequest.java new file mode 100644 index 00000000..2250615d --- /dev/null +++ b/src/main/java/com/interplug/qcast/biz/specialNote/dto/SpecialNoteItemRequest.java @@ -0,0 +1,28 @@ +package com.interplug.qcast.biz.specialNote.dto; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SpecialNoteItemRequest { + + /** Special Note Type Code */ + private String spnTypeCd; + + /** Special Note Attribute */ + private String spnAttrCd; + + /** Item Id */ + private String itemId; + + /** Del Flag */ + private String delFlg; + + /** Inputted Date */ + private String registDatetime; + + /** Updated Date */ + private String lastEditDatetime; + +} diff --git a/src/main/java/com/interplug/qcast/biz/specialNote/dto/SpecialNoteRequest.java b/src/main/java/com/interplug/qcast/biz/specialNote/dto/SpecialNoteRequest.java new file mode 100644 index 00000000..06bac782 --- /dev/null +++ b/src/main/java/com/interplug/qcast/biz/specialNote/dto/SpecialNoteRequest.java @@ -0,0 +1,31 @@ +package com.interplug.qcast.biz.specialNote.dto; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SpecialNoteRequest { + + /** Special Note Type Code */ + private String spnTypeCd; + + /** Special Note Attribute */ + private String spnAttrCd; + + /** Used Flg */ + private String useFlg; + + /** Remarks */ + private String remarks; + + /** Del Flag */ + private String delFlg; + + /** Inputted Date */ + private String registDatetime; + + /** Updated Date */ + private String lastEditDatetime; + +} diff --git a/src/main/java/com/interplug/qcast/biz/user/UserMapper.java b/src/main/java/com/interplug/qcast/biz/user/UserMapper.java index ec0d8a0d..35434560 100644 --- a/src/main/java/com/interplug/qcast/biz/user/UserMapper.java +++ b/src/main/java/com/interplug/qcast/biz/user/UserMapper.java @@ -7,10 +7,11 @@ import org.apache.ibatis.annotations.Mapper; @Mapper public interface UserMapper { - int setStoreSave(StoreRequest storeReq) throws Exception; + int setStoreSave(StoreRequest storeReq) throws Exception; - int setStoreSapCdSave(StoreRequest storeReq) throws Exception; + int setStoreSapCdSave(StoreRequest storeReq) throws Exception; - int setUserSave(UserRequest userReqList) throws Exception; + int setStoreNorthModuleSave(StoreRequest storeReq) throws Exception; -} \ No newline at end of file + int setUserSave(UserRequest userReqList) throws Exception; +} diff --git a/src/main/java/com/interplug/qcast/biz/user/UserService.java b/src/main/java/com/interplug/qcast/biz/user/UserService.java index 88feabdd..875bebc3 100644 --- a/src/main/java/com/interplug/qcast/biz/user/UserService.java +++ b/src/main/java/com/interplug/qcast/biz/user/UserService.java @@ -2,11 +2,10 @@ package com.interplug.qcast.biz.user; import com.interplug.qcast.biz.user.dto.StoreRequest; import com.interplug.qcast.biz.user.dto.UserRequest; +import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; -import java.util.List; - @Service @RequiredArgsConstructor public class UserService { @@ -15,6 +14,7 @@ public class UserService { public int setStoreSave(StoreRequest storeReq) throws Exception { int resultCnt = userMapper.setStoreSave(storeReq); userMapper.setStoreSapCdSave(storeReq); + userMapper.setStoreNorthModuleSave(storeReq); return resultCnt; } diff --git a/src/main/java/com/interplug/qcast/biz/user/dto/StoreRequest.java b/src/main/java/com/interplug/qcast/biz/user/dto/StoreRequest.java index 3a4287dd..20af621f 100644 --- a/src/main/java/com/interplug/qcast/biz/user/dto/StoreRequest.java +++ b/src/main/java/com/interplug/qcast/biz/user/dto/StoreRequest.java @@ -5,68 +5,96 @@ import lombok.Data; @Data public class StoreRequest { - @Schema(description = "SAP Store Code") - private String sapSalesStoreCd; - @Schema(description = "판매점 ID") - private String saleStoreId; - @Schema(description = "판매대리점명") - private String saleStoreName; - @Schema(description = "후리가나") - private String saleStoreNameKana; - @Schema(description = "우편번호") - private String zipNo; - @Schema(description = "주소") - private String address; - @Schema(description = "연락처") - private String tel; - @Schema(description = "팩스번호") - private String fax; - @Schema(description = "법인번호") - private String bizNo; - @Schema(description = "요청일시") - private String applicationDate; - @Schema(description = "승인상태 변경일시") - private String approvalDate; - @Schema(description = "승인상태") - private String approveFlg; - @Schema(description = "지불형태") - private String paymentTerms; - @Schema(description = "1차점여부") - private String firstAgentFlg; - @Schema(description = "2차점ㅇ여부") - private String secondAgentFlg; - @Schema(description = "1차점 판매점 ID") - private String firstAgentId; - @Schema(description = "부모 판매점 ID") - private String parentSaleAgentId; - @Schema(description = "영업사원명") - private String businessCharger; - @Schema(description = "영업사원 코드") - private String businessChargerCd; - @Schema(description = "회사명") - private String dispCompanyName; - @Schema(description = "회사 우편번호") - private String dispZipNo; - @Schema(description = "회사 주소") - private String dispAddress; - @Schema(description = "회사 연락처") - private String dispTel; - @Schema(description = "회사 팩스번호") - private String dispFax; - @Schema(description = "회사 이메일주소") - private String dispMail; - @Schema(description = "판매점 LEVEL") - private String saleStoreLevel; - @Schema(description = "삭제여부") - private String delFlg; - @Schema(description = "등록일시") - private String registDatetime; - @Schema(description = "수정일시") - private String lastEditDatetime; - @Schema(description = "수정자") - private String lastEditUser; + @Schema(description = "SAP Store Code") + private String sapSalesStoreCd; + @Schema(description = "판매점 ID") + private String saleStoreId; + + @Schema(description = "판매대리점명") + private String saleStoreName; + + @Schema(description = "후리가나") + private String saleStoreNameKana; + + @Schema(description = "우편번호") + private String zipNo; + + @Schema(description = "주소") + private String address; + + @Schema(description = "연락처") + private String tel; + + @Schema(description = "팩스번호") + private String fax; + + @Schema(description = "법인번호") + private String bizNo; + + @Schema(description = "요청일시") + private String applicationDate; + + @Schema(description = "승인상태 변경일시") + private String approvalDate; + + @Schema(description = "승인상태") + private String approveFlg; + + @Schema(description = "지불형태") + private String paymentTerms; + + @Schema(description = "1차점여부") + private String firstAgentFlg; + + @Schema(description = "2차점ㅇ여부") + private String secondAgentFlg; + + @Schema(description = "1차점 판매점 ID") + private String firstAgentId; + + @Schema(description = "부모 판매점 ID") + private String parentSaleAgentId; + + @Schema(description = "영업사원명") + private String businessCharger; + + @Schema(description = "영업사원 코드") + private String businessChargerCd; + + @Schema(description = "회사명") + private String dispCompanyName; + + @Schema(description = "회사 우편번호") + private String dispZipNo; + + @Schema(description = "회사 주소") + private String dispAddress; + + @Schema(description = "회사 연락처") + private String dispTel; + + @Schema(description = "회사 팩스번호") + private String dispFax; + + @Schema(description = "회사 이메일주소") + private String dispMail; + + @Schema(description = "판매점 LEVEL") + private String saleStoreLevel; + + @Schema(description = "삭제여부") + private String delFlg; + + @Schema(description = "등록일시") + private String registDatetime; + + @Schema(description = "수정일시") + private String lastEditDatetime; + + @Schema(description = "수정자") + private String lastEditUser; + + @Schema(description = "북쪽 모듈 여부") + private String northModuleFlg; } - - - diff --git a/src/main/resources/mappers/excelDown/excelDownMapper.xml b/src/main/resources/mappers/excelDown/excelDownMapper.xml index d6dd0366..6e10afb8 100644 --- a/src/main/resources/mappers/excelDown/excelDownMapper.xml +++ b/src/main/resources/mappers/excelDown/excelDownMapper.xml @@ -269,7 +269,6 @@