|
|
@ -8,7 +8,6 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
|
|
|
|
|
|
|
|
|
import cokr.xit.adds.core.spring.annotation.TraceLogging;
|
|
|
|
|
|
|
|
import cokr.xit.adds.core.spring.exception.ApiCustomException;
|
|
|
|
import cokr.xit.adds.core.spring.exception.ApiCustomException;
|
|
|
|
import cokr.xit.adds.core.util.ApiUtil;
|
|
|
|
import cokr.xit.adds.core.util.ApiUtil;
|
|
|
|
import cokr.xit.adds.inf.nims.model.NimsApiDto;
|
|
|
|
import cokr.xit.adds.inf.nims.model.NimsApiDto;
|
|
|
@ -91,7 +90,7 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@TraceLogging
|
|
|
|
//@TraceLogging
|
|
|
|
public NimsApiResult.Response<NimsApiDto.ProductInfoKd> getProductInfoKd(NimsApiRequest.ProductInfoReq dto) {
|
|
|
|
public NimsApiResult.Response<NimsApiDto.ProductInfoKd> getProductInfoKd(NimsApiRequest.ProductInfoReq dto) {
|
|
|
|
ApiUtil.validate(dto, null, validator);
|
|
|
|
ApiUtil.validate(dto, null, validator);
|
|
|
|
if(!isEmpty(dto.getYmd())) ApiUtil.checkYmdError(dto.getYmd(), null);
|
|
|
|
if(!isEmpty(dto.getYmd())) ApiUtil.checkYmdError(dto.getYmd(), null);
|
|
|
@ -102,7 +101,7 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@TraceLogging
|
|
|
|
//@TraceLogging
|
|
|
|
public NimsApiResult.Response<NimsApiDto.MnfSeqInfo> getMnfSeqInfo(NimsApiRequest.MnfSeqInfoReq dto) {
|
|
|
|
public NimsApiResult.Response<NimsApiDto.MnfSeqInfo> getMnfSeqInfo(NimsApiRequest.MnfSeqInfoReq dto) {
|
|
|
|
ApiUtil.validate(dto, null, validator);
|
|
|
|
ApiUtil.validate(dto, null, validator);
|
|
|
|
if(!isEmpty(dto.getYmd())) ApiUtil.checkYmdError(dto.getYmd(), null);
|
|
|
|
if(!isEmpty(dto.getYmd())) ApiUtil.checkYmdError(dto.getYmd(), null);
|
|
|
@ -127,7 +126,7 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@TraceLogging
|
|
|
|
//@TraceLogging
|
|
|
|
public NimsApiResult.Response<NimsApiDto.DsuseRptInfo> getDsuseRptInfo(NimsApiRequest.DsuseRptInfoReq dto) {
|
|
|
|
public NimsApiResult.Response<NimsApiDto.DsuseRptInfo> getDsuseRptInfo(NimsApiRequest.DsuseRptInfoReq dto) {
|
|
|
|
ApiUtil.validate(dto, null, validator);
|
|
|
|
ApiUtil.validate(dto, null, validator);
|
|
|
|
ApiUtil.checkYmdError(dto.getSdt(), "sdt");
|
|
|
|
ApiUtil.checkYmdError(dto.getSdt(), "sdt");
|
|
|
@ -138,22 +137,4 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe
|
|
|
|
NimsApiResult<NimsApiDto.DsuseRptInfo> result = json.parse(rslt, new TypeReference<>() {});
|
|
|
|
NimsApiResult<NimsApiDto.DsuseRptInfo> result = json.parse(rslt, new TypeReference<>() {});
|
|
|
|
return result.getResponse();
|
|
|
|
return result.getResponse();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @TraceLogging
|
|
|
|
|
|
|
|
// public NimsApiResult.Response<NimsApiDto.StorageInfo> getStorageInfo(NimsApiRequest.StorageInfoRequest dto) {
|
|
|
|
|
|
|
|
// dto.setK(nimsApiKey);
|
|
|
|
|
|
|
|
// ApiUtil.validate(dto, null, validator);
|
|
|
|
|
|
|
|
// if(!isEmpty(dto.getYmd())) ApiUtil.checkYmdError(dto.getYmd(), null);
|
|
|
|
|
|
|
|
// if(!isEmpty(dto.getFg()) && dto.getFg().equals("1")) {
|
|
|
|
|
|
|
|
// if(isEmpty(dto.getBc())){
|
|
|
|
|
|
|
|
// throw ApiCustomException.create("조회 범위를 특정업체(fg=1)로 조회할 경우 취급자식별번호(bc)는 필수입니다");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// String rslt = ApiUtil.callNimsApi(nimsUrl + placeinfoV1, dto);
|
|
|
|
|
|
|
|
// NimsApiResult<NimsApiDto.StorageInfo> result = json.parse(rslt, new TypeReference<>() {});
|
|
|
|
|
|
|
|
// return result.getResponse();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|