From 768feddf7a1ded7b22b1382e7b8039a12f8015a0 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期一, 19 八月 2024 14:44:15 +0800
Subject: [PATCH] 订单表
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderMapper.java | 23 +++
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java | 47 +++++++
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrder.java | 75 ++++++++++++
pms-parent/pms-global/src/main/resources/mapper/PrOrderMapper.xml | 104 +++++++++++++++++
pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml | 60 ++++++++++
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderItemMapper.java | 23 +++
6 files changed, 332 insertions(+), 0 deletions(-)
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderItemMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderItemMapper.java
new file mode 100644
index 0000000..0cac5ce
--- /dev/null
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderItemMapper.java
@@ -0,0 +1,23 @@
+package com.dy.pmsGlobal.daoPr;
+
+import com.dy.pmsGlobal.pojoPr.PrOrderItem;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+* @author User
+* @description 閽堝琛ㄣ�恜r_order_item銆戠殑鏁版嵁搴撴搷浣淢apper
+* @createDate 2024-08-19 14:41:42
+* @Entity com.dy.pmsGlobal.pojoPr.PrOrderItem
+*/
+@Mapper
+public interface PrOrderItemMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insertSelective(PrOrderItem record);
+
+ PrOrderItem selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(PrOrderItem record);
+
+}
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderMapper.java
new file mode 100644
index 0000000..6c985b2
--- /dev/null
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrOrderMapper.java
@@ -0,0 +1,23 @@
+package com.dy.pmsGlobal.daoPr;
+
+import com.dy.pmsGlobal.pojoPr.PrOrder;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+* @author User
+* @description 閽堝琛ㄣ�恜r_order銆戠殑鏁版嵁搴撴搷浣淢apper
+* @createDate 2024-08-19 14:38:52
+* @Entity com.dy.pmsGlobal.pojoPr.PrOrder
+*/
+@Mapper
+public interface PrOrderMapper {
+
+ int deleteByPrimaryKey(Long id);
+
+ int insertSelective(PrOrder record);
+
+ PrOrder selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(PrOrder record);
+
+}
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrder.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrder.java
new file mode 100644
index 0000000..81f9282
--- /dev/null
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrder.java
@@ -0,0 +1,75 @@
+package com.dy.pmsGlobal.pojoPr;
+
+import com.alibaba.fastjson2.annotation.JSONField;
+import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import lombok.*;
+
+
+
+import java.util.Date;
+
+/**
+*
+* @TableName pr_order
+*/
+@TableName(value="pr_order", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+public class PrOrder implements BaseEntity {
+
+ /**
+ *
+ */
+ @NotNull(message="涓嶈兘涓虹┖")
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long id;
+ /**
+ * 鍚嶇О
+ */
+ public String name;
+ /**
+ * 瀹㈡埛鍚嶇О
+ */
+ public String customerName;
+ /**
+ * 璁㈠崟璐熻矗浜�
+ */
+ public String director;
+ /**
+ * 璐熻矗浜烘墜鏈哄彿
+ */
+ public String dMobile;
+ /**
+ * 浜や粯鏃ユ湡
+ */
+ public String deliveryDate;
+ /**
+ * 鐘舵��:姝e父(1)銆佹殏鍋�(0)銆佺粨鏉�(-1)
+ */
+ public Integer status;
+ /**
+ * 鍒涘缓浜�
+ */
+ public String creator;
+ /**
+ * 鍒涘缓鏃堕棿
+ */
+ public Date dt;
+ /**
+ * 鏄惁鍒犻櫎锛�1鏄紝0鍚�
+ */
+ public Integer deleted;
+ /**
+ * 澶囨敞
+ */
+ public String remark;
+
+
+}
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java
new file mode 100644
index 0000000..a57d92d
--- /dev/null
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java
@@ -0,0 +1,47 @@
+package com.dy.pmsGlobal.pojoPr;
+
+import com.alibaba.fastjson2.annotation.JSONField;
+import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import lombok.*;
+
+
+
+
+/**
+*
+* @TableName pr_order_item
+*/
+@TableName(value="pr_order_item", autoResultMap = true)
+@Data
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+public class PrOrderItem implements BaseEntity {
+
+ /**
+ * 缂栧彿
+ */
+ @NotNull(message="缂栧彿涓嶈兘涓虹┖")
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long id;
+ /**
+ * 璁㈠崟缂栧彿
+ */
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long orderId;
+ /**
+ * 鐢熶骇鏁伴噺
+ */
+ public Integer number;
+ /**
+ * 瀹屾垚鏁伴噺
+ */
+ public Integer completeNumber;
+
+
+}
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
new file mode 100644
index 0000000..20fbc9f
--- /dev/null
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml
@@ -0,0 +1,60 @@
+<?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.dy.pmsGlobal.daoPr.PrOrderItemMapper">
+
+ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoPr.PrOrderItem">
+ <id property="id" column="id" jdbcType="BIGINT"/>
+ <result property="orderId" column="order_id" jdbcType="BIGINT"/>
+ <result property="number" column="number" jdbcType="INTEGER"/>
+ <result property="completeNumber" column="complete_number" jdbcType="INTEGER"/>
+ </resultMap>
+
+ <sql id="Base_Column_List">
+ id,order_id,number,
+ complete_number
+ </sql>
+
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ select
+ <include refid="Base_Column_List" />
+ from pr_order_item
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ delete from pr_order_item
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrOrderItem" useGeneratedKeys="true">
+ insert into pr_order_item
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">id,</if>
+ <if test="orderId != null">order_id,</if>
+ <if test="number != null">number,</if>
+ <if test="completeNumber != null">complete_number,</if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">#{id,jdbcType=BIGINT},</if>
+ <if test="orderId != null">#{orderId,jdbcType=BIGINT},</if>
+ <if test="number != null">#{number,jdbcType=INTEGER},</if>
+ <if test="completeNumber != null">#{completeNumber,jdbcType=INTEGER},</if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrOrderItem">
+ update pr_order_item
+ <set>
+ <if test="orderId != null">
+ order_id = #{orderId,jdbcType=BIGINT},
+ </if>
+ <if test="number != null">
+ number = #{number,jdbcType=INTEGER},
+ </if>
+ <if test="completeNumber != null">
+ complete_number = #{completeNumber,jdbcType=INTEGER},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrOrderMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrOrderMapper.xml
new file mode 100644
index 0000000..b4ca8d5
--- /dev/null
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrOrderMapper.xml
@@ -0,0 +1,104 @@
+<?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.dy.pmsGlobal.daoPr.PrOrderMapper">
+
+ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoPr.PrOrder">
+ <id property="id" column="id" jdbcType="BIGINT"/>
+ <result property="name" column="name" jdbcType="VARCHAR"/>
+ <result property="customerName" column="customer_name" jdbcType="VARCHAR"/>
+ <result property="director" column="director" jdbcType="VARCHAR"/>
+ <result property="dMobile" column="d_mobile" jdbcType="VARCHAR"/>
+ <result property="deliveryDate" column="delivery_date" jdbcType="VARCHAR"/>
+ <result property="status" column="status" jdbcType="TINYINT"/>
+ <result property="creator" column="creator" jdbcType="VARCHAR"/>
+ <result property="dt" column="dt" jdbcType="TIMESTAMP"/>
+ <result property="deleted" column="deleted" jdbcType="TINYINT"/>
+ <result property="remark" column="remark" jdbcType="VARCHAR"/>
+ </resultMap>
+
+ <sql id="Base_Column_List">
+ id,name,customer_name,
+ director,d_mobile,delivery_date,
+ status,creator,dt,
+ deleted,remark
+ </sql>
+
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+ select
+ <include refid="Base_Column_List" />
+ from pr_order
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+ delete from pr_order
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrOrder" useGeneratedKeys="true">
+ insert into pr_order
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">id,</if>
+ <if test="name != null">name,</if>
+ <if test="customerName != null">customer_name,</if>
+ <if test="director != null">director,</if>
+ <if test="dMobile != null">d_mobile,</if>
+ <if test="deliveryDate != null">delivery_date,</if>
+ <if test="status != null">status,</if>
+ <if test="creator != null">creator,</if>
+ <if test="dt != null">dt,</if>
+ <if test="deleted != null">deleted,</if>
+ <if test="remark != null">remark,</if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">#{id,jdbcType=BIGINT},</if>
+ <if test="name != null">#{name,jdbcType=VARCHAR},</if>
+ <if test="customerName != null">#{customerName,jdbcType=VARCHAR},</if>
+ <if test="director != null">#{director,jdbcType=VARCHAR},</if>
+ <if test="dMobile != null">#{dMobile,jdbcType=VARCHAR},</if>
+ <if test="deliveryDate != null">#{deliveryDate,jdbcType=VARCHAR},</if>
+ <if test="status != null">#{status,jdbcType=TINYINT},</if>
+ <if test="creator != null">#{creator,jdbcType=VARCHAR},</if>
+ <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if>
+ <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if>
+ <if test="remark != null">#{remark,jdbcType=VARCHAR},</if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrOrder">
+ update pr_order
+ <set>
+ <if test="name != null">
+ name = #{name,jdbcType=VARCHAR},
+ </if>
+ <if test="customerName != null">
+ customer_name = #{customerName,jdbcType=VARCHAR},
+ </if>
+ <if test="director != null">
+ director = #{director,jdbcType=VARCHAR},
+ </if>
+ <if test="dMobile != null">
+ d_mobile = #{dMobile,jdbcType=VARCHAR},
+ </if>
+ <if test="deliveryDate != null">
+ delivery_date = #{deliveryDate,jdbcType=VARCHAR},
+ </if>
+ <if test="status != null">
+ status = #{status,jdbcType=TINYINT},
+ </if>
+ <if test="creator != null">
+ creator = #{creator,jdbcType=VARCHAR},
+ </if>
+ <if test="dt != null">
+ dt = #{dt,jdbcType=TIMESTAMP},
+ </if>
+ <if test="deleted != null">
+ deleted = #{deleted,jdbcType=TINYINT},
+ </if>
+ <if test="remark != null">
+ remark = #{remark,jdbcType=VARCHAR},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
--
Gitblit v1.8.0