1차점 견적서 2차점 가격미노출
This commit is contained in:
parent
47d4bbf220
commit
5fd6184f42
@ -10,16 +10,7 @@ import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Base64;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.interplug.qcast.biz.canvaspopupstatus.CanvasPopupStatusService;
|
||||
@ -1665,6 +1656,14 @@ public class EstimateService {
|
||||
|
||||
String templateFilePath = "pdf_download_quotation_detail_template.html";
|
||||
|
||||
String userId = estimateRequest.getUserId();
|
||||
String storeLvl = estimateRequest.getStoreLvl();
|
||||
String saleStoreId = estimateRequest.getSaleStoreId();
|
||||
if(storeLvl != null && storeLvl.equals("2")){
|
||||
if(!Objects.equals(Objects.requireNonNull(saleStoreId), userId))
|
||||
templateFilePath = "pdf_download_quotation_detail_template2.html";
|
||||
}
|
||||
|
||||
// 템플릿 html 조회
|
||||
Document doc = PdfUtil.getPdfDoc(request, templateFilePath);
|
||||
|
||||
@ -1710,6 +1709,14 @@ public class EstimateService {
|
||||
Workbook workbook = null;
|
||||
|
||||
String excelTemplateNam = "excel_download_quotation_detail_template.xlsx";
|
||||
String userId = estimateRequest.getUserId();
|
||||
String storeLvl = estimateRequest.getStoreLvl();
|
||||
String saleStoreId = estimateRequest.getSaleStoreId();
|
||||
if(storeLvl != null && storeLvl.equals("2")){
|
||||
if(!Objects.equals(Objects.requireNonNull(saleStoreId), userId))
|
||||
excelTemplateNam = "excel_download_quotation_detail_template2.xlsx";
|
||||
}
|
||||
|
||||
|
||||
// itemGroup이 "STAND_"가 아닌 항목들만 필터링하여 새로운 리스트 생성
|
||||
List<ItemResponse> estimateItemList15 = estimateItemList.stream()
|
||||
|
||||
@ -216,4 +216,7 @@ public class EstimateRequest {
|
||||
@Schema(description = "2차 SAP 판매점코드")
|
||||
private String secSapSalesStoreCd;
|
||||
|
||||
@Schema(description = "판매점레벨")
|
||||
private String storeLvl;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user