13 changed files with 231 additions and 43 deletions
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.buscenter.api.busmaindeposit.pc; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.ResponseBody; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/28 14:07 |
|||
* @Description |
|||
*/ |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-PcBusMainDeposit", |
|||
name = "anrui-buscenter", |
|||
path = "v1/pcbusmaindeposit", |
|||
fallback = PcBusMainDepositFeignFallback.class) |
|||
public interface PcBusMainDepositFeign { |
|||
|
|||
@ResponseBody |
|||
@PostMapping(value = "/pageList") |
|||
@ApiOperation(value = "销售订单-虚拟订单分页列表") |
|||
ResultBean<PagerVo<PcBusMainDepositVo>> pageList(@RequestBody PagerQuery<PcBusMainDepositQuery> pagerQuery); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.buscenter.api.busmaindeposit.pc; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/28 14:08 |
|||
* @Description |
|||
*/ |
|||
@Component |
|||
public class PcBusMainDepositFeignFallback { |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.buscenter.api.busmaindeposit.pc; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/28 14:10 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class PcBusMainDepositQuery implements Query { |
|||
private static final long serialVersionUID = -257799062985555680L; |
|||
|
|||
@ApiModelProperty(value = "客户sid") |
|||
private String customerSid; |
|||
@ApiModelProperty(value = "业务员sid") |
|||
private String staffSid; |
|||
|
|||
@ApiModelProperty(value = "车型名称") |
|||
private String modelName; |
|||
@ApiModelProperty(value = "常用配置") |
|||
private String config; |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.buscenter.api.busmaindeposit.pc; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/28 14:09 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class PcBusMainDepositVo implements Vo { |
|||
private static final long serialVersionUID = 589097447359438621L; |
|||
|
|||
@ApiModelProperty(value = "品牌") |
|||
private String brandName; |
|||
@ApiModelProperty(value = "车型") |
|||
private String modelName; |
|||
@ApiModelProperty(value = "车型配置") |
|||
private String config; |
|||
@ApiModelProperty(value = "车型sid") |
|||
private String modelSid; |
|||
@ApiModelProperty(value = "车型配置sid") |
|||
private String modelConfigSid; |
|||
|
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.anrui.buscenter.biz.busmaindeposit.pc; |
|||
|
|||
import com.yxt.anrui.buscenter.api.busmaindeposit.pc.PcBusMainDepositFeign; |
|||
import com.yxt.anrui.buscenter.api.busmaindeposit.pc.PcBusMainDepositQuery; |
|||
import com.yxt.anrui.buscenter.api.busmaindeposit.pc.PcBusMainDepositVo; |
|||
import com.yxt.anrui.buscenter.biz.busmaindeposit.BusMainDepositService; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/28 14:21 |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "销售虚拟订单相关接口实现") |
|||
@RequestMapping("v1/pcbusmaindeposit") |
|||
@Controller |
|||
public class PcBusMainDepositRest implements PcBusMainDepositFeign { |
|||
|
|||
@Autowired |
|||
private BusMainDepositService busMainDepositService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<PcBusMainDepositVo>> pageList(PagerQuery<PcBusMainDepositQuery> pagerQuery) { |
|||
ResultBean<PagerVo<PcBusMainDepositVo>> rb = ResultBean.fireFail(); |
|||
PagerVo<PcBusMainDepositVo> pv = busMainDepositService.orderPageList(pagerQuery); |
|||
return rb.success().setData(pv); |
|||
} |
|||
} |
Loading…
Reference in new issue