Browse Source

二线出岛放行业务bug修复

wenjinbiao 2 months ago
parent
commit
80cbe1b95d

+ 5 - 1
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehzdtz/service/impl/QySecondlineHzdTzServiceImpl.java

@@ -322,7 +322,11 @@ public class QySecondlineHzdTzServiceImpl extends ServiceImpl<QySecondlineHzdTzM
 
 
         qyOutWarehouse.setBrandType((CollectionUtil.get(CollectionUtil.toList("华为","苹果","三星"),  new Random().nextInt(3))));
-        qyOutWarehouse.setYcgdq((CollectionUtil.get(CollectionUtil.toList("英国","美国","澳大利亚"),  new Random().nextInt(3))));
+        if(ObjectUtil.isNotEmpty(product.getOriginCountry())){
+            String ycgdq = bizDictService.getNameByType("address", product.getOriginCountry());
+            qyOutWarehouse.setYcgdq(ycgdq);
+        }
+
         qyOutWarehouse.setZzmdg((CollectionUtil.get(CollectionUtil.toList("泰国","法国","巴西"),  new Random().nextInt(3))));
         //出库数量 == 申报数量
         qyOutWarehouse.setCkNum(product.getSbNum());