7 changed files with 187 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturn; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/6 16:12 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class ScmVehicleReturn extends BaseEntity { |
|||
private static final long serialVersionUID = -6050914358262441388L; |
|||
@ApiModelProperty(value = "申请编号") |
|||
private String applicationCode; |
|||
@ApiModelProperty(value = "申请人") |
|||
private String applicationName; |
|||
@ApiModelProperty(value = "退库原因") |
|||
private String reason; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturn; |
|||
|
|||
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/6 16:39 |
|||
* @Description |
|||
*/ |
|||
@FeignClient( |
|||
contextId = "anrui-scm-ScmVehicleReturn", |
|||
name = "anrui-scm", |
|||
path = "v1/scmvehiclereturn", |
|||
fallback = ScmVehicleReturnFeignFallback.class) |
|||
public interface ScmVehicleReturnFeign { |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
ResultBean<PagerVo<ScmVehicleReturnVo>> listPage(@RequestBody PagerQuery<ScmVehicleReturnQuery> pagerQuery); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturn; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/6 16:40 |
|||
* @Description |
|||
*/ |
|||
@Component |
|||
public class ScmVehicleReturnFeignFallback { |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturn; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/6 16:55 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class ScmVehicleReturnQuery implements Query { |
|||
private static final long serialVersionUID = 3301749651674469965L; |
|||
@ApiModelProperty(value = "开始日期") |
|||
private String applyDateStart; |
|||
|
|||
@ApiModelProperty(value = "结束日期") |
|||
private String applyDateEnd; |
|||
|
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturn; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/6 16:48 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class ScmVehicleReturnVo implements Vo { |
|||
private static final long serialVersionUID = 115347131385810982L; |
|||
@ApiModelProperty(value = "sid") |
|||
private String sid; |
|||
@ApiModelProperty(value = "状态") |
|||
private String state; |
|||
@ApiModelProperty(value = "申请编号") |
|||
private String applicationCode; |
|||
@ApiModelProperty(value = "申请人") |
|||
private String applicationName; |
|||
@ApiModelProperty(value = "申请日期") |
|||
private String createTime; |
|||
@ApiModelProperty(value = "退库原因") |
|||
private String reason; |
|||
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclereturndetails; |
|||
|
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/6 16:24 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class ScmVehicleReturnDetails extends BaseEntity { |
|||
private static final long serialVersionUID = 67935382962875224L; |
|||
@ApiModelProperty(value = "采购退库申请sid") |
|||
private String vehicleOutSid; |
|||
@ApiModelProperty(value = "车架号") |
|||
private String vinNo; |
|||
@ApiModelProperty(value = "车型名称") |
|||
private String modelName; |
|||
@ApiModelProperty(value = "常用配置") |
|||
private String configName; |
|||
@ApiModelProperty(value = "入库日期") |
|||
private Date inboundDate; |
|||
} |
Loading…
Reference in new issue