Compare commits
2 Commits
41673953de
...
0c45ddd995
| Author | SHA1 | Date |
|---|---|---|
|
|
0c45ddd995 | 4 weeks ago |
|
|
4a316b941c | 4 weeks ago |
3 changed files with 36 additions and 60 deletions
@ -1,53 +0,0 @@ |
|||||||
/** |
|
||||||
* BladeX Commercial License Agreement |
|
||||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
|
||||||
* <p> |
|
||||||
* Use of this software is governed by the Commercial License Agreement |
|
||||||
* obtained after purchasing a license from BladeX. |
|
||||||
* <p> |
|
||||||
* 1. This software is for development use only under a valid license |
|
||||||
* from BladeX. |
|
||||||
* <p> |
|
||||||
* 2. Redistribution of this software's source code to any third party |
|
||||||
* without a commercial license is strictly prohibited. |
|
||||||
* <p> |
|
||||||
* 3. Licensees may copyright their own code but cannot use segments |
|
||||||
* from this software for such purposes. Copyright of this software |
|
||||||
* remains with BladeX. |
|
||||||
* <p> |
|
||||||
* Using this software signifies agreement to this License, and the software |
|
||||||
* must not be used for illegal purposes. |
|
||||||
* <p> |
|
||||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
|
||||||
* not liable for any claims arising from secondary or illegal development. |
|
||||||
* <p> |
|
||||||
* Author: Chill Zhuang (bladejava@qq.com) |
|
||||||
*/ |
|
||||||
package org.springblade.desk.order.feign; |
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.Hidden; |
|
||||||
import lombok.RequiredArgsConstructor; |
|
||||||
import org.springblade.core.tenant.annotation.NonDS; |
|
||||||
import org.springblade.desk.order.pojo.entity.MoldApply; |
|
||||||
import org.springblade.desk.order.service.IMoldApplyService; |
|
||||||
import org.springframework.web.bind.annotation.RestController; |
|
||||||
|
|
||||||
/** |
|
||||||
* Feign 排产相关定时任务接口 |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
@NonDS |
|
||||||
@Hidden() |
|
||||||
@RestController |
|
||||||
@RequiredArgsConstructor |
|
||||||
public class MoldApplyClient implements IMoldApplyClient { |
|
||||||
|
|
||||||
private final IMoldApplyService moldApplyService; |
|
||||||
|
|
||||||
|
|
||||||
@Override |
|
||||||
public Boolean saveByDemand(MoldApply moldApply) { |
|
||||||
return moldApplyService.saveByDemand(moldApply); |
|
||||||
} |
|
||||||
} |
|
||||||
@ -0,0 +1,29 @@ |
|||||||
|
package org.springblade.desk.order.feign; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Hidden; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
|
import org.springblade.core.tenant.annotation.NonDS; |
||||||
|
import org.springblade.desk.order.pojo.entity.MoldDemand; |
||||||
|
import org.springblade.desk.order.service.IMoldDemandService; |
||||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* Feign 排产相关定时任务接口 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@NonDS |
||||||
|
@Hidden() |
||||||
|
@RestController |
||||||
|
@RequiredArgsConstructor |
||||||
|
public class MoldDemandClient implements IMoldDemandClient { |
||||||
|
|
||||||
|
private final IMoldDemandService moldDemandService; |
||||||
|
|
||||||
|
@Override |
||||||
|
@PostMapping(SAVE) |
||||||
|
public Boolean save(MoldDemand moldDemand) { |
||||||
|
return moldDemandService.save(moldDemand); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue