9 changed files with 112 additions and 15 deletions
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturndetails; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.ResponseBody; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/12 15:30 |
|||
* @Description |
|||
*/ |
|||
@FeignClient( |
|||
contextId = "anrui-scm-ScmVehicleReturnDetails", |
|||
name = "anrui-scm", |
|||
path = "v1/scmvehiclereturndetails", |
|||
fallback = ScmVehicleReturnDetailsFeignFallback.class) |
|||
public interface ScmVehicleReturnDetailsFeign { |
|||
|
|||
@ApiOperation("查询车架号列表") |
|||
@GetMapping("/selectVinNoList") |
|||
@ResponseBody |
|||
ResultBean<List<String>> selectVinNoList(@PathVariable(value = "sid") String sid); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturndetails; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/12 15:30 |
|||
* @Description |
|||
*/ |
|||
@Component |
|||
public class ScmVehicleReturnDetailsFeignFallback { |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.yxt.anrui.scm.biz.scmvehiclereturndetails; |
|||
|
|||
import com.yxt.anrui.scm.api.scmvehiclereturndetails.ScmVehicleReturnDetailsFeign; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/12 15:29 |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "车辆采购退库详细管理") |
|||
@RequestMapping("v1/scmvehiclereturndetails") |
|||
@Controller |
|||
public class ScmVehicleReturnDetailsRest implements ScmVehicleReturnDetailsFeign { |
|||
|
|||
@Autowired |
|||
private ScmVehicleReturnDetailsService scmVehicleReturnDetailsService; |
|||
|
|||
@Override |
|||
public ResultBean<List<String>> selectVinNoList(String sid) { |
|||
return scmVehicleReturnDetailsService.selectVinNoList(sid); |
|||
} |
|||
} |
Loading…
Reference in new issue