26 changed files with 557 additions and 9 deletions
@ -0,0 +1,33 @@ |
|||
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.warehouseinventoryhistory.WarehouseInventoryHistoryQuery; |
|||
import com.yxt.wms.biz.func.warehouseinventoryhistory.WarehouseInventoryHistoryService; |
|||
import com.yxt.wms.biz.func.warehouseinventoryhistory.WarehouseInventoryHistoryVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/8/30 9:23 |
|||
*/ |
|||
@Api(tags = "历史库存") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/warehouseinventoryhistory") |
|||
public class WarehouseInventoryHistoryRest { |
|||
@Autowired |
|||
WarehouseInventoryHistoryService warehouseInventoryHistoryService; |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WarehouseInventoryHistoryVo>> listPage(@RequestBody PagerQuery<WarehouseInventoryHistoryQuery> pq){ |
|||
return warehouseInventoryHistoryService.listPage(pq); |
|||
} |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.yxt.wms.biz.func.warehouseinfo; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/8/29 11:52 |
|||
*/ |
|||
@Data |
|||
public class WarehouseInfoMapQuery { |
|||
private String name;//仓库名称
|
|||
@ApiModelProperty("菜单路由") |
|||
private String menuUrl; |
|||
@ApiModelProperty("组织全路径sid") |
|||
private String orgPath; |
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
private String orgLevelKey;//
|
|||
private int index;//下标
|
|||
} |
@ -0,0 +1,65 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/28 8:38 |
|||
*/ |
|||
@Data |
|||
@TableName("warehouse_inventory") |
|||
public class WarehouseInventoryHistory extends BaseEntity { |
|||
|
|||
@ApiModelProperty("批次号") |
|||
private String batchNumber; |
|||
@ApiModelProperty("厂家") |
|||
private String manufacturerSid; |
|||
@ApiModelProperty("厂家") |
|||
private String manufacturerName; |
|||
@ApiModelProperty("商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)") |
|||
private String goodsID; |
|||
@ApiModelProperty("分类sid") |
|||
private String goodsTypeSid; |
|||
@ApiModelProperty("分类名") |
|||
private String goodsTypeName; |
|||
@ApiModelProperty("品牌sid") |
|||
private String goodsBrandSid; |
|||
@ApiModelProperty("品牌名") |
|||
private String goodsBrandName; |
|||
@ApiModelProperty("商品基础信息sid") |
|||
private String goodSpuSid; |
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; |
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; |
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; |
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; |
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; |
|||
@ApiModelProperty("计量单位") |
|||
private String unit; |
|||
@ApiModelProperty("现有量") |
|||
private BigDecimal count; |
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; |
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; |
|||
@ApiModelProperty("库位sid") |
|||
private String warehouseRackSid; |
|||
@ApiModelProperty("库位编码") |
|||
private String warehouseRackCode; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
private Date orderDate; |
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:38 |
|||
*/ |
|||
@Data |
|||
public class WarehouseInventoryHistoryDto implements Dto { |
|||
@ApiModelProperty("批次号") |
|||
private String batchNumber; |
|||
@ApiModelProperty("厂家") |
|||
private String manufacturerSid; |
|||
@ApiModelProperty("厂家") |
|||
private String manufacturerName; |
|||
@ApiModelProperty("商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)") |
|||
private String goodsID; |
|||
@ApiModelProperty("分类sid") |
|||
private String goodsTypeSid; |
|||
@ApiModelProperty("分类名") |
|||
private String goodsTypeName; |
|||
@ApiModelProperty("品牌sid") |
|||
private String goodsBrandSid; |
|||
@ApiModelProperty("品牌名") |
|||
private String goodsBrandName; |
|||
@ApiModelProperty("商品基础信息sid") |
|||
private String goodSpuSid; |
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; |
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; |
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; |
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; |
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; |
|||
@ApiModelProperty("计量单位") |
|||
private String unit; |
|||
@ApiModelProperty("现有量") |
|||
private BigDecimal count; |
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; |
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; |
|||
@ApiModelProperty("库位sid") |
|||
private String warehouseRackSid; |
|||
@ApiModelProperty("库位编码") |
|||
private String warehouseRackCode; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
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.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Mapper |
|||
public interface WarehouseInventoryHistoryMapper extends BaseMapper<WarehouseInventoryHistory> { |
|||
|
|||
IPage<WarehouseInventoryHistoryVo> listPage(IPage<WarehouseInventoryHistory> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryHistory> qw); |
|||
List<WarehouseInventoryHistoryVo> getListBySpuSid(@Param("spuSid")String spuSid); |
|||
} |
@ -0,0 +1,9 @@ |
|||
<?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.warehouseinventoryhistory.WarehouseInventoryHistoryMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,42 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WarehouseInventoryHistoryQuery implements Query { |
|||
|
|||
@ApiModelProperty("商品编码") |
|||
private String goodsSkuCode; |
|||
|
|||
@ApiModelProperty("仓库") |
|||
private String warehouseSid; |
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuSid; |
|||
private String brandSid; |
|||
private String spec; |
|||
private String countStart; |
|||
private String countEnd; |
|||
|
|||
|
|||
@ApiModelProperty("条码") |
|||
private String barCode; |
|||
private String hh; |
|||
private String orgLevelKey;//权限等级
|
|||
@ApiModelProperty("菜单路由") |
|||
private String menuUrl; |
|||
@ApiModelProperty("组织全路径sid") |
|||
private String orgPath; |
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
private int index; |
|||
|
|||
|
|||
|
|||
//供应商
|
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/8/29 16:55 |
|||
*/ |
|||
@Data |
|||
public class WarehouseInventoryHistoryScheduledVo { |
|||
@ApiModelProperty("批次号") |
|||
private String batchNumber; |
|||
@ApiModelProperty("厂家") |
|||
private String manufacturerSid; |
|||
@ApiModelProperty("厂家") |
|||
private String manufacturerName; |
|||
@ApiModelProperty("商品ID(唯一编码,入库时生成,生成规则为商品编码+YYMMdd+4位流水)") |
|||
private String goodsID; |
|||
@ApiModelProperty("分类sid") |
|||
private String goodsTypeSid; |
|||
@ApiModelProperty("分类名") |
|||
private String goodsTypeName; |
|||
@ApiModelProperty("品牌sid") |
|||
private String goodsBrandSid; |
|||
@ApiModelProperty("品牌名") |
|||
private String goodsBrandName; |
|||
@ApiModelProperty("商品基础信息sid") |
|||
private String goodSpuSid; |
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; |
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; |
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; |
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; |
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; |
|||
@ApiModelProperty("计量单位") |
|||
private String unit; |
|||
@ApiModelProperty("现有量") |
|||
private BigDecimal count; |
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; |
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; |
|||
@ApiModelProperty("库位sid") |
|||
private String warehouseRackSid; |
|||
@ApiModelProperty("库位编码") |
|||
private String warehouseRackCode; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
private Date orderDate=new Date(); |
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
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.biz.func.warehouseinventory.WarehouseInventoryService; |
|||
import com.yxt.wms.feign.warehouse.warehouseinventoryhistory.WarehouseInventoryHistoryFeign; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.scheduling.annotation.Scheduled; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:40 |
|||
*/ |
|||
@Service |
|||
public class WarehouseInventoryHistoryService extends MybatisBaseService<WarehouseInventoryHistoryMapper, WarehouseInventoryHistory> { |
|||
|
|||
@Autowired |
|||
WarehouseInventoryHistoryFeign warehouseInventoryHistoryFeign; |
|||
|
|||
public ResultBean<PagerVo<WarehouseInventoryHistoryVo>> listPage(PagerQuery<WarehouseInventoryHistoryQuery> pq) { |
|||
ResultBean rb =new ResultBean().fail(); |
|||
WarehouseInventoryHistoryQuery query = pq.getParams(); |
|||
|
|||
return warehouseInventoryHistoryFeign.listPage(pq); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryhistory; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/2/26 13:37 |
|||
*/ |
|||
@Data |
|||
public class WarehouseInventoryHistoryVo implements Vo { |
|||
@ApiModelProperty("批次号") |
|||
private String batchNumber; |
|||
@ApiModelProperty("商品基础信息sid") |
|||
private String goodsSpuSid; |
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; |
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; |
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; |
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; |
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; |
|||
@ApiModelProperty("计量单位") |
|||
private String unit; |
|||
@ApiModelProperty("现有量") |
|||
private BigDecimal count; |
|||
|
|||
private Date orderDate; |
|||
private List<WarehouseInventoryHistoryVo> list=new ArrayList<>(); |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.wms.biz.func.warehouseinventoryrecord; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2024/8/28 16:45 |
|||
*/ |
|||
@Data |
|||
public class WarehouseInventoryRecordQuery1 implements Query { |
|||
private String billSid; |
|||
private String goodsSpuName; |
|||
private String goodsSkuTitle; |
|||
private String spec; |
|||
private String warehouseName; |
|||
private String billType; |
|||
private String startTime; |
|||
private String endTime; |
|||
|
|||
private String orgLevelKey;//权限等级
|
|||
@ApiModelProperty("菜单路由") |
|||
private String menuUrl; |
|||
@ApiModelProperty("组织全路径sid") |
|||
private String orgPath; |
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
private int index; |
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.yxt.wms.feign.warehouse.warehouseinventoryhistory; |
|||
|
|||
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.warehouseinventoryhistory.WarehouseInventoryHistoryQuery; |
|||
import com.yxt.wms.biz.func.warehouseinventoryhistory.WarehouseInventoryHistoryVo; |
|||
import io.swagger.annotations.Api; |
|||
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; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysRoleFeign.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysrole.SysRoleFeign <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 |
|||
*/ |
|||
@Api(tags = "历史库存") |
|||
@FeignClient( |
|||
contextId = "ss-common-warehouse-WarehouseInventoryHistory", |
|||
name = "ss-common-warehouse", |
|||
path = "/apiadmin/warehouseinventoryhistory", |
|||
fallback = WarehouseInventoryHistoryFeignFallback.class) |
|||
public interface WarehouseInventoryHistoryFeign { |
|||
|
|||
@ApiOperation("分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<WarehouseInventoryHistoryVo>> listPage(@RequestBody PagerQuery<WarehouseInventoryHistoryQuery> pq); |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.yxt.wms.feign.warehouse.warehouseinventoryhistory; |
|||
|
|||
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.warehouseinventoryhistory.WarehouseInventoryHistoryQuery; |
|||
import com.yxt.wms.biz.func.warehouseinventoryhistory.WarehouseInventoryHistoryVo; |
|||
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 WarehouseInventoryHistoryFeignFallback implements WarehouseInventoryHistoryFeign { |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<WarehouseInventoryHistoryVo>> listPage(PagerQuery<WarehouseInventoryHistoryQuery> pq) { |
|||
return null; |
|||
} |
|||
} |
Loading…
Reference in new issue