1.添加采购单据实体类,修改预警消息生成逻辑
							parent
							
								
									fcd89137c6
								
							
						
					
					
						commit
						17798d6057
					
				| @ -0,0 +1,7 @@ | |||||||
|  | package com.glxp.api.dao.purchase; | ||||||
|  | 
 | ||||||
|  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
|  | import com.glxp.api.entity.purchase.PurOrderEntity; | ||||||
|  | 
 | ||||||
|  | public interface PurOrderDao extends BaseMapper<PurOrderEntity> { | ||||||
|  | } | ||||||
| @ -0,0 +1,7 @@ | |||||||
|  | package com.glxp.api.dao.purchase; | ||||||
|  | 
 | ||||||
|  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
|  | import com.glxp.api.entity.purchase.PurOrderDetailEntity; | ||||||
|  | 
 | ||||||
|  | public interface PurOrderDetailDao extends BaseMapper<PurOrderDetailEntity> { | ||||||
|  | } | ||||||
| @ -0,0 +1,64 @@ | |||||||
|  | package com.glxp.api.entity.purchase; | ||||||
|  | 
 | ||||||
|  | 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; | ||||||
|  | 
 | ||||||
|  | @Data | ||||||
|  | @TableName(value = "pur_order_detail") | ||||||
|  | public class PurOrderDetailEntity { | ||||||
|  |     @TableId(value = "id", type = IdType.AUTO) | ||||||
|  |     private Integer id; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 订单外键 | ||||||
|  |      */ | ||||||
|  |     @TableField(value = "orderIdFk") | ||||||
|  |     private String orderIdFk; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 产品ID | ||||||
|  |      */ | ||||||
|  |     @TableField(value = "productId") | ||||||
|  |     private Integer productId; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 产品名称 | ||||||
|  |      */ | ||||||
|  |     @TableField(value = "productName") | ||||||
|  |     private String productName; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 数量 | ||||||
|  |      */ | ||||||
|  |     @TableField(value = "`count`") | ||||||
|  |     private Integer count; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 供应商ID | ||||||
|  |      */ | ||||||
|  |     @TableField(value = "supId") | ||||||
|  |     private String supId; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 注册证备案证号 | ||||||
|  |      */ | ||||||
|  |     @TableField(value = "zczbhhzbapzbh") | ||||||
|  |     private String zczbhhzbapzbh; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_ID = "id"; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_ORDERIDFK = "orderIdFk"; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_PRODUCTID = "productId"; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_PRODUCTNAME = "productName"; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_COUNT = "count"; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_SUPID = "supId"; | ||||||
|  | 
 | ||||||
|  |     public static final String COL_ZCZBHHZBAPZBH = "zczbhhzbapzbh"; | ||||||
|  | } | ||||||
| @ -0,0 +1,34 @@ | |||||||
|  | <?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.purchase.PurOrderDao"> | ||||||
|  |   <resultMap id="BaseResultMap" type="com.glxp.api.entity.purchase.PurOrderEntity"> | ||||||
|  |     <!--@mbg.generated--> | ||||||
|  |     <!--@Table pur_order--> | ||||||
|  |     <id column="id" jdbcType="BIGINT" property="id" /> | ||||||
|  |     <result column="billNo" jdbcType="VARCHAR" property="billNo" /> | ||||||
|  |     <result column="billDate" jdbcType="TIMESTAMP" property="billDate" /> | ||||||
|  |     <result column="status" jdbcType="TINYINT" property="status" /> | ||||||
|  |     <result column="billType" jdbcType="VARCHAR" property="billType" /> | ||||||
|  |     <result column="remark" jdbcType="VARCHAR" property="remark" /> | ||||||
|  |     <result column="invCode" jdbcType="VARCHAR" property="invCode" /> | ||||||
|  |     <result column="deptCode" jdbcType="VARCHAR" property="deptCode" /> | ||||||
|  |     <result column="createUser" jdbcType="VARCHAR" property="createUser" /> | ||||||
|  |     <result column="createTime" jdbcType="TIMESTAMP" property="createTime" /> | ||||||
|  |     <result column="auditUser" jdbcType="VARCHAR" property="auditUser" /> | ||||||
|  |     <result column="auditTime" jdbcType="TIMESTAMP" property="auditTime" /> | ||||||
|  |     <result column="auditRemark" jdbcType="VARCHAR" property="auditRemark" /> | ||||||
|  |     <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" /> | ||||||
|  |     <result column="updateUser" jdbcType="VARCHAR" property="updateUser" /> | ||||||
|  |     <result column="applyCreateUser" jdbcType="VARCHAR" property="applyCreateUser" /> | ||||||
|  |     <result column="applyAuditUser" jdbcType="VARCHAR" property="applyAuditUser" /> | ||||||
|  |     <result column="applyRemark" jdbcType="VARCHAR" property="applyRemark" /> | ||||||
|  |     <result column="applyBillNo" jdbcType="VARCHAR" property="applyBillNo" /> | ||||||
|  |     <result column="stockOrderNo" jdbcType="VARCHAR" property="stockOrderNo" /> | ||||||
|  |   </resultMap> | ||||||
|  |   <sql id="Base_Column_List"> | ||||||
|  |     <!--@mbg.generated--> | ||||||
|  |     id, billNo, billDate, `status`, billType, remark, invCode, deptCode, `createUser`,  | ||||||
|  |     createTime, auditUser, auditTime, auditRemark, updateTime, updateUser, applyCreateUser,  | ||||||
|  |     applyAuditUser, applyRemark, applyBillNo, stockOrderNo | ||||||
|  |   </sql> | ||||||
|  | </mapper> | ||||||
| @ -0,0 +1,19 @@ | |||||||
|  | <?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.purchase.PurOrderDetailDao"> | ||||||
|  |   <resultMap id="BaseResultMap" type="com.glxp.api.entity.purchase.PurOrderDetailEntity"> | ||||||
|  |     <!--@mbg.generated--> | ||||||
|  |     <!--@Table pur_order_detail--> | ||||||
|  |     <id column="id" jdbcType="INTEGER" property="id" /> | ||||||
|  |     <result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk" /> | ||||||
|  |     <result column="productId" jdbcType="INTEGER" property="productId" /> | ||||||
|  |     <result column="productName" jdbcType="VARCHAR" property="productName" /> | ||||||
|  |     <result column="count" jdbcType="INTEGER" property="count" /> | ||||||
|  |     <result column="supId" jdbcType="VARCHAR" property="supId" /> | ||||||
|  |     <result column="zczbhhzbapzbh" jdbcType="VARCHAR" property="zczbhhzbapzbh" /> | ||||||
|  |   </resultMap> | ||||||
|  |   <sql id="Base_Column_List"> | ||||||
|  |     <!--@mbg.generated--> | ||||||
|  |     id, orderIdFk, productId, productName, `count`, supId, zczbhhzbapzbh | ||||||
|  |   </sql> | ||||||
|  | </mapper> | ||||||
					Loading…
					
					
				
		Reference in New Issue