ソースを参照

新增公出打卡表

anderx 1 年間 前
コミット
0d907ba0cf

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

@@ -0,0 +1,25 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.PublicReleaseClock;
+
+/**
+* @author Administrator
+* @description 针对表【public_release_clock(公出打卡表)】的数据库操作Mapper
+* @createDate 2024-04-19 14:56:48
+* @Entity com.goafanti.common.model.PublicReleaseClock
+*/
+public interface PublicReleaseClockMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(PublicReleaseClock record);
+
+    int insertSelective(PublicReleaseClock record);
+
+    PublicReleaseClock selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(PublicReleaseClock record);
+
+    int updateByPrimaryKey(PublicReleaseClock record);
+
+}

+ 91 - 0
src/main/java/com/goafanti/common/mapper/PublicReleaseClockMapper.xml

@@ -0,0 +1,91 @@
+<?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.PublicReleaseClockMapper">
+
+    <resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicReleaseClock">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="prid" column="prid" jdbcType="INTEGER"/>
+            <result property="prdid" column="prdid" jdbcType="INTEGER"/>
+            <result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
+            <result property="clockInTime" column="clock_in_time" jdbcType="TIMESTAMP"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,prid,prdid,
+        photo_url,clock_in_time,create_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from public_release_clock
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from public_release_clock
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseClock" useGeneratedKeys="true">
+        insert into public_release_clock
+        ( id,prid,prdid
+        ,photo_url,clock_in_time,create_time
+        )
+        values (#{id,jdbcType=INTEGER},#{prid,jdbcType=INTEGER},#{prdid,jdbcType=INTEGER}
+        ,#{photoUrl,jdbcType=VARCHAR},#{clockInTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP}
+        )
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseClock" useGeneratedKeys="true">
+        insert into public_release_clock
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="prid != null">prid,</if>
+                <if test="prdid != null">prdid,</if>
+                <if test="photoUrl != null">photo_url,</if>
+                <if test="clockInTime != null">clock_in_time,</if>
+                <if test="createTime != null">create_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="prid != null">#{prid,jdbcType=INTEGER},</if>
+                <if test="prdid != null">#{prdid,jdbcType=INTEGER},</if>
+                <if test="photoUrl != null">#{photoUrl,jdbcType=VARCHAR},</if>
+                <if test="clockInTime != null">#{clockInTime,jdbcType=TIMESTAMP},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseClock">
+        update public_release_clock
+        <set>
+                <if test="prid != null">
+                    prid = #{prid,jdbcType=INTEGER},
+                </if>
+                <if test="prdid != null">
+                    prdid = #{prdid,jdbcType=INTEGER},
+                </if>
+                <if test="photoUrl != null">
+                    photo_url = #{photoUrl,jdbcType=VARCHAR},
+                </if>
+                <if test="clockInTime != null">
+                    clock_in_time = #{clockInTime,jdbcType=TIMESTAMP},
+                </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.PublicReleaseClock">
+        update public_release_clock
+        set 
+            prid =  #{prid,jdbcType=INTEGER},
+            prdid =  #{prdid,jdbcType=INTEGER},
+            photo_url =  #{photoUrl,jdbcType=VARCHAR},
+            clock_in_time =  #{clockInTime,jdbcType=TIMESTAMP},
+            create_time =  #{createTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 126 - 0
src/main/java/com/goafanti/common/model/PublicReleaseClock.java

@@ -0,0 +1,126 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 公出打卡表
+ * @TableName public_release_clock
+ */
+public class PublicReleaseClock implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 公出编号
+     */
+    private Integer prid;
+
+    /**
+     * 公出详情编号
+     */
+    private Integer prdid;
+
+    /**
+     * 附件
+     */
+    private String photoUrl;
+
+    /**
+     * 打卡时间
+     */
+    private Date clockInTime;
+
+    /**
+     * 发起时间
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 公出编号
+     */
+    public Integer getPrid() {
+        return prid;
+    }
+
+    /**
+     * 公出编号
+     */
+    public void setPrid(Integer prid) {
+        this.prid = prid;
+    }
+
+    /**
+     * 公出详情编号
+     */
+    public Integer getPrdid() {
+        return prdid;
+    }
+
+    /**
+     * 公出详情编号
+     */
+    public void setPrdid(Integer prdid) {
+        this.prdid = prdid;
+    }
+
+    /**
+     * 附件
+     */
+    public String getPhotoUrl() {
+        return photoUrl;
+    }
+
+    /**
+     * 附件
+     */
+    public void setPhotoUrl(String photoUrl) {
+        this.photoUrl = photoUrl;
+    }
+
+    /**
+     * 打卡时间
+     */
+    public Date getClockInTime() {
+        return clockInTime;
+    }
+
+    /**
+     * 打卡时间
+     */
+    public void setClockInTime(Date clockInTime) {
+        this.clockInTime = clockInTime;
+    }
+
+    /**
+     * 发起时间
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 发起时间
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}