parent
b99d091c63
commit
7c60798dc8
7 changed files with 97 additions and 4 deletions
@ -0,0 +1,32 @@ |
|||||||
|
package org.springblade.desk.dashboard.feign; |
||||||
|
|
||||||
|
import org.springblade.core.launch.constant.AppConstant; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartRelationEntity; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 零件服务Feign客户端 |
||||||
|
* 修正点:所有GET请求参数添加@RequestParam注解,解决Feign多Body参数异常 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = AppConstant.APPLICATION_DESK_NAME |
||||||
|
) |
||||||
|
public interface IOrderBoxClient { |
||||||
|
|
||||||
|
String API_PREFIX = "/feign/client/order-box"; |
||||||
|
|
||||||
|
String MONITORING_STATION = API_PREFIX + "/monitoring-station"; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 零件同步 |
||||||
|
*/ |
||||||
|
@GetMapping(MONITORING_STATION) |
||||||
|
void monitoringStation(); |
||||||
|
} |
||||||
@ -0,0 +1,28 @@ |
|||||||
|
package org.springblade.desk.dashboard.feign; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Hidden; |
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartRelationEntity; |
||||||
|
import org.springblade.desk.dashboard.service.IDsPartRelationService; |
||||||
|
import org.springblade.desk.dashboard.service.IDsPartService; |
||||||
|
import org.springblade.desk.dashboard.service.IDsTaskingService; |
||||||
|
import org.springblade.desk.logistics.service.IStorageMonitoringService; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
@RestController |
||||||
|
@Hidden() |
||||||
|
public class OrderBoxClient implements IOrderBoxClient { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IStorageMonitoringService storageMonitoringService; |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public void monitoringStation() { |
||||||
|
storageMonitoringService.monitoringStation(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
Loading…
Reference in new issue