1.修改单据相关实体类,对mongo实体类和mysql实体类分包存放,修改相关引用
							parent
							
								
									c9dde7d795
								
							
						
					
					
						commit
						d7ee22b16c
					
				@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.dao.inout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 | 
				
			||||||
 | 
					import com.glxp.udi.admin.entity.inout.WarehouseEntity;
 | 
				
			||||||
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 码表数据接口
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Mapper
 | 
				
			||||||
 | 
					public interface CodesDao extends BaseMapper<WarehouseEntity> {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.dao.inout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 | 
				
			||||||
 | 
					import com.glxp.udi.admin.entity.inout.WarehousetempEntity;
 | 
				
			||||||
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 临时码表数据接口
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Mapper
 | 
				
			||||||
 | 
					public interface CodesTempDao extends BaseMapper<WarehousetempEntity> {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.dao.inout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 | 
				
			||||||
 | 
					import com.glxp.udi.admin.entity.inout.InvProductEntity;
 | 
				
			||||||
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 库存表数据接口
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Mapper
 | 
				
			||||||
 | 
					public interface InvProductDao extends BaseMapper<InvProductEntity> {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.dao.inout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 | 
				
			||||||
 | 
					import com.glxp.udi.admin.entity.inout.InvProductDetailEntity;
 | 
				
			||||||
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 库存详情表数据接口
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Mapper
 | 
				
			||||||
 | 
					public interface InvProductDetailDao extends BaseMapper<InvProductDetailEntity> {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.dao.inout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 | 
				
			||||||
 | 
					import com.glxp.udi.admin.entity.inout.OrderEntity;
 | 
				
			||||||
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 单据数据接口
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Mapper
 | 
				
			||||||
 | 
					public interface OrderDao extends BaseMapper<OrderEntity> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.dao.inout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 | 
				
			||||||
 | 
					import com.glxp.udi.admin.entity.inout.OrderDetailEntity;
 | 
				
			||||||
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * 单据详情数据接口
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@Mapper
 | 
				
			||||||
 | 
					public interface OrderDetailDao extends BaseMapper<OrderDetailEntity> {
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,59 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.entity.mongo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.math.BigDecimal;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Data
 | 
				
			||||||
 | 
					public class ErpOrderEntity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String id;
 | 
				
			||||||
 | 
					    private String companyid;
 | 
				
			||||||
 | 
					    private String docid;
 | 
				
			||||||
 | 
					    private String iodtlid;
 | 
				
			||||||
 | 
					    private String inoutid;
 | 
				
			||||||
 | 
					    private String goodsunit;
 | 
				
			||||||
 | 
					    private String goodsid;
 | 
				
			||||||
 | 
					    private String lotid;
 | 
				
			||||||
 | 
					    private String goodsname;
 | 
				
			||||||
 | 
					    private String companyname;
 | 
				
			||||||
 | 
					    private String lotno; //批次号
 | 
				
			||||||
 | 
					    private Integer dtlgoodsqty;
 | 
				
			||||||
 | 
					    private String credate;
 | 
				
			||||||
 | 
					    private Integer reCount;
 | 
				
			||||||
 | 
					    private String uuidFk;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String nameCode;
 | 
				
			||||||
 | 
					    private String productCompany;
 | 
				
			||||||
 | 
					    private String coName;
 | 
				
			||||||
 | 
					    private String produceDate;
 | 
				
			||||||
 | 
					    private String expireDate;
 | 
				
			||||||
 | 
					    private String authCode;
 | 
				
			||||||
 | 
					    private String batchNo;
 | 
				
			||||||
 | 
					    private String packSpec;
 | 
				
			||||||
 | 
					    private String packRatio;
 | 
				
			||||||
 | 
					    private Integer bhzxxsbzsl;
 | 
				
			||||||
 | 
					    private Integer zxxsbzbhsydysl;
 | 
				
			||||||
 | 
					    private String isDownload;
 | 
				
			||||||
 | 
					    private String orderIdFk;
 | 
				
			||||||
 | 
					    private Integer count;
 | 
				
			||||||
 | 
					    private String nameCodes;
 | 
				
			||||||
 | 
					    private String status;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //价格
 | 
				
			||||||
 | 
					    private BigDecimal price;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //销售发票号(第一票)
 | 
				
			||||||
 | 
					    private String firstSalesInvNo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //销售发票号(第二票)
 | 
				
			||||||
 | 
					    private String secSalesInvNo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //销售清单号(第二票)
 | 
				
			||||||
 | 
					    private String secSalesListNo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //开票日期
 | 
				
			||||||
 | 
					    private String invoiceDate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.entity.mongo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import com.fasterxml.jackson.annotation.JsonFormat;
 | 
				
			||||||
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.Date;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Data
 | 
				
			||||||
 | 
					public class InvProductDetailEntity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String id;
 | 
				
			||||||
 | 
					    private String code;
 | 
				
			||||||
 | 
					    private String productIdFk;
 | 
				
			||||||
 | 
					    private String orderIdFk;
 | 
				
			||||||
 | 
					    private String customerId;
 | 
				
			||||||
 | 
					    private String mainAction;
 | 
				
			||||||
 | 
					    private String action;
 | 
				
			||||||
 | 
					    private Integer count;
 | 
				
			||||||
 | 
					    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
 | 
				
			||||||
 | 
					    private Date updateTime;
 | 
				
			||||||
 | 
					    private String batchNo;
 | 
				
			||||||
 | 
					    private String productionDate;
 | 
				
			||||||
 | 
					    private String expireDate;
 | 
				
			||||||
 | 
					    private String invProductIdFk;
 | 
				
			||||||
 | 
					    //仓库码
 | 
				
			||||||
 | 
					    private String locStorageCode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,42 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.entity.mongo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Data
 | 
				
			||||||
 | 
					public class InvProductEntity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String id;
 | 
				
			||||||
 | 
					    private String productsName;
 | 
				
			||||||
 | 
					    private String nameCode;
 | 
				
			||||||
 | 
					    private String relIdFk;
 | 
				
			||||||
 | 
					    private String ggxh;
 | 
				
			||||||
 | 
					    private String batchNo;
 | 
				
			||||||
 | 
					    private String productionDate;
 | 
				
			||||||
 | 
					    private String expireDate;
 | 
				
			||||||
 | 
					    private String ylqxzcrbarmc;
 | 
				
			||||||
 | 
					    private String zczbhhzbapzbh;
 | 
				
			||||||
 | 
					    private Integer inCount;
 | 
				
			||||||
 | 
					    private Integer outCount;
 | 
				
			||||||
 | 
					    private Integer reCount;
 | 
				
			||||||
 | 
					    private String customerId;
 | 
				
			||||||
 | 
					    private String supId;
 | 
				
			||||||
 | 
					    private String unitFk;
 | 
				
			||||||
 | 
					    private String invWarehouseCode;
 | 
				
			||||||
 | 
					    //生产厂家
 | 
				
			||||||
 | 
					    private String manufactory;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    //仓库码
 | 
				
			||||||
 | 
					    private String locStorageCode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Integer getInCount() {
 | 
				
			||||||
 | 
					        if (inCount == null)
 | 
				
			||||||
 | 
					            return 0;
 | 
				
			||||||
 | 
					        return inCount;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Integer getOutCount() {
 | 
				
			||||||
 | 
					        if (outCount == null)
 | 
				
			||||||
 | 
					            return 0;
 | 
				
			||||||
 | 
					        return outCount;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,55 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.entity.mongo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Data
 | 
				
			||||||
 | 
					public class WarehouseEntity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String id;
 | 
				
			||||||
 | 
					    private String action;
 | 
				
			||||||
 | 
					    private String mainAction;
 | 
				
			||||||
 | 
					    private String code;
 | 
				
			||||||
 | 
					    private String corpOrderId;
 | 
				
			||||||
 | 
					    private String actor;
 | 
				
			||||||
 | 
					    private String actDate;
 | 
				
			||||||
 | 
					    private String fromCorpId;
 | 
				
			||||||
 | 
					    private String fromCorp;
 | 
				
			||||||
 | 
					    private String orderId;
 | 
				
			||||||
 | 
					    private String batchNo;
 | 
				
			||||||
 | 
					    private String produceDate;
 | 
				
			||||||
 | 
					    private String expireDate;
 | 
				
			||||||
 | 
					    private String serialNo;
 | 
				
			||||||
 | 
					    private Integer count;
 | 
				
			||||||
 | 
					    private String packageLevel;
 | 
				
			||||||
 | 
					    private String warehouseCode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String customerId;
 | 
				
			||||||
 | 
					    private String nameCode;
 | 
				
			||||||
 | 
					    private String supId;//供应商ID
 | 
				
			||||||
 | 
					    private String supName;
 | 
				
			||||||
 | 
					    private String invStorageCode;
 | 
				
			||||||
 | 
					    private String invWarehouseCode;
 | 
				
			||||||
 | 
					    private String relId;
 | 
				
			||||||
 | 
					    private Integer status;
 | 
				
			||||||
 | 
					    private String locStorageCode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String udi;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public String getSupId() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//        if (supId == null) {
 | 
				
			||||||
 | 
					//            return fromCorpId;
 | 
				
			||||||
 | 
					//        }
 | 
				
			||||||
 | 
					        return supId;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public Integer getCount() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (count == null) {
 | 
				
			||||||
 | 
					            return 1;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if (count == 0)
 | 
				
			||||||
 | 
					            return 1;
 | 
				
			||||||
 | 
					        return count;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					package com.glxp.udi.admin.entity.mongo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Data
 | 
				
			||||||
 | 
					public class WarehousetempEntity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String action;
 | 
				
			||||||
 | 
					    private String mainAction;
 | 
				
			||||||
 | 
					    private String code;
 | 
				
			||||||
 | 
					    private String corpOrderId;
 | 
				
			||||||
 | 
					    private String actor;
 | 
				
			||||||
 | 
					    private String actDate;
 | 
				
			||||||
 | 
					    private Integer wrongCode;
 | 
				
			||||||
 | 
					    private String upperCorpOrderId;
 | 
				
			||||||
 | 
					    private String fromCorpId;
 | 
				
			||||||
 | 
					    private String id;
 | 
				
			||||||
 | 
					    private String fromCorp;
 | 
				
			||||||
 | 
					    private String orderId;
 | 
				
			||||||
 | 
					    private String batchNo;
 | 
				
			||||||
 | 
					    private String produceDate;
 | 
				
			||||||
 | 
					    private String expireDate;
 | 
				
			||||||
 | 
					    private String serialNo;
 | 
				
			||||||
 | 
					    private String udi;
 | 
				
			||||||
 | 
					    private Integer count;
 | 
				
			||||||
 | 
					    private Integer type;
 | 
				
			||||||
 | 
					    private Long customerId;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String invStorageCode;
 | 
				
			||||||
 | 
					    private String invWarehouseCode;
 | 
				
			||||||
 | 
					    private Integer status;
 | 
				
			||||||
 | 
					    private String locStorageCode;
 | 
				
			||||||
 | 
					    private String nameCode; //最小销售标识
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private String relId;
 | 
				
			||||||
 | 
					    private String supId;//供应商ID
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue