diff --git a/src/main/java/com/glxp/api/dao/inv/InvUserProductDetailMapper.java b/src/main/java/com/glxp/api/dao/inv/InvUserProductDetailMapper.java new file mode 100644 index 000000000..d5beddee6 --- /dev/null +++ b/src/main/java/com/glxp/api/dao/inv/InvUserProductDetailMapper.java @@ -0,0 +1,16 @@ +package com.glxp.api.dao.inv; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.inv.InvUserProductDetail; + +/** +* @author Lenovo +* @description 针对表【inv_user_product_detail(用户库存详情表)】的数据库操作Mapper +* @createDate 2023-05-12 10:19:43 +* @Entity com.glxp.api.entity.InvUserProductDetail +*/ +public interface InvUserProductDetailMapper extends BaseMapper { + + +} diff --git a/src/main/java/com/glxp/api/dao/inv/InvUserProductMapper.java b/src/main/java/com/glxp/api/dao/inv/InvUserProductMapper.java new file mode 100644 index 000000000..743965f2d --- /dev/null +++ b/src/main/java/com/glxp/api/dao/inv/InvUserProductMapper.java @@ -0,0 +1,16 @@ +package com.glxp.api.dao.inv; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.inv.InvUserProduct; + +/** +* @author Lenovo +* @description 针对表【inv_user_product(用户库存表)】的数据库操作Mapper +* @createDate 2023-05-12 10:19:43 +* @Entity com.glxp.api.entity.InvUserProduct +*/ +public interface InvUserProductMapper extends BaseMapper { + + +} diff --git a/src/main/java/com/glxp/api/entity/inv/InvUserProduct.java b/src/main/java/com/glxp/api/entity/inv/InvUserProduct.java new file mode 100644 index 000000000..fee401783 --- /dev/null +++ b/src/main/java/com/glxp/api/entity/inv/InvUserProduct.java @@ -0,0 +1,145 @@ +package com.glxp.api.entity.inv; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 用户库存表 + * @TableName inv_user_product + */ +@TableName(value ="inv_user_product") +@Data +public class InvUserProduct{ + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 耗材字典ID + */ + @TableField(value = "relIdFk") + private Long relIdFk; + + /** + * 最小销售标识 + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "productionDate") + private String productionDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 入库数量 + */ + @TableField(value = "inCount") + private Integer inCount; + + /** + * 出库数量 + */ + @TableField(value = "outCount") + private int outCount; + + /** + * 实际数量 + */ + @TableField(value = "reCount") + private int reCount; + + /** + * 客户ID + */ + @TableField(value = "customerId") + private String customerId; + + /** + * 供应商ID + */ + @TableField(value = "supId") + private String supId; + + /** + * 部门编码 + */ + @TableField(value = "deptCode") + private String deptCode; + + /** + * 仓库编码 + */ + @TableField(value = "invCode") + private String invCode; + + /** + * 货位编码 + */ + @TableField(value = "invSpaceCode") + private String invSpaceCode; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * + */ + private Integer nowStock; + + /** + * + */ + private Integer frozenCount; + + /** + * + */ + private Integer planInCount; + + /** + * + */ + private Integer planOutCount; + + /** + * + */ + private Integer onWayCount; + + /** + * + */ + private Integer availableStock; + + +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/entity/inv/InvUserProductDetail.java b/src/main/java/com/glxp/api/entity/inv/InvUserProductDetail.java new file mode 100644 index 000000000..19137bc41 --- /dev/null +++ b/src/main/java/com/glxp/api/entity/inv/InvUserProductDetail.java @@ -0,0 +1,135 @@ +package com.glxp.api.entity.inv; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 用户库存详情表 + * @TableName inv_user_product_detail + */ +@TableName(value ="inv_user_product_detail") +@Data +public class InvUserProductDetail{ + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * UDI码 + */ + @TableField(value = "code") + private String code; + + /** + * 订单号外键 + */ + @TableField(value = "orderId") + private String orderId; + + /** + * 耗材字典ID + */ + @TableField(value = "relId") + private Long relId; + + /** + * 最小销售标识 + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "produceDate") + private String produceDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 序列号 + */ + @TableField(value = "serialNo") + private String serialNo; + + /** + * 供应商 + */ + @TableField(value = "supId") + private String supId; + + /** + * 扫码数量 + */ + @TableField(value = "`count`") + private Integer count; + + /** + * 实际数量 + */ + @TableField(value = "reCount") + private Integer reCount; + + + @TableField(value = "inCount") + private Integer inCount; + + + @TableField(value = "outCount") + private Integer outCount; + + /** + * 部门编码 + */ + @TableField(value = "deptCode") + private String deptCode; + + /** + * 仓库编码 + */ + @TableField(value = "invCode") + private String invCode; + + /** + * 货位编码 + */ + @TableField(value = "invSpaceCode") + private String invSpaceCode; + + /** + * 采购类型 + */ + @TableField(value = "purchaseType") + private Integer purchaseType; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + @TableField(value = "mainAction") + private String mainAction; + @TableField(value = "action") + private String action; + + + + +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/service/inv/impl/InvUserProductDetailServiceImpl.java b/src/main/java/com/glxp/api/service/inv/impl/InvUserProductDetailServiceImpl.java new file mode 100644 index 000000000..e73487506 --- /dev/null +++ b/src/main/java/com/glxp/api/service/inv/impl/InvUserProductDetailServiceImpl.java @@ -0,0 +1,17 @@ +package com.glxp.api.service.inv.impl; + + +import com.glxp.api.dao.inv.InvUserProductDetailMapper; +import com.glxp.api.entity.inv.InvUserProductDetail; +import com.glxp.api.service.inv.InvUserProductDetailService; +import org.springframework.stereotype.Service; + +/** +* @author Lenovo +* @description 针对表【inv_user_product_detail(用户库存详情表)】的数据库操作Service实现 +* @createDate 2023-05-12 10:19:43 +*/ +@Service +public class InvUserProductDetailServiceImpl implements InvUserProductDetailService{ + +} diff --git a/src/main/java/com/glxp/api/service/inv/impl/InvUserProductServiceImpl.java b/src/main/java/com/glxp/api/service/inv/impl/InvUserProductServiceImpl.java new file mode 100644 index 000000000..571474c29 --- /dev/null +++ b/src/main/java/com/glxp/api/service/inv/impl/InvUserProductServiceImpl.java @@ -0,0 +1,18 @@ +package com.glxp.api.service.inv.impl; + + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.glxp.api.dao.inv.InvUserProductMapper; +import com.glxp.api.entity.inv.InvUserProduct; +import com.glxp.api.service.inv.InvUserProductService; +import org.springframework.stereotype.Service; + +/** +* @author Lenovo +* @description 针对表【inv_user_product(用户库存表)】的数据库操作Service实现 +* @createDate 2023-05-12 10:19:43 +*/ +@Service +public class InvUserProductServiceImpl implements InvUserProductService{ + +} diff --git a/src/main/resources/mybatis/mapper/inv/InvUserProductDetailMapper.xml b/src/main/resources/mybatis/mapper/inv/InvUserProductDetailMapper.xml new file mode 100644 index 000000000..5ce19766e --- /dev/null +++ b/src/main/resources/mybatis/mapper/inv/InvUserProductDetailMapper.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id,code,mainAction, + action,orderId,relId, + nameCode,batchNo,produceDate, + expireDate,serialNo,supId, + count,reCount,deptCode, + invCode,invSpaceCode,purchaseType, + updateTime,inCount,outCount + + diff --git a/src/main/resources/mybatis/mapper/inv/InvUserProductMapper.xml b/src/main/resources/mybatis/mapper/inv/InvUserProductMapper.xml new file mode 100644 index 000000000..807a59cf0 --- /dev/null +++ b/src/main/resources/mybatis/mapper/inv/InvUserProductMapper.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id,relIdFk,nameCode, + batchNo,productionDate,expireDate, + inCount,outCount,reCount, + customerId,supId,deptCode, + invCode,invSpaceCode,createTime, + updateTime,nowStock,frozenCount, + planInCount,planOutCount,onWayCount, + availableStock + +