提交 b1673ce4 作者: xiaowang

地址管理根据id查询

上级 62430bb0
......@@ -44,6 +44,16 @@
<artifactId>easypoi-base</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<!-- 使用okhttp-feign-连接池技术 -->
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-okhttp</artifactId>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-web</artifactId>
......
package com.mmc.oms.feign;
import com.mmc.oms.feign.hystrix.PmsAppApiHystrix;
import com.mmc.oms.model.dto.mall.*;
import com.mmc.oms.model.qo.mall.MallOrderGoodsInfoQO;
import com.mmc.oms.model.qo.mall.ProductSpecPriceQO;
//import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
......@@ -12,7 +13,7 @@ import java.util.List;
* @author: zj
* @Date: 2023/6/5 15:18
*/
//@FeignClient(url = "${pms.url}", name = "pms-svc", fallback = PmsAppApiHystrix.class)
@FeignClient(url = "${pms.url}", name = "pms-svc", fallback = PmsAppApiHystrix.class)
public interface PmsAppApi {
@PostMapping("/pms/goods/fillGoodsInfo")
List<MallGoodsShopCarDTO> fillGoodsInfo(@RequestBody List<MallGoodsShopCarDTO> param, @RequestHeader("token") String token);
......
package com.mmc.oms.feign.config;
import com.mmc.oms.feign.hystrix.PmsAppApiHystrix;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
///**
// * @author: zj
// * @Date: 2023/5/18 18:21
// */
//@ComponentScan(basePackages = "com.mmc.oms.feign")
//@Configuration
//public class FeignConfiguration {
//
// @Bean(name = "workServiceHystrix")
// public WorkServiceHystrix workServiceHystrixApi() {
// return new WorkServiceHystrix();
// }
//}
/**
* @author: zj
* @Date: 2023/5/18 18:21
*/
@ComponentScan(basePackages = "com.mmc.oms.feign")
@Configuration
public class FeignConfiguration {
@Bean(name = "pmsAppApiHystrix")
public PmsAppApiHystrix workServiceHystrixApi() {
return new PmsAppApiHystrix();
}
}
......@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
public class UserAddressServiceImpl implements UserAddressService {
@Autowired
private UserAddressDao userAddressDao;
@Resource
@Autowired
private PmsAppApi pmsAppApi;
@Override
public ResultBody insert(UserAddressVO param, BaseAccountDTO currentAccount) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论