QCast에서 사용하는 공통코드 clRefChr1, clRefChr2 추가
This commit is contained in:
parent
8a6937f7f2
commit
27ec69f5a8
@ -1,15 +1,15 @@
|
|||||||
package com.interplug.qcast.biz.commCode;
|
package com.interplug.qcast.biz.commCode;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
import com.interplug.qcast.biz.commCode.dto.CodeReq;
|
import com.interplug.qcast.biz.commCode.dto.CodeReq;
|
||||||
import com.interplug.qcast.biz.commCode.dto.CodeRes;
|
import com.interplug.qcast.biz.commCode.dto.CodeRes;
|
||||||
import com.interplug.qcast.biz.commCode.dto.CommCodeRes;
|
import com.interplug.qcast.biz.commCode.dto.CommCodeRes;
|
||||||
import com.interplug.qcast.biz.commCode.dto.DetailCodeRequest;
|
import com.interplug.qcast.biz.commCode.dto.DetailCodeRequest;
|
||||||
import com.interplug.qcast.biz.commCode.dto.HeadCodeRequest;
|
import com.interplug.qcast.biz.commCode.dto.HeadCodeRequest;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
@ -53,17 +53,11 @@ public class CommCodeService {
|
|||||||
public List<CommCodeRes> selectQcastCommCode() {
|
public List<CommCodeRes> selectQcastCommCode() {
|
||||||
List<CodeRes> result = commCodeMapper.selectQcastCommCode();
|
List<CodeRes> result = commCodeMapper.selectQcastCommCode();
|
||||||
List<CommCodeRes> commCodeList = new ArrayList<>();
|
List<CommCodeRes> commCodeList = new ArrayList<>();
|
||||||
result.forEach(
|
result.forEach(cr -> {
|
||||||
cr -> {
|
commCodeList.add(CommCodeRes.builder().clHeadCd(cr.getClHeadCd()).clCode(cr.getClCode())
|
||||||
commCodeList.add(
|
.clCodeNm(cr.getClCodeNm()).clCodeJp(cr.getClCodeJp()).clPriority(cr.getClPriority())
|
||||||
CommCodeRes.builder()
|
.clRefChr1(cr.getClRefChr1()).clRefChr2(cr.getClRefChr2()).build());
|
||||||
.clHeadCd(cr.getClHeadCd())
|
});
|
||||||
.clCode(cr.getClCode())
|
|
||||||
.clCodeNm(cr.getClCodeNm())
|
|
||||||
.clCodeJp(cr.getClCodeJp())
|
|
||||||
.clPriority(cr.getClPriority())
|
|
||||||
.build());
|
|
||||||
});
|
|
||||||
return commCodeList;
|
return commCodeList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,4 +11,6 @@ public class CommCodeRes {
|
|||||||
private String clCodeNm;
|
private String clCodeNm;
|
||||||
private String clCodeJp;
|
private String clCodeJp;
|
||||||
private Integer clPriority;
|
private Integer clPriority;
|
||||||
|
private String clRefChr1;
|
||||||
|
private String clRefChr2;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -159,6 +159,8 @@
|
|||||||
, CL.CODE_NM AS CL_CODE_NM
|
, CL.CODE_NM AS CL_CODE_NM
|
||||||
, CL.CODE_JP AS CL_CODE_JP
|
, CL.CODE_JP AS CL_CODE_JP
|
||||||
, CL.PRIORITY AS CL_PRIORITY
|
, CL.PRIORITY AS CL_PRIORITY
|
||||||
|
, CL.REF_CHR1 AS CL_REF_CHR1
|
||||||
|
, CL.REF_CHR2 AS CL_REF_CHR2
|
||||||
FROM
|
FROM
|
||||||
M_COMM_H (NOLOCK) CH
|
M_COMM_H (NOLOCK) CH
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user