Browse Source

取消技术打卡限制

anderx 1 year ago
parent
commit
9155832dbe

+ 25 - 0
src/main/java/com/goafanti/common/dao/TOrderPublicReleaseCountMapper.java

@@ -0,0 +1,25 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrderPublicReleaseCount;
+
+/**
+* @author Administrator
+* @description 针对表【t_order_public_release_count(订单公出信息表)】的数据库操作Mapper
+* @createDate 2024-04-25 14:07:26
+* @Entity com.goafanti.common.model.TOrderPublicReleaseCount
+*/
+public interface TOrderPublicReleaseCountMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(TOrderPublicReleaseCount record);
+
+    int insertSelective(TOrderPublicReleaseCount record);
+
+    TOrderPublicReleaseCount selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(TOrderPublicReleaseCount record);
+
+    int updateByPrimaryKey(TOrderPublicReleaseCount record);
+
+}

+ 106 - 0
src/main/java/com/goafanti/common/mapper/TOrderPublicReleaseCountMapper.xml

@@ -0,0 +1,106 @@
+<?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.goafanti.common.dao.TOrderPublicReleaseCountMapper">
+
+    <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderPublicReleaseCount">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="orderNo" column="order_no" jdbcType="VARCHAR"/>
+            <result property="maxDuration" column="max_duration" jdbcType="DOUBLE"/>
+            <result property="actualDuration" column="actual_duration" jdbcType="DOUBLE"/>
+            <result property="exceedDuration" column="exceed_duration" jdbcType="DOUBLE"/>
+            <result property="peopleCount" column="people_count" jdbcType="INTEGER"/>
+            <result property="frequency" column="frequency" jdbcType="INTEGER"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,order_no,max_duration,
+        actual_duration,exceed_duration,people_count,
+        frequency,create_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from t_order_public_release_count
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from t_order_public_release_count
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderPublicReleaseCount" useGeneratedKeys="true">
+        insert into t_order_public_release_count
+        ( id,order_no,max_duration
+        ,actual_duration,exceed_duration,people_count
+        ,frequency,create_time)
+        values (#{id,jdbcType=INTEGER},#{orderNo,jdbcType=VARCHAR},#{maxDuration,jdbcType=DOUBLE}
+        ,#{actualDuration,jdbcType=DOUBLE},#{exceedDuration,jdbcType=DOUBLE},#{peopleCount,jdbcType=INTEGER}
+        ,#{frequency,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderPublicReleaseCount" useGeneratedKeys="true">
+        insert into t_order_public_release_count
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="orderNo != null">order_no,</if>
+                <if test="maxDuration != null">max_duration,</if>
+                <if test="actualDuration != null">actual_duration,</if>
+                <if test="exceedDuration != null">exceed_duration,</if>
+                <if test="peopleCount != null">people_count,</if>
+                <if test="frequency != null">frequency,</if>
+                <if test="createTime != null">create_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="orderNo != null">#{orderNo,jdbcType=VARCHAR},</if>
+                <if test="maxDuration != null">#{maxDuration,jdbcType=DOUBLE},</if>
+                <if test="actualDuration != null">#{actualDuration,jdbcType=DOUBLE},</if>
+                <if test="exceedDuration != null">#{exceedDuration,jdbcType=DOUBLE},</if>
+                <if test="peopleCount != null">#{peopleCount,jdbcType=INTEGER},</if>
+                <if test="frequency != null">#{frequency,jdbcType=INTEGER},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderPublicReleaseCount">
+        update t_order_public_release_count
+        <set>
+                <if test="orderNo != null">
+                    order_no = #{orderNo,jdbcType=VARCHAR},
+                </if>
+                <if test="maxDuration != null">
+                    max_duration = #{maxDuration,jdbcType=DOUBLE},
+                </if>
+                <if test="actualDuration != null">
+                    actual_duration = #{actualDuration,jdbcType=DOUBLE},
+                </if>
+                <if test="exceedDuration != null">
+                    exceed_duration = #{exceedDuration,jdbcType=DOUBLE},
+                </if>
+                <if test="peopleCount != null">
+                    people_count = #{peopleCount,jdbcType=INTEGER},
+                </if>
+                <if test="frequency != null">
+                    frequency = #{frequency,jdbcType=INTEGER},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderPublicReleaseCount">
+        update t_order_public_release_count
+        set 
+            order_no =  #{orderNo,jdbcType=VARCHAR},
+            max_duration =  #{maxDuration,jdbcType=DOUBLE},
+            actual_duration =  #{actualDuration,jdbcType=DOUBLE},
+            exceed_duration =  #{exceedDuration,jdbcType=DOUBLE},
+            people_count =  #{peopleCount,jdbcType=INTEGER},
+            frequency =  #{frequency,jdbcType=INTEGER},
+            create_time =  #{createTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 164 - 0
src/main/java/com/goafanti/common/model/TOrderPublicReleaseCount.java

@@ -0,0 +1,164 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 订单公出信息表
+ * @TableName t_order_public_release_count
+ */
+public class TOrderPublicReleaseCount implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 订单编号
+     */
+    private String orderNo;
+
+    /**
+     * 最大公出
+     */
+    private Double maxDuration;
+
+    /**
+     * 实际公出
+     */
+    private Double actualDuration;
+
+    /**
+     * 超出公出
+     */
+    private Double exceedDuration;
+
+    /**
+     * 公出人数
+     */
+    private Integer peopleCount;
+
+    /**
+     * 公出次数
+     */
+    private Integer frequency;
+
+    /**
+     * 发起时间
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 订单编号
+     */
+    public String getOrderNo() {
+        return orderNo;
+    }
+
+    /**
+     * 订单编号
+     */
+    public void setOrderNo(String orderNo) {
+        this.orderNo = orderNo;
+    }
+
+    /**
+     * 最大公出
+     */
+    public Double getMaxDuration() {
+        return maxDuration;
+    }
+
+    /**
+     * 最大公出
+     */
+    public void setMaxDuration(Double maxDuration) {
+        this.maxDuration = maxDuration;
+    }
+
+    /**
+     * 实际公出
+     */
+    public Double getActualDuration() {
+        return actualDuration;
+    }
+
+    /**
+     * 实际公出
+     */
+    public void setActualDuration(Double actualDuration) {
+        this.actualDuration = actualDuration;
+    }
+
+    /**
+     * 超出公出
+     */
+    public Double getExceedDuration() {
+        return exceedDuration;
+    }
+
+    /**
+     * 超出公出
+     */
+    public void setExceedDuration(Double exceedDuration) {
+        this.exceedDuration = exceedDuration;
+    }
+
+    /**
+     * 公出人数
+     */
+    public Integer getPeopleCount() {
+        return peopleCount;
+    }
+
+    /**
+     * 公出人数
+     */
+    public void setPeopleCount(Integer peopleCount) {
+        this.peopleCount = peopleCount;
+    }
+
+    /**
+     * 公出次数
+     */
+    public Integer getFrequency() {
+        return frequency;
+    }
+
+    /**
+     * 公出次数
+     */
+    public void setFrequency(Integer frequency) {
+        this.frequency = frequency;
+    }
+
+    /**
+     * 发起时间
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 发起时间
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}