Browse Source

学校、福达修改

lazhaoqian 3 years ago
parent
commit
39e5d4287a

+ 5 - 0
blade-service-api/blade-client-api/src/main/java/org/springblade/client/vo/GoodsDescVO.java

@@ -41,5 +41,10 @@ public class GoodsDescVO extends GoodsDesc {
 	 */
 	@ApiModelProperty(value = "商品类别及子类别")
 	private List<Long> goodsTypeIdList;
+	/**
+	 * 客户编码
+	 */
+	@ApiModelProperty(value = "客户编码")
+	private String corpCode;
 
 }

+ 6 - 0
blade-service/blade-client/src/main/java/org/springblade/client/goods/controller/GoodsDescController.java

@@ -342,6 +342,12 @@ public class GoodsDescController extends BladeController {
 				specificationWrapper.eq(GoodsSpecification::getTenantId, SecureUtil.getTenantId());
 				List<GoodsSpecification> goodsSpecificationList = goodsSpecificationService.list(specificationWrapper);
 				e.setGoodsSpecificationList(goodsSpecificationList);
+				if (e.getCorpId() != null){
+					CorpsDesc desc = corpsDescService.getById(e.getCorpId());
+					if (desc != null){
+						e.setCorpCode(desc.getCode());
+					}
+				}
 			});
 
 		}