[2133] 다운로드 파일명 포맷에 planNo 추가 (objectNo_planNo_날짜)(견적서/발전시뮬레이션 통일)
This commit is contained in:
parent
11d2acb2a2
commit
fc6655f9dc
@ -1369,7 +1369,8 @@ public class EstimateService {
|
|||||||
|
|
||||||
// file Name 명이 없는경우
|
// file Name 명이 없는경우
|
||||||
if (estimateRequest.getFileName() == null || "".equals(estimateRequest.getFileName())) {
|
if (estimateRequest.getFileName() == null || "".equals(estimateRequest.getFileName())) {
|
||||||
estimateRequest.setFileName(estimateResponse.getObjectNo() + "_"
|
estimateRequest.setFileName(StringUtils.defaultString(estimateResponse.getObjectNo()) + "_"
|
||||||
|
+ StringUtils.defaultString(estimateResponse.getPlanNo()) + "_"
|
||||||
+ new SimpleDateFormat("yyyyMMdd").format(new Date()));
|
+ new SimpleDateFormat("yyyyMMdd").format(new Date()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2503,7 +2503,9 @@ public class PwrGnrSimService {
|
|||||||
// file Name 명이 없는경우
|
// file Name 명이 없는경우
|
||||||
if (estimateRequest.getFileName() == null || "".equals(estimateRequest.getFileName())) {
|
if (estimateRequest.getFileName() == null || "".equals(estimateRequest.getFileName())) {
|
||||||
estimateRequest.setFileName(
|
estimateRequest.setFileName(
|
||||||
estimateResponse.getObjectNo()
|
StringUtils.defaultString(estimateResponse.getObjectNo())
|
||||||
|
+ "_"
|
||||||
|
+ StringUtils.defaultString(estimateResponse.getPlanNo())
|
||||||
+ "_"
|
+ "_"
|
||||||
+ new SimpleDateFormat("yyyyMMdd").format(new Date()));
|
+ new SimpleDateFormat("yyyyMMdd").format(new Date()));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user