gistfile1.txt import org.dozer.DozerBeanMapper;import org.dozer.Mapper; //新增操作的时候操作税务接口 Mapper mapper = new DozerBeanMapper();Nonresident nonresident = mapper.map(baseLeaserVO, Nonresident.class);nonresident.setJNW
import org.dozer.DozerBeanMapper; import org.dozer.Mapper; //新增操作的时候操作税务接口 Mapper mapper = new DozerBeanMapper(); Nonresident nonresident = mapper.map(baseLeaserVO, Nonresident.class); nonresident.setJNWJGSFGL(nonresident.getJNWJGSFGL().equals("是") ? "1":"0"); // 财务联系人 nonresident.setCWFZR(baseLeaserVO.getBaseContact().getFinaceAdmin()); nonresident.setCONTACT(baseLeaserVO.getBaseContact().getContactName()); nonresident.setPHONENO(baseLeaserVO.getBaseContact().getTelephone()); nonresident.setFAXNO(baseLeaserVO.getBaseContact().getFax()); // 获取国家代码 BaseCountry baseCountry = baseCountryService.queryCountryByName(nonresident.getNACODE()); nonresident.setNACODE(baseCountry.getCountryNo()); // 收款人信息 ListpayeeList = baseLeaserVO.getPayeeList(); List paymentList = new ArrayList<>(); if(CollectionUtils.isNotEmpty(payeeList)){ payeeList.forEach(action->{ BasePayeeVO findOneByPayeeById = basePayeeService.findOneByPayeeById(action.getPayeeId()); List infos = findOneByPayeeById.getInfos(); Iterator iterator = infos.iterator(); while(iterator.hasNext()){ BaseBankAccount next = iterator.next(); Payment payment = mapper.map(next, Payment.class); paymentList.add(payment); } }); }