|
|
|
@ -6,6 +6,7 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import cn.hutool.core.util.RandomUtil; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.dxhy.order.baseservice.module.buyer.model.BuyerEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.buyer.model.BuyerEntityDetail; |
|
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxCommonBO; |
|
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxtbReqBO; |
|
|
|
|
import com.dxhy.order.baseservice.module.commodity.model.CommodityCodeEntity; |
|
|
|
@ -2334,9 +2335,17 @@ public class BeanTransitionUtils { |
|
|
|
|
*/ |
|
|
|
|
public static BuyerEntity createBuyerEntity(OrderInfo orderInfo, String ghfBm) { |
|
|
|
|
BuyerEntity buyerEntity = new BuyerEntity(); |
|
|
|
|
BuyerEntityDetail entityDetail = new BuyerEntityDetail(); |
|
|
|
|
entityDetail.setAddress(orderInfo.getGhfDz()); |
|
|
|
|
entityDetail.setPhone(orderInfo.getGhfDh()); |
|
|
|
|
entityDetail.setBankName(orderInfo.getGhfYh()); |
|
|
|
|
entityDetail.setBankAccount(orderInfo.getGhfZh()); |
|
|
|
|
entityDetail.setDefaultMark("0"); |
|
|
|
|
entityDetail.setCreateTime(new Date()); |
|
|
|
|
/** |
|
|
|
|
* 购方编码 |
|
|
|
|
*/ |
|
|
|
|
buyerEntity.setBuyerEntityDetail(Arrays.asList(entityDetail)); |
|
|
|
|
buyerEntity.setBuyerCode(ghfBm); |
|
|
|
|
/** |
|
|
|
|
* 纳税人识别号 |
|
|
|
|