fix: NIMS 폐기보고 확인

- 상품 일련번호 정보중 null 또는 "-" 값 -> "" 치환후 데이타 비교 적용
dev
Jonguk. Lim 4 months ago
parent 59785ae458
commit b813d38bfc

@ -491,9 +491,15 @@ public class NimsApiDto {
for (DsuseRptInfoDtl rptDtl : this.listDtl) { for (DsuseRptInfoDtl rptDtl : this.listDtl) {
for (BizNimsDto.DsuseMgtDtl mgtDtl : mgtDto.getDsuseMgtDtls()) { for (BizNimsDto.DsuseMgtDtl mgtDtl : mgtDto.getDsuseMgtDtls()) {
if (Objects.equals(rptDtl.getPrductCd(), mgtDtl.getPrductCd()) if (Objects.equals(rptDtl.getPrductCd(), mgtDtl.getPrductCd())
&& Objects.equals(rptDtl.getMnfNo(), mgtDtl.getMnfNo()) && Objects.equals(
&& Objects.equals(rptDtl.getPrdValidDe(), mgtDtl.getPrdValidDe()) Objects.toString(rptDtl.getMnfNo(), "").replaceAll("-", ""),
&& Objects.equals(rptDtl.getMnfSeq(), mgtDtl.getMnfSeq()) Objects.toString(mgtDtl.getMnfNo(), "").replaceAll("-", ""))
&& Objects.equals(
Objects.toString(rptDtl.getPrdValidDe(), "").replaceAll("-", ""),
Objects.toString(mgtDtl.getPrdValidDe(), "").replaceAll("-", ""))
&& Objects.equals(
Objects.toString(rptDtl.getMnfSeq(), "").replaceAll("-", ""),
Objects.toString(mgtDtl.getMnfSeq(), "").replaceAll("-", ""))
&& Objects.equals(rptDtl.getDsuseQy(), mgtDtl.getDsuseQy())) { && Objects.equals(rptDtl.getDsuseQy(), mgtDtl.getDsuseQy())) {
rptDtl.setMatchYn("Y"); rptDtl.setMatchYn("Y");
break; break;

Loading…
Cancel
Save