Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void fillRowInformation(boolean includeB2bUnitUid, StringJoiner mCodesJoiner, MatchingCodeModel mCode) {
- String matchingCode = mCode.getMatchingCode();
- try{
- addRowData(includeB2bUnitUid, mCodesJoiner, mCode, matchingCode);
- }catch (NullPointerException e){
- LOG.error("Error while exporting matching code: " + matchingCode + " - Product used doesn't exists.");
- return;
- }
- }
- private void addRowData(boolean includeB2bUnitUid, StringJoiner mCodesJoiner, MatchingCodeModel mCode, String matchingCode) {
- String productCode = mCode.getProduct().getCode();
- if (includeB2bUnitUid) {
- mCodesJoiner.add(b2bUnitService.getRootUnit(mCode.getB2bUnit()).getUid());
- }
- mCodesJoiner.add(matchingCode).add(productCode).add("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement