35 changed files with 2204 additions and 168 deletions
@ -1,65 +1,111 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.yxt.common.core.domain.BaseEntity; |
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
||||
import java.math.BigDecimal; |
import java.math.BigDecimal; |
||||
|
|
||||
/** |
/** |
||||
* @description: |
* Project: wms(yxt) <br/> |
||||
* @author: dimengzhe |
* File: WmsInventoryRecord.java <br/> |
||||
* @date: 2024/4/24 |
* Class: inventroy.api.wmsinventoryrecord.WmsInventoryRecord <br/> |
||||
**/ |
* Description: 库存出入库记录. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-04-08 17:27:39 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
@Data |
@Data |
||||
|
@ApiModel(value = "库存出入库记录", description = "库存出入库记录") |
||||
|
@TableName("wms_inventory_record") |
||||
public class WarehouseInventoryRecord extends BaseEntity { |
public class WarehouseInventoryRecord extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
@ApiModelProperty("库存sid") |
@ApiModelProperty("库存sid") |
||||
private String inventorySid; |
private String inventorySid; // 库存sid
|
||||
@ApiModelProperty("商品ID") |
@ApiModelProperty("商品ID") |
||||
private String goodsID; |
private String goodsID; // 商品ID
|
||||
@ApiModelProperty("来源单sid(业务单sid)") |
@ApiModelProperty("来源单sid(业务单sid)") |
||||
private String sourceBillSid; |
private String sourceBillSid; // 来源单sid(业务单sid)
|
||||
@ApiModelProperty("来源单据编号") |
@ApiModelProperty("来源单据编号") |
||||
private String billNo; |
private String billNo; // 来源单据编号
|
||||
@ApiModelProperty("单据类型(1入库、0出库)") |
@ApiModelProperty("单据类型(1入库、0出库)") |
||||
private String billType; |
private String billType; // 单据类型(1入库、0出库)
|
||||
@ApiModelProperty("业务类型key(采购入库、维修出入库、销售出入库等)") |
@ApiModelProperty("业务类型key(采购入库、维修出入库、销售出入库等)") |
||||
private String busTypeKey; |
private String busTypeKey; // 业务类型key(采购入库、维修出入库、销售出入库等)
|
||||
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
private String busTypeValue; |
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
@ApiModelProperty("客户/供应商sid,出库是为客户,入库时为供应商") |
@ApiModelProperty("客户/供应商sid,出库是为客户,入库时为供应商") |
||||
private String billObjSid; |
private String billObjSid; // 客户/供应商sid,出库是为客户,入库时为供应商
|
||||
@ApiModelProperty("客户/供应商名称") |
@ApiModelProperty("客户/供应商名称") |
||||
private String billObjName; |
private String billObjName; // 客户/供应商名称
|
||||
@ApiModelProperty("批次号") |
@ApiModelProperty("批次号") |
||||
private String batchNumber; |
private String batchNumber; // 批次号
|
||||
@ApiModelProperty("商品基础信息Sid") |
@ApiModelProperty("商品基础信息Sid") |
||||
private String goodSpuSid; |
private String goodSpuSid; // 商品基础信息Sid
|
||||
@ApiModelProperty("商品名称") |
@ApiModelProperty("商品名称") |
||||
private String goodsSpuName; |
private String goodsSpuName; // 商品名称
|
||||
@ApiModelProperty("商品Skusid") |
@ApiModelProperty("商品Skusid") |
||||
private String goodsSkuSid; |
private String goodsSkuSid; // 商品Skusid
|
||||
@ApiModelProperty("商品Sku名称") |
@ApiModelProperty("商品Sku名称") |
||||
private String goodsSkuTitle; |
private String goodsSkuTitle; // 商品Sku名称
|
||||
@ApiModelProperty("商品编码(图号)") |
@ApiModelProperty("商品编码(图号)") |
||||
private String goodsSkuCode; |
private String goodsSkuCode; // 商品编码(图号)
|
||||
@ApiModelProperty("规格型号") |
@ApiModelProperty("规格型号") |
||||
private String goodsSkuOwnSpec; |
private String goodsSkuOwnSpec; // 规格型号
|
||||
@ApiModelProperty("出入库后的库存量") |
@ApiModelProperty("出入库后的库存量") |
||||
private BigDecimal currentCount; |
private BigDecimal currentCount; // 出入库后的库存量
|
||||
@ApiModelProperty("计量单位") |
@ApiModelProperty("计量单位") |
||||
private String unit; |
private String unit; // 计量单位
|
||||
@ApiModelProperty("数量") |
@ApiModelProperty("数量") |
||||
private BigDecimal count; |
private BigDecimal count; // 数量
|
||||
@ApiModelProperty("仓库sid") |
@ApiModelProperty("仓库sid") |
||||
private String warehouseSid; |
private String warehouseSid; // 仓库sid
|
||||
@ApiModelProperty("仓库名称") |
@ApiModelProperty("仓库名称") |
||||
private String warehouseName; |
private String warehouseName; // 仓库名称
|
||||
@ApiModelProperty("库位sid") |
@ApiModelProperty("库位sid") |
||||
private String warehouseRackSid; |
private String warehouseRackSid; // 库位sid
|
||||
@ApiModelProperty("库位编号") |
@ApiModelProperty("库位编号") |
||||
private String warehouseRackCode; |
private String warehouseRackCode; // 库位编号
|
||||
private String handlerSid;//经办人sid
|
@ApiModelProperty("入库单价") |
||||
private String handlerName;//经办人
|
private BigDecimal cost; |
||||
|
@ApiModelProperty("税率") |
||||
|
private BigDecimal tax; |
||||
|
@ApiModelProperty("入库金额") |
||||
|
private BigDecimal amount; |
||||
|
@ApiModelProperty("经办人sid") |
||||
|
private String handlerSid; // 库位sid
|
||||
|
@ApiModelProperty("经办人") |
||||
|
private String handlerName; // 库位编号
|
||||
} |
} |
||||
|
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: wms(yxt) <br/> |
||||
|
* File: WmsInventoryRecordVo.java <br/> |
||||
|
* Class: inventroy.api.wmsinventoryrecord.WmsInventoryRecordVo <br/> |
||||
|
* Description: 库存出入库记录 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-04-08 17:27:39 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "库存出入库记录 视图数据详情", description = "库存出入库记录 视图数据详情") |
||||
|
public class WarehouseInventoryRecordDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("库存sid") |
||||
|
private String inventorySid; // 库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@ApiModelProperty("来源单sid(业务单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(业务单sid)
|
||||
|
@ApiModelProperty("来源单据编号") |
||||
|
private String billNo; // 来源单据编号
|
||||
|
@ApiModelProperty("单据类型(1入库、0出库)") |
||||
|
private String billType; // 单据类型(1入库、0出库)
|
||||
|
@ApiModelProperty("业务类型key(采购入库、维修出入库、销售出入库等)") |
||||
|
private String busTypeKey; // 业务类型key(采购入库、维修出入库、销售出入库等)
|
||||
|
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
|
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
|
@ApiModelProperty("客户/供应商sid,出库是为客户,入库时为供应商") |
||||
|
private String billObjSid; // 客户/供应商sid,出库是为客户,入库时为供应商
|
||||
|
@ApiModelProperty("客户/供应商名称") |
||||
|
private String billObjName; // 客户/供应商名称
|
||||
|
@ApiModelProperty("批次号") |
||||
|
private String batchNumber; // 批次号
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("出入库后的库存量") |
||||
|
private BigDecimal currentCount; // 出入库后的库存量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("库位sid") |
||||
|
private String warehouseRackSid; // 库位sid
|
||||
|
@ApiModelProperty("库位编号") |
||||
|
private String warehouseRackCode; // 库位编号
|
||||
|
|
||||
|
} |
@ -1,16 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.warehouse.biz.warehouseinventoryrecord.report.WarehouseInAndOutboundVo; |
||||
|
import com.yxt.warehouse.biz.warehouseinventoryrecord.report.WarehouseInventoryCountDetailsVo; |
||||
|
import com.yxt.warehouse.biz.warehouseinventoryrecord.report.WarehouseInventoryDetailsRecordVo; |
||||
|
import com.yxt.warehouse.biz.warehouseoldinventory.WarehouseOldInventoryDetailsListVo; |
||||
import org.apache.ibatis.annotations.Mapper; |
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
/** |
/** |
||||
* @description: |
* Project: Warehouse(yxt) <br/> |
||||
* @author: dimengzhe |
* File: WarehouseInventoryRecordMapper.java <br/> |
||||
* @date: 2024/4/24 |
* Class: inventroy.biz.Warehouseinventoryrecord.WarehouseInventoryRecordMapper <br/> |
||||
**/ |
* Description: 库存出入库记录. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-04-08 17:27:39 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
@Mapper |
@Mapper |
||||
public interface WarehouseInventoryRecordMapper extends BaseMapper<WarehouseInventoryRecord> { |
public interface WarehouseInventoryRecordMapper extends BaseMapper<WarehouseInventoryRecord> { |
||||
List<WarehouseInventoryRecordListVo> getStorageInventoryRecordList(String sid); |
|
||||
|
//@Update("update Warehouse_inventory_record set name=#{msg} where id=#{id}")
|
||||
|
//IPage<WarehouseInventoryRecordVo> voPage(IPage<WarehouseInventoryRecord> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryRecord> qw);
|
||||
|
|
||||
|
IPage<WarehouseInventoryRecordVo> selectPageVo(IPage<WarehouseInventoryRecord> page, @Param(Constants.WRAPPER) Wrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
List<WarehouseInventoryRecordVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
@Select("select * from Warehouse_inventory_record") |
||||
|
List<WarehouseInventoryRecordVo> selectListVo(); |
||||
|
|
||||
|
String selInItCountBySettleTime(@Param("settleTime") String settleTime); |
||||
|
|
||||
|
List<WarehouseInAndOutboundVo> selInboundAndOutboundCount(@Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
IPage<WarehouseInventoryCountDetailsVo> inventoryInboundAndOutboundStats(IPage<WarehouseInventoryRecord> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
IPage<WarehouseInventoryDetailsRecordVo> inventoryDetailsRecord(IPage<WarehouseInventoryRecord> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
List<WarehouseInventoryRecordListVo> getWarehouseInventoryRecordList(String sid); |
||||
|
|
||||
|
IPage<WarehouseInventoryRecordsVo> listPage(IPage<WarehouseInventoryRecord> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
List<WarehouseInventoryRecordsExcelVo> listExcel(@Param(Constants.WRAPPER) QueryWrapper<WarehouseInventoryRecord> qw); |
||||
|
|
||||
|
List<WarehouseOldInventoryDetailsListVo> getDetailsList(String sid); |
||||
|
|
||||
|
List<WarehouseInventoryRecord> selBySourceSid(String sid); |
||||
|
|
||||
|
List<WarehouseInventoryRecord> selBySourceSidAndSkuCode(@Param("sid") String sid, @Param("goodsSkuCode") String goodsSkuCode); |
||||
} |
} |
||||
|
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: wms(yxt) <br/> |
||||
|
* File: WmsInventoryRecordQuery.java <br/> |
||||
|
* Class: inventroy.api.wmsinventoryrecord.WmsInventoryRecordQuery <br/> |
||||
|
* Description: 库存出入库记录 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-04-08 17:27:39 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "库存出入库记录 查询条件", description = "库存出入库记录 查询条件") |
||||
|
public class WarehouseInventoryRecordQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("库存sid") |
||||
|
private String inventorySid; // 库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@ApiModelProperty("来源单sid(业务单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(业务单sid)
|
||||
|
@ApiModelProperty("来源单据编号") |
||||
|
private String billNo; // 来源单据编号
|
||||
|
@ApiModelProperty("单据类型(1入库、0出库)") |
||||
|
private String billType; // 单据类型(1入库、0出库)
|
||||
|
@ApiModelProperty("业务类型key(采购入库、维修出入库、销售出入库等)") |
||||
|
private String busTypeKey; // 业务类型key(采购入库、维修出入库、销售出入库等)
|
||||
|
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
|
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
|
@ApiModelProperty("客户/供应商sid,出库是为客户,入库时为供应商") |
||||
|
private String billObjSid; // 客户/供应商sid,出库是为客户,入库时为供应商
|
||||
|
@ApiModelProperty("客户/供应商名称") |
||||
|
private String billObjName; // 客户/供应商名称
|
||||
|
@ApiModelProperty("批次号") |
||||
|
private String batchNumber; // 批次号
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("出入库后的库存量") |
||||
|
private BigDecimal currentCount; // 出入库后的库存量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("库位sid") |
||||
|
private String warehouseRackSid; // 库位sid
|
||||
|
@ApiModelProperty("库位编号") |
||||
|
private String warehouseRackCode; // 库位编号
|
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* Project: wms(yxt) <br/> |
||||
|
* File: WmsInventoryRecordVo.java <br/> |
||||
|
* Class: inventroy.api.wmsinventoryrecord.WmsInventoryRecordVo <br/> |
||||
|
* Description: 库存出入库记录 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-04-08 17:27:39 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "库存出入库记录 视图数据对象", description = "库存出入库记录 视图数据对象") |
||||
|
public class WarehouseInventoryRecordVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("库存sid") |
||||
|
private String inventorySid; // 库存sid
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@ApiModelProperty("来源单sid(业务单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(业务单sid)
|
||||
|
@ApiModelProperty("来源单据编号") |
||||
|
private String billNo; // 来源单据编号
|
||||
|
@ApiModelProperty("单据类型(1入库、0出库)") |
||||
|
private String billType; // 单据类型(1入库、0出库)
|
||||
|
@ApiModelProperty("业务类型key(采购入库、维修出入库、销售出入库等)") |
||||
|
private String busTypeKey; // 业务类型key(采购入库、维修出入库、销售出入库等)
|
||||
|
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
|
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
|
@ApiModelProperty("客户/供应商sid,出库是为客户,入库时为供应商") |
||||
|
private String billObjSid; // 客户/供应商sid,出库是为客户,入库时为供应商
|
||||
|
@ApiModelProperty("客户/供应商名称") |
||||
|
private String billObjName; // 客户/供应商名称
|
||||
|
@ApiModelProperty("批次号") |
||||
|
private String batchNumber; // 批次号
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("出入库后的库存量") |
||||
|
private BigDecimal currentCount; // 出入库后的库存量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("数量") |
||||
|
private BigDecimal count; // 数量
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("库位sid") |
||||
|
private String warehouseRackSid; // 库位sid
|
||||
|
@ApiModelProperty("库位编号") |
||||
|
private String warehouseRackCode; // 库位编号
|
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord.report; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/9 15:44 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseInAndOutboundVo { |
||||
|
private String count; |
||||
|
private String billType; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord.report; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 17:49 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseInventoryCountDetailsVo implements Vo { |
||||
|
|
||||
|
private String busTypeValue;//业务类型
|
||||
|
private String amountTax;//金额(含税)
|
||||
|
private String amount;//金额
|
||||
|
private String count;//数量
|
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord.report; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 17:48 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseInventoryCountReportQuery implements Query { |
||||
|
|
||||
|
private String settleTime; |
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
private String useOrgSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord.report; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/8 17:48 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseInventoryCountReportVo implements Vo { |
||||
|
private String inItCount;//期初数量
|
||||
|
private String inItAmountTax;//期初金额(含税)
|
||||
|
private String inItAmount;//期初金额
|
||||
|
private String inboundCount;//入库数量
|
||||
|
private String inboundAmountTax;//入库金额(含税)
|
||||
|
private String inboundAmount;//入库金额
|
||||
|
private String outboundCount;//出库数量
|
||||
|
private String outboundAmountTax;//出库金额(含税)
|
||||
|
private String outboundAmount;//出库金额
|
||||
|
private String changeCount;//变化数量
|
||||
|
private String changeAmountTax;//变化金额(含税)
|
||||
|
private String changeAmount;//变化金额
|
||||
|
private String settleCount;//结存数量
|
||||
|
private String settleAmountTax;//结存金额(含税)
|
||||
|
private String settleAmount;//结存金额
|
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord.report; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/9 8:56 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseInventoryDetailsRecordQuery implements Query { |
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
|
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseinventoryrecord.report; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/4/9 8:56 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarehouseInventoryDetailsRecordVo implements Vo { |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("出入库时间") |
||||
|
private String createTime; // 出入库时间
|
||||
|
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
|
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("出入库后的库存量") |
||||
|
private String currentCount; |
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
@ApiModelProperty("期初数量") |
||||
|
private String initCount; // 出入库后的库存量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("库位编号") |
||||
|
private String warehouseRackCode; // 库位编号
|
||||
|
|
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventory extends BaseEntity { |
||||
|
|
||||
|
//商品ID
|
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSkuTitle; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//规格
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
|
||||
|
//单位
|
||||
|
private String unit; |
||||
|
|
||||
|
//数量
|
||||
|
private String count; |
||||
|
|
||||
|
//已入库数量
|
||||
|
private String inCount; |
||||
|
|
||||
|
//维修工单编号
|
||||
|
private String billNo; |
||||
|
|
||||
|
//客户名称
|
||||
|
private String customerName; |
||||
|
|
||||
|
//车牌号
|
||||
|
private String vehMark; |
||||
|
|
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryDetailsListVo { |
||||
|
|
||||
|
//来源单号
|
||||
|
private String billNo; |
||||
|
|
||||
|
//单据类型
|
||||
|
private String billType; |
||||
|
|
||||
|
//发生时间
|
||||
|
private String createTime; |
||||
|
|
||||
|
//业务类型
|
||||
|
private String busTypeValue; |
||||
|
|
||||
|
//数量
|
||||
|
private String count; |
||||
|
|
||||
|
//出入库后的库存
|
||||
|
private String currentCount; |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryDetailsVo { |
||||
|
|
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//仓库
|
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
private List<WarehouseOldInventoryDetailsListVo> list = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryDto { |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
//维修工单编号
|
||||
|
private String sourceBillNo; |
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
//商品基础信息sid
|
||||
|
private String goodSpuSid; |
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
//商品Skusid
|
||||
|
private String goodsSkuSid; |
||||
|
//商品Sku名称
|
||||
|
private String goodsSkuTitle; |
||||
|
//商品编码(图号)
|
||||
|
private String goodsSkuCode; |
||||
|
//规格型号
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
//计量单位
|
||||
|
private String unit; |
||||
|
//未入库数量
|
||||
|
private String notInCount; |
||||
|
//仓库
|
||||
|
private String warehouseSid; |
||||
|
private String warehouseName; |
||||
|
//库位
|
||||
|
private String warehouseRackSid; |
||||
|
private String warehouseRackCode; |
||||
|
//入库数量(现有量)
|
||||
|
private String count; |
||||
|
|
||||
|
private String createBySid; |
||||
|
private String orgPath; |
||||
|
|
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.core.utils.ExportEntityMap; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryExcelVo { |
||||
|
|
||||
|
@ExportEntityMap(CnName = "序号", EnName = "rankNo") |
||||
|
private Integer rankNo; |
||||
|
|
||||
|
//车架号
|
||||
|
@ExportEntityMap(CnName = "车架号", EnName = "vinNo") |
||||
|
private String vinNo; |
||||
|
|
||||
|
//车牌号
|
||||
|
@ExportEntityMap(CnName = "车牌号", EnName = "vehMark") |
||||
|
private String vehMark; |
||||
|
|
||||
|
//商品ID
|
||||
|
@ExportEntityMap(CnName = "商品ID", EnName = "goodsID") |
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
@ExportEntityMap(CnName = "商品名称", EnName = "goodsSpuName") |
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
@ExportEntityMap(CnName = "商品编码", EnName = "goodsSkuCode") |
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
@ExportEntityMap(CnName = "厂家", EnName = "manufacturerName") |
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//规格
|
||||
|
@ExportEntityMap(CnName = "规格", EnName = "goodsSkuOwnSpec") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
|
||||
|
//单位
|
||||
|
@ExportEntityMap(CnName = "单位", EnName = "unit") |
||||
|
private String unit; |
||||
|
|
||||
|
//仓库
|
||||
|
@ExportEntityMap(CnName = "仓库", EnName = "warehouseName") |
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
@ExportEntityMap(CnName = "库位", EnName = "warehouseRackCode") |
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
//库存数量
|
||||
|
@ExportEntityMap(CnName = "库存数量", EnName = "inventoryCount") |
||||
|
private String inventoryCount; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryInitVo { |
||||
|
|
||||
|
private String sid; |
||||
|
//维修工单编号
|
||||
|
private String sourceBillNo; |
||||
|
//商品名称
|
||||
|
private String goodsSkuTitle; |
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
//车牌号
|
||||
|
private String vehMark; |
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
//规格
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
//仓库
|
||||
|
private String warehouseSid; |
||||
|
private String warehouseName; |
||||
|
//库位
|
||||
|
private String warehouseRackSid; |
||||
|
private String warehouseRackCode; |
||||
|
//单位
|
||||
|
private String unit; |
||||
|
//未入库数量
|
||||
|
private Integer notInCount; |
||||
|
//入库数量
|
||||
|
private Integer count; |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Mapper |
||||
|
public interface WarehouseOldInventoryMapper extends BaseMapper<WarehouseOldInventory> { |
||||
|
IPage<WarehouseOldInventoryVo> listPage(IPage<WarehouseOldInventory> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseOldInventory> qw); |
||||
|
|
||||
|
WarehouseOldInventoryInitVo selectInit(String sid); |
||||
|
|
||||
|
IPage<WarehouseOldInventoryPageListVo> oldPageList(IPage<WarehouseOldInventory> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseOldInventory> qw); |
||||
|
|
||||
|
List<WarehouseOldInventoryExcelVo> listExcel(@Param(Constants.WRAPPER) QueryWrapper<WarehouseOldInventory> qw); |
||||
|
|
||||
|
WarehouseOldInventoryDetailsVo getDetailsList(String sid); |
||||
|
|
||||
|
IPage<WarehouseOldInventoryRecordList> recordList(IPage<WarehouseOldInventory> page, @Param(Constants.WRAPPER) QueryWrapper<WarehouseOldInventory> qw); |
||||
|
|
||||
|
List<WarehouseOldInventoryRecordListExcelVo> excelRecordList(@Param(Constants.WRAPPER) QueryWrapper<WarehouseOldInventory> qw); |
||||
|
} |
@ -0,0 +1,154 @@ |
|||||
|
<?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.warehouseoldinventory.WarehouseOldInventoryMapper"> |
||||
|
<select id="listPage" resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryVo"> |
||||
|
select woi.sid, |
||||
|
woi.goodsID, |
||||
|
woi.goodsSkuTitle, |
||||
|
woi.goodsSkuCode, |
||||
|
woi.manufacturerName, |
||||
|
woi.goodsSkuOwnSpec, |
||||
|
woi.unit, |
||||
|
woi.count, |
||||
|
woi.inCount, |
||||
|
woi.billNo, |
||||
|
woi.customerName, |
||||
|
woi.vehMark, |
||||
|
woi.vinNo, |
||||
|
wor.shortss, |
||||
|
wor.photos |
||||
|
from wms_old_inventory woi |
||||
|
left join wms_old_register wor |
||||
|
on woi.billNo = wor.billNo |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectInit" resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryInitVo"> |
||||
|
SELECT |
||||
|
woi.sid, |
||||
|
woi.billNo AS sourceBillNo, |
||||
|
woi.goodsSkuTitle, |
||||
|
woi.goodsSkuCode, |
||||
|
woi.vinNo, |
||||
|
woi.vehMark, |
||||
|
woi.manufacturerName, |
||||
|
woi.goodsSkuOwnSpec, |
||||
|
woi.unit, |
||||
|
(woi.count - woi.inCount) / 1 AS notInCount, |
||||
|
(woi.count - woi.inCount) / 1 AS count |
||||
|
FROM |
||||
|
warehouse_old_inventory woi |
||||
|
where woi.sid = #{sid} |
||||
|
</select> |
||||
|
|
||||
|
<select id="oldPageList" resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryPageListVo"> |
||||
|
SELECT wi.sid, |
||||
|
wi.goodsID, |
||||
|
wi.goodsSpuName, |
||||
|
wi.goodsSkuCode, |
||||
|
wi.goodsSkuOwnSpec, |
||||
|
wi.unit, |
||||
|
wi.warehouseName, |
||||
|
wi.warehouseRackCode, |
||||
|
wi.count inventoryCount, |
||||
|
abbv.vehMark, |
||||
|
abbv.vinNo, |
||||
|
wib.supplierName as manufacturerName |
||||
|
FROM warehouse_inventory wi |
||||
|
LEFT JOIN warehouse_inventory_batch wib |
||||
|
ON wi.sid = wib.`inventorySid` |
||||
|
LEFT JOIN yxt_4sas.as_busrepair_bill_vech abbv |
||||
|
ON wib.billSid = abbv.`billSid` |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="listExcel" resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryExcelVo"> |
||||
|
select wi.sid, |
||||
|
wi.goodsID, |
||||
|
wi.goodsSpuName, |
||||
|
wi.goodsSkuCode, |
||||
|
wi.goodsSkuOwnSpec, |
||||
|
wi.unit, |
||||
|
wi.warehouseName, |
||||
|
wi.warehouseRackCode, |
||||
|
wi.count inventoryCount, |
||||
|
(@rank := @rank + 1) rankNo, |
||||
|
abbv.vehMark, |
||||
|
abbv.vinNo, |
||||
|
wib.supplierName as manufacturerName |
||||
|
from warehouse_inventory wi |
||||
|
LEFT JOIN warehouse_inventory_batch wib |
||||
|
ON wi.sid = wib.`inventorySid` |
||||
|
LEFT JOIN yxt_4sas.as_busrepair_bill_vech abbv |
||||
|
ON wib.billSid = abbv.`billSid`, |
||||
|
(SELECT @rank := 0) t |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getDetailsList" resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryDetailsVo"> |
||||
|
select wi.goodsSpuName, wi.goodsSkuCode, wi.warehouseName, wi.warehouseRackCode,abbv.vinNo,wib.supplierName as manufacturerName |
||||
|
from warehouse_inventory wi |
||||
|
LEFT JOIN warehouse_inventory_batch wib |
||||
|
ON wi.sid = wib.`inventorySid` |
||||
|
LEFT JOIN yxt_4sas.as_busrepair_bill_vech abbv |
||||
|
ON wib.billSid = abbv.`billSid` |
||||
|
where wi.sid = #{sid} |
||||
|
</select> |
||||
|
|
||||
|
<select id="recordList" resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryRecordList"> |
||||
|
select wir.goodsID, |
||||
|
wir.goodsSpuName, |
||||
|
wir.goodsSkuCode, |
||||
|
wir.goodsSkuOwnSpec, |
||||
|
wir.unit, |
||||
|
wir.warehouseName, |
||||
|
wir.warehouseRackCode, |
||||
|
wir.billNo, |
||||
|
wir.billType, |
||||
|
DATE_FORMAT(wir.createTime, '%Y-%m-%d') as createTime, |
||||
|
wir.busTypeValue, |
||||
|
wir.count, |
||||
|
wir.currentCount, |
||||
|
wir.billObjName as manufacturerName, |
||||
|
abbv.vinNo |
||||
|
from warehouse_inventory_record wir |
||||
|
LEFT JOIN warehouse_inventory_batch wib |
||||
|
ON wir.inventorySid = wib.`inventorySid` |
||||
|
LEFT JOIN yxt_4sas.as_busrepair_bill_vech abbv |
||||
|
ON wib.billSid = abbv.`billSid` |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
order by wir.createTime desc |
||||
|
</select> |
||||
|
|
||||
|
<select id="excelRecordList" |
||||
|
resultType="com.yxt.wms.biz.func.warehouseoldinventory.WarehouseOldInventoryRecordListExcelVo"> |
||||
|
select wir.goodsID, |
||||
|
wir.goodsSpuName, |
||||
|
wir.goodsSkuCode, |
||||
|
wir.goodsSkuOwnSpec, |
||||
|
wir.unit, |
||||
|
wir.warehouseName, |
||||
|
wir.warehouseRackCode, |
||||
|
wir.billNo, |
||||
|
wir.billType, |
||||
|
DATE_FORMAT(wir.createTime, '%Y-%m-%d') as createTime, |
||||
|
wir.busTypeValue, |
||||
|
wir.count, |
||||
|
wir.currentCount, |
||||
|
(@rank := @rank + 1) rankNo |
||||
|
from warehouse_inventory_record wir, |
||||
|
(SELECT @rank := 0) t |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
order by wir.createTime desc |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryPageListQuery implements Query { |
||||
|
|
||||
|
//商品id
|
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//仓库
|
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
|
||||
|
private String createBySid; |
||||
|
|
||||
|
private String orgPath; |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryPageListVo { |
||||
|
private String sid; |
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
|
||||
|
//车牌号
|
||||
|
private String vehMark; |
||||
|
|
||||
|
//商品ID
|
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//规格
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
|
||||
|
//单位
|
||||
|
private String unit; |
||||
|
|
||||
|
//仓库
|
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
//库存数量
|
||||
|
private String inventoryCount; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryPush { |
||||
|
|
||||
|
private String sid; |
||||
|
private String remarks; |
||||
|
private String createBySid; |
||||
|
//商品ID
|
||||
|
private String goodsID; |
||||
|
//商品Sku名称
|
||||
|
private String goodsSkuTitle; |
||||
|
//商品编码(图号)
|
||||
|
private String goodsSkuCode; |
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
//规格型号
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
//计量单位
|
||||
|
private String unit; |
||||
|
//数量
|
||||
|
private String count; |
||||
|
//已入库数量
|
||||
|
private String inCount; |
||||
|
//维修工单编号
|
||||
|
private String billNo; |
||||
|
//客户名称
|
||||
|
private String customerName; |
||||
|
// 车牌号
|
||||
|
private String vehMark; |
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryQuery implements Query { |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
//维修工单编号
|
||||
|
private String billNo; |
||||
|
//车牌号
|
||||
|
private String vehMark; |
||||
|
//用户sid
|
||||
|
private String createBySid; |
||||
|
//全组织路径sid
|
||||
|
private String orgPath; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryRecordList { |
||||
|
|
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
|
||||
|
//商品ID
|
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//规格
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
|
||||
|
//单位
|
||||
|
private String unit; |
||||
|
|
||||
|
//仓库
|
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
//来源单号
|
||||
|
private String billNo; |
||||
|
|
||||
|
//单据类型
|
||||
|
private String billType; |
||||
|
|
||||
|
//发生时间
|
||||
|
private String createTime; |
||||
|
|
||||
|
//业务类型
|
||||
|
private String busTypeValue; |
||||
|
|
||||
|
//数量
|
||||
|
private String count; |
||||
|
|
||||
|
//出入库后的库存
|
||||
|
private String currentCount; |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.core.utils.ExportEntityMap; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryRecordListExcelVo { |
||||
|
|
||||
|
@ExportEntityMap(CnName = "序号", EnName = "rankNo") |
||||
|
private Integer rankNo; |
||||
|
|
||||
|
//车架号
|
||||
|
@ExportEntityMap(CnName = "车架号", EnName = "vinNo") |
||||
|
private String vinNo; |
||||
|
|
||||
|
//商品ID
|
||||
|
@ExportEntityMap(CnName = "商品ID", EnName = "goodsID") |
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
@ExportEntityMap(CnName = "商品名称", EnName = "goodsSpuName") |
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
@ExportEntityMap(CnName = "商品编码", EnName = "goodsSkuCode") |
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
@ExportEntityMap(CnName = "厂家", EnName = "manufacturerName") |
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//规格
|
||||
|
@ExportEntityMap(CnName = "规格", EnName = "goodsSkuOwnSpec") |
||||
|
private String goodsSkuOwnSpec; |
||||
|
|
||||
|
//单位
|
||||
|
@ExportEntityMap(CnName = "单位", EnName = "unit") |
||||
|
private String unit; |
||||
|
|
||||
|
//仓库
|
||||
|
@ExportEntityMap(CnName = "仓库", EnName = "warehouseName") |
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
@ExportEntityMap(CnName = "库位", EnName = "warehouseRackCode") |
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
//来源单号
|
||||
|
@ExportEntityMap(CnName = "来源单号", EnName = "billNo") |
||||
|
private String billNo; |
||||
|
|
||||
|
//单据类型
|
||||
|
@ExportEntityMap(CnName = "单据类型", EnName = "billType") |
||||
|
private String billType; |
||||
|
|
||||
|
//发生时间
|
||||
|
@ExportEntityMap(CnName = "发生时间", EnName = "createTime") |
||||
|
private String createTime; |
||||
|
|
||||
|
//业务类型
|
||||
|
@ExportEntityMap(CnName = "业务类型", EnName = "busTypeValue") |
||||
|
private String busTypeValue; |
||||
|
|
||||
|
//数量
|
||||
|
@ExportEntityMap(CnName = "数量", EnName = "count") |
||||
|
private String count; |
||||
|
|
||||
|
//出入库后的库存
|
||||
|
@ExportEntityMap(CnName = "出入库后的库存", EnName = "currentCount") |
||||
|
private String currentCount; |
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryRecordListQuery implements Query { |
||||
|
|
||||
|
//商品ID
|
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSpuName; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//仓库
|
||||
|
private String warehouseName; |
||||
|
|
||||
|
//库位
|
||||
|
private String warehouseRackCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
|
||||
|
//来源单号
|
||||
|
private String billNo; |
||||
|
|
||||
|
//单据类型
|
||||
|
private String billType; |
||||
|
|
||||
|
//业务类型
|
||||
|
private String busTypeValue; |
||||
|
|
||||
|
//发生时间开始时间
|
||||
|
private String createTimeStart; |
||||
|
|
||||
|
//发生时间结束时间
|
||||
|
private String createTimeEnd; |
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Service |
||||
|
public class WarehouseOldInventoryService extends MybatisBaseService<WarehouseOldInventoryMapper, WarehouseOldInventory> { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
package com.yxt.warehouse.biz.warehouseoldinventory; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/4/28 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WarehouseOldInventoryVo { |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
//商品ID
|
||||
|
private String goodsID; |
||||
|
|
||||
|
//商品名称
|
||||
|
private String goodsSkuTitle; |
||||
|
|
||||
|
//商品编码
|
||||
|
private String goodsSkuCode; |
||||
|
|
||||
|
//厂家
|
||||
|
private String manufacturerName; |
||||
|
|
||||
|
//规格
|
||||
|
private String goodsSkuOwnSpec; |
||||
|
|
||||
|
//单位
|
||||
|
private String unit; |
||||
|
|
||||
|
//数量
|
||||
|
private String count; |
||||
|
|
||||
|
//已入库数量
|
||||
|
private String inCount; |
||||
|
|
||||
|
//维修工单编号
|
||||
|
private String billNo; |
||||
|
|
||||
|
//客户名称
|
||||
|
private String customerName; |
||||
|
|
||||
|
//车牌号
|
||||
|
private String vehMark; |
||||
|
|
||||
|
//车架号
|
||||
|
private String vinNo; |
||||
|
|
||||
|
//旧件回收说明
|
||||
|
private String shortss; |
||||
|
private String photos; |
||||
|
|
||||
|
//旧件照片
|
||||
|
private List<String> photosList = new ArrayList<>(); |
||||
|
} |
Loading…
Reference in new issue