完成商品发布中的保存功能,并将其中的bug处理完成:1、调用feign服务时,路径名字错误 2、 BeanUtils.copyProperties(item, skuReductionTo)时,需要保证两个类内所有成员一样,包括类成员所在的包
parent
0f5db1893a
commit
f3e3037d66
@ -1,4 +1,4 @@
|
|||||||
spring.application.name=book-coupon
|
|
||||||
|
|
||||||
coupon.user.name = zhangsna
|
coupon.user.name = zhangsna
|
||||||
coupon.user.age = 18
|
coupon.user.age = 18
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
package com.bookstore.bookmall.product.feign;
|
package com.bookstore.bookmall.product.feign;
|
||||||
|
|
||||||
|
import com.bookstore.common.to.SkuReductionTo;
|
||||||
import com.bookstore.common.to.SpuBoundsTo;
|
import com.bookstore.common.to.SpuBoundsTo;
|
||||||
import com.bookstore.common.utils.R;
|
import com.bookstore.common.utils.R;
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
@FeignClient("book-coupon")
|
@FeignClient("mall-coupon")
|
||||||
public interface CouponFeignService {
|
public interface CouponFeignService {
|
||||||
|
|
||||||
@PostMapping("/coupon/spubounds/save")
|
@PostMapping("/coupon/spubounds/save")
|
||||||
R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);
|
R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);
|
||||||
|
|
||||||
|
@PostMapping("/coupon/skufullreduction/saveinfo")
|
||||||
|
R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
|
||||||
}
|
}
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright 2019 bejson.com
|
|
||||||
*/
|
|
||||||
package com.bookstore.bookmall.product.vo;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated: 2019-11-26 10:50:34
|
|
||||||
*
|
|
||||||
* @author bejson.com (i@bejson.com)
|
|
||||||
* @website http://www.bejson.com/java2pojo/
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class MemberPrice {
|
|
||||||
|
|
||||||
private Long id;
|
|
||||||
private String name;
|
|
||||||
private BigDecimal price;
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in new issue