inv_user_product,inv_user_product_detail表初始化代码提交
parent
db3e3bd2ca
commit
f22fc931f2
@ -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<InvUserProductDetail> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -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<InvUserProduct> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -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{
|
||||||
|
|
||||||
|
}
|
@ -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{
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
<?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.glxp.api.dao.inv.InvUserProductDetailMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.inv.InvUserProductDetail">
|
||||||
|
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||||
|
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="mainaction" column="mainAction" jdbcType="VARCHAR"/>
|
||||||
|
<result property="action" column="action" jdbcType="VARCHAR"/>
|
||||||
|
<result property="orderid" column="orderId" jdbcType="VARCHAR"/>
|
||||||
|
<result property="relid" column="relId" jdbcType="INTEGER"/>
|
||||||
|
<result property="namecode" column="nameCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="batchno" column="batchNo" jdbcType="VARCHAR"/>
|
||||||
|
<result property="producedate" column="produceDate" jdbcType="VARCHAR"/>
|
||||||
|
<result property="expiredate" column="expireDate" jdbcType="VARCHAR"/>
|
||||||
|
<result property="serialno" column="serialNo" jdbcType="VARCHAR"/>
|
||||||
|
<result property="supid" column="supId" jdbcType="VARCHAR"/>
|
||||||
|
<result property="count" column="count" jdbcType="INTEGER"/>
|
||||||
|
<result property="recount" column="reCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="deptcode" column="deptCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="invcode" column="invCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="invspacecode" column="invSpaceCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="purchasetype" column="purchaseType" jdbcType="TINYINT"/>
|
||||||
|
<result property="updatetime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="incount" column="inCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="outcount" column="outCount" jdbcType="INTEGER"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,code,mainAction,
|
||||||
|
action,orderId,relId,
|
||||||
|
nameCode,batchNo,produceDate,
|
||||||
|
expireDate,serialNo,supId,
|
||||||
|
count,reCount,deptCode,
|
||||||
|
invCode,invSpaceCode,purchaseType,
|
||||||
|
updateTime,inCount,outCount
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,42 @@
|
|||||||
|
<?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.glxp.api.dao.inv.InvUserProductMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.inv.InvUserProduct">
|
||||||
|
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||||
|
<result property="relidfk" column="relIdFk" jdbcType="BIGINT"/>
|
||||||
|
<result property="namecode" column="nameCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="batchno" column="batchNo" jdbcType="VARCHAR"/>
|
||||||
|
<result property="productiondate" column="productionDate" jdbcType="VARCHAR"/>
|
||||||
|
<result property="expiredate" column="expireDate" jdbcType="VARCHAR"/>
|
||||||
|
<result property="incount" column="inCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="outcount" column="outCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="recount" column="reCount" jdbcType="VARCHAR"/>
|
||||||
|
<result property="customerid" column="customerId" jdbcType="VARCHAR"/>
|
||||||
|
<result property="supid" column="supId" jdbcType="VARCHAR"/>
|
||||||
|
<result property="deptcode" column="deptCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="invcode" column="invCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="invspacecode" column="invSpaceCode" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createtime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updatetime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="nowstock" column="nowStock" jdbcType="INTEGER"/>
|
||||||
|
<result property="frozencount" column="frozenCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="planincount" column="planInCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="planoutcount" column="planOutCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="onwaycount" column="onWayCount" jdbcType="INTEGER"/>
|
||||||
|
<result property="availablestock" column="availableStock" jdbcType="INTEGER"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,relIdFk,nameCode,
|
||||||
|
batchNo,productionDate,expireDate,
|
||||||
|
inCount,outCount,reCount,
|
||||||
|
customerId,supId,deptCode,
|
||||||
|
invCode,invSpaceCode,createTime,
|
||||||
|
updateTime,nowStock,frozenCount,
|
||||||
|
planInCount,planOutCount,onWayCount,
|
||||||
|
availableStock
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue