|
@@ -128,11 +128,7 @@ public class SupplierJoinHandler extends AbstractAffairOneHandler{
|
|
|
supplier.setPhone(data.getPhone());
|
|
|
supplier.setAddress(data.getAddress());
|
|
|
//supplier.setType(data.getType());
|
|
|
- List<String> productIds = new ArrayList<>();
|
|
|
- if(StringUtils.isNotEmpty(data.getProduct())){
|
|
|
- productIds.addAll(Arrays.asList(data.getProduct().split(CommonConst.COMMA_STRING)));
|
|
|
- }
|
|
|
- supplier.setProduct(JsonUtils.toJson(productIds));
|
|
|
+ supplier.setProduct(JsonUtils.toJson(data.getProduct()));
|
|
|
List<String> imageIds = new ArrayList<>();
|
|
|
if(StringUtils.isNotEmpty(data.getImage())){
|
|
|
imageIds.addAll(Arrays.asList(data.getImage().split(CommonConst.COMMA_STRING)));
|
|
@@ -201,9 +197,9 @@ public class SupplierJoinHandler extends AbstractAffairOneHandler{
|
|
|
private String type;
|
|
|
|
|
|
/**
|
|
|
- * 优势产品,多个用逗号隔开
|
|
|
+ * 产品
|
|
|
*/
|
|
|
- private String product;
|
|
|
+ private List<String> product;
|
|
|
|
|
|
/**
|
|
|
* ,多个用逗号隔开
|