36 changed files with 674 additions and 36 deletions
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.wms.apiadmin.aggregation; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.wms.biz.func.basegoodssku.BaseGoodsSkuService; |
||||
|
import com.yxt.wms.biz.func.basegoodssku.BaseGoodsSkuVo; |
||||
|
import com.yxt.wms.biz.func.basegoodsspu.BaseGoodsSpuDto; |
||||
|
import com.yxt.wms.biz.func.basegoodsspu.BaseGoodsSpuQuery; |
||||
|
import com.yxt.wms.biz.func.basegoodsspu.BaseGoodsSpuService; |
||||
|
import com.yxt.wms.biz.func.basegoodsspu.BaseGoodsSpuVo; |
||||
|
import com.yxt.wms.utils.OrgPathQuery; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletRequest; |
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.io.IOException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/4/12 11:20 |
||||
|
*/ |
||||
|
@RestController() |
||||
|
@RequestMapping("/apiadmin/basegoodssku") |
||||
|
public class BaseGoodsSkuRest { |
||||
|
|
||||
|
|
||||
|
@Autowired |
||||
|
BaseGoodsSkuService baseGoodsSkuService; |
||||
|
|
||||
|
@ApiOperation("查询组织下所有商品") |
||||
|
@PostMapping("/listAllByOrg") |
||||
|
public ResultBean<List<BaseGoodsSkuVo>> listAllByOrg(@RequestBody OrgPathQuery query) { |
||||
|
return baseGoodsSkuService.listAllByOrg(query); |
||||
|
} |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.wms.apiadmin.aggregation; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordDto; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordService; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Api(tags = "操作记录") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/operationrecord") |
||||
|
public class OperationRecordRest { |
||||
|
@Autowired |
||||
|
OperationRecordService operationRecordService; |
||||
|
|
||||
|
|
||||
|
@PostMapping("/save") |
||||
|
@ApiOperation("新增") |
||||
|
ResultBean<String> save(@RequestBody OperationRecordDto dto) { |
||||
|
return operationRecordService.save(dto); |
||||
|
} |
||||
|
|
||||
|
@GetMapping("/details") |
||||
|
@ApiOperation("详情") |
||||
|
ResultBean<List<OperationRecordVo>> details(@RequestParam("sid") String sid) { |
||||
|
return operationRecordService.details(sid); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.yxt.wms.apiadmin.aggregation; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbilldetail.WarehouseAnsBillDetailService; |
||||
|
import com.yxt.wms.biz.func.warehouseansbilldetail.WarehouseAnsBillDetailVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/6/6 15:04 |
||||
|
*/ |
||||
|
@Api(tags = "预期到货通知单明细") |
||||
|
@RestController |
||||
|
@RequestMapping("/apiadmin/wmsansbilldetails") |
||||
|
public class WarehouseAnsBillDetailsRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private WarehouseAnsBillDetailService warehouseAnsBillDetailService; |
||||
|
|
||||
|
@ApiOperation("根据sid查询详情") |
||||
|
@GetMapping("/selectByBillSid/{sid}") |
||||
|
public ResultBean<PagerVo<WarehouseAnsBillDetailVo>> selectByBillSid(@PathVariable("sid") String sid){ |
||||
|
return warehouseAnsBillDetailService.selectByBillSid(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.wms.biz.func.operationrecord; |
||||
|
|
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecord extends BaseEntity { |
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("修改用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("修改用户") |
||||
|
private String userName; |
||||
|
@ApiModelProperty("内容") |
||||
|
private String content; |
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.wms.biz.func.operationrecord; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecordDto { |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("创建时间") |
||||
|
private Date createTime; |
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("修改用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("修改用户") |
||||
|
private String userName; |
||||
|
@ApiModelProperty("内容") |
||||
|
private String content; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.wms.biz.func.operationrecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface OperationRecordMapper extends BaseMapper<OperationRecord> { |
||||
|
|
||||
|
List<OperationRecordVo> details(String sid); |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.wms.biz.func.operationrecord.OperationRecordMapper"> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,42 @@ |
|||||
|
package com.yxt.wms.biz.func.operationrecord; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecordQuery implements Query { |
||||
|
@ApiModelProperty("业务类型") |
||||
|
private String busTypeKey; |
||||
|
@ApiModelProperty("外部单号(业务单据编号)") |
||||
|
private String sourceBillNo; |
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; |
||||
|
@ApiModelProperty("商品sid") |
||||
|
private String goodsSkuSid; |
||||
|
@ApiModelProperty("申请开始时间") |
||||
|
private String applicationTimeStart; |
||||
|
@ApiModelProperty("申请结束时间") |
||||
|
private String applicationTimeEnd; |
||||
|
@ApiModelProperty("货物状态(在途、部分收货、已收货、已取消)") |
||||
|
private String billState; |
||||
|
@ApiModelProperty("供应商") |
||||
|
private String supplierName; |
||||
|
@ApiModelProperty("运单号") |
||||
|
private String waybillNumber; |
||||
|
@ApiModelProperty("库区sid") |
||||
|
private String warehouseRackSid; |
||||
|
|
||||
|
private String orgLevelKey;//权限等级
|
||||
|
@ApiModelProperty("菜单路由") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("组织全路径sid") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
private int index; |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.wms.biz.func.operationrecord; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateTime; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.feign.warehouse.operationrecord.OperationRecordFeign; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class OperationRecordService extends MybatisBaseService<OperationRecordMapper, OperationRecord> { |
||||
|
@Autowired |
||||
|
OperationRecordFeign operationRecordFeign; |
||||
|
|
||||
|
|
||||
|
public ResultBean<String> save(OperationRecordDto dto) { |
||||
|
return operationRecordFeign.save(dto); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
public ResultBean<List<OperationRecordVo>> details(String sid) { |
||||
|
return operationRecordFeign.details(sid); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.wms.biz.func.operationrecord; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 9:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OperationRecordVo { |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("创建时间") |
||||
|
private Date createTime; |
||||
|
@ApiModelProperty("单据sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("修改用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("修改用户") |
||||
|
private String userName; |
||||
|
@ApiModelProperty("内容") |
||||
|
private String content; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
package com.yxt.wms.biz.func.warehouseansbill; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/7/24 15:24 |
||||
|
*/ |
||||
|
public class WarehouseAnsBillExcelVo { |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.wms.biz.func.warehouseansbilldetail; |
||||
|
|
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/9 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseAnsBillDetail extends BaseEntity { |
||||
|
|
||||
|
@ApiModelProperty("来源单sid") |
||||
|
private String billSid; |
||||
|
@ApiModelProperty("图示") |
||||
|
private String illustration; |
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSkuTitle; |
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; |
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; |
||||
|
@ApiModelProperty("预约数量(采购订单数量)") |
||||
|
private double orderCount; |
||||
|
@ApiModelProperty("待入库数量-根据收货单计算") |
||||
|
private Integer waitInCount; |
||||
|
@ApiModelProperty("实际入库数量-根据收货单计算") |
||||
|
private Integer actualInCount; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.wms.biz.func.warehouseansbilldetail; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/9 |
||||
|
**/ |
||||
|
@Mapper |
||||
|
public interface WarehouseAnsBillDetailMapper extends BaseMapper<WarehouseAnsBillDetail> { |
||||
|
IPage<WarehouseAnsBillDetailVo> listPage(IPage<WarehouseAnsBillDetail> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseAnsBillDetail> qw); |
||||
|
WarehouseAnsBillDetailVo initialization (@Param("sid") String sid); |
||||
|
int deleteDetails(String sid); |
||||
|
@Delete("delete from wms_ans_bill_details where sid = #{sid}") |
||||
|
void delByMainSid(String billSid); |
||||
|
List<WarehouseAnsListDetailsVo> selectByBillSid(String sid); |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.wms.biz.func.warehouseansbilldetail.WarehouseAnsBillDetailMapper"> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,13 @@ |
|||||
|
package com.yxt.wms.biz.func.warehouseansbilldetail; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/6/6 15:10 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseAnsBillDetailQuery implements Query { |
||||
|
private String name; |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.wms.biz.func.warehouseansbilldetail; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateTime; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.wms.feign.warehouse.warehouseansbilldetail.WarehouseAnsBillDetailFeign; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/9 |
||||
|
**/ |
||||
|
@Service |
||||
|
public class WarehouseAnsBillDetailService extends MybatisBaseService<WarehouseAnsBillDetailMapper, WarehouseAnsBillDetail> { |
||||
|
@Autowired |
||||
|
WarehouseAnsBillDetailFeign warehouseAnsBillDetailFeign; |
||||
|
|
||||
|
|
||||
|
|
||||
|
public ResultBean<PagerVo<WarehouseAnsBillDetailVo>> selectByBillSid(String sid) { |
||||
|
return warehouseAnsBillDetailFeign.selectByBillSid(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.yxt.wms.biz.func.warehouseansbilldetail; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/10 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseAnsBillDetailVo { |
||||
|
|
||||
|
@ApiModelProperty("来源单sid") |
||||
|
private String sourceBillSid; |
||||
|
@ApiModelProperty("图示") |
||||
|
private String illustration; |
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSkuTitle; |
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsSkuCode; |
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; |
||||
|
@ApiModelProperty("预约数量(采购订单数量)") |
||||
|
private double orderCount; |
||||
|
@ApiModelProperty("待入库数量-根据收货单计算") |
||||
|
private Integer waitInCount; |
||||
|
@ApiModelProperty("实际入库数量-根据收货单计算") |
||||
|
private Integer actualInCount; |
||||
|
private String barCode; |
||||
|
private String specificationCode; |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.yxt.wms.feign.warehouse.operationrecord; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordDto; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Api(tags = "预期到货通知单") |
||||
|
@FeignClient( |
||||
|
contextId = "ss-common-warehouse-OperationRecord", |
||||
|
name = "ss-common-warehouse", |
||||
|
path = "/apiadmin/operationrecord", |
||||
|
fallback = OperationRecordFeignFallback.class) |
||||
|
public interface OperationRecordFeign { |
||||
|
@PostMapping("/save") |
||||
|
@ApiOperation("新增") |
||||
|
ResultBean<String> save(@RequestBody OperationRecordDto dto); |
||||
|
|
||||
|
@GetMapping("/details") |
||||
|
@ApiOperation("详情") |
||||
|
ResultBean<List<OperationRecordVo>> details(@RequestParam("sid") String sid); |
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
package com.yxt.wms.feign.warehouse.operationrecord; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordDto; |
||||
|
import com.yxt.wms.biz.func.operationrecord.OperationRecordVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillDto; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillQuery; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsDetailsVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysRoleFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleFeignFallback <br/> |
||||
|
* Description: 角色. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:29 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class OperationRecordFeignFallback implements OperationRecordFeign { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> save(OperationRecordDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<OperationRecordVo>> details(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.yxt.wms.feign.warehouse.warehouseansbilldetail; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillDto; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillQuery; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsDetailsVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbilldetail.WarehouseAnsBillDetailVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
@Api(tags = "预期到货通知单") |
||||
|
@FeignClient( |
||||
|
contextId = "ss-common-warehouse-WmsAnsBillDetail", |
||||
|
name = "ss-common-warehouse", |
||||
|
path = "/apiadmin/warehouseansbillDetail", |
||||
|
fallback = WarehouseAnsBillDetailFeignFallback.class) |
||||
|
public interface WarehouseAnsBillDetailFeign { |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<WarehouseAnsBillDetailVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
|
||||
|
@ApiOperation("根据sid查询详情") |
||||
|
@PostMapping("/selectByBillSid/{sid}") |
||||
|
public ResultBean<PagerVo<WarehouseAnsBillDetailVo>> selectByBillSid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
package com.yxt.wms.feign.warehouse.warehouseansbilldetail; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillDto; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillQuery; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsBillVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbill.WarehouseAnsDetailsVo; |
||||
|
import com.yxt.wms.biz.func.warehouseansbilldetail.WarehouseAnsBillDetailVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysRoleFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleFeignFallback <br/> |
||||
|
* Description: 角色. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:29 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class WarehouseAnsBillDetailFeignFallback implements WarehouseAnsBillDetailFeign { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<WarehouseAnsBillDetailVo> fetchDetailsBySid(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<WarehouseAnsBillDetailVo>> selectByBillSid(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue