Просмотр исходного кода

二级市场扣款报文采购商信息修改

linbl 1 месяц назад
Родитель
Сommit
fbeb7293af

+ 4 - 1
sp-service/level-two-server/src/main/java/com/pj/tb_orders/TbOrdersService.java

@@ -159,7 +159,10 @@ public class TbOrdersService extends ServiceImpl<TbOrdersMapper, TbOrders> imple
         TbPurchaser purchaser = tbPurchaserMapper.selectById(t.getPurchaserId());
         StaticLog.info("采购商purchaser:{}", JSONUtil.toJsonStr(purchaser));
         if (purchaser != null) {
-            paymentTwoDto.setPcName(purchaser.getName());
+            paymentTwoDto.setPcName(purchaser.getBusinessName());
+            if(purchaser.getType() == 2) {
+                paymentTwoDto.setPcName(purchaser.getName());
+            }
             paymentTwoDto.setDutyParagraph(purchaser.getDutyParagraph());
             paymentTwoDto.setPcBankAccount(purchaser.getBankAccount());
             paymentTwoDto.setPcBankNo(purchaser.getBankNo());