Browse Source

财务经理变更列表BUG
1.2.61

anderx 3 years ago
parent
commit
e49b91fc62

+ 17 - 0
src/main/java/com/goafanti/common/dao/PublicReleaseDetailsMapper.java

@@ -0,0 +1,17 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.PublicReleaseDetails;
+
+public interface PublicReleaseDetailsMapper {
+    int deleteByPrimaryKey(Integer id);
+
+    int insert(PublicReleaseDetails record);
+
+    int insertSelective(PublicReleaseDetails record);
+
+    PublicReleaseDetails selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(PublicReleaseDetails record);
+
+    int updateByPrimaryKey(PublicReleaseDetails record);
+}

+ 98 - 0
src/main/java/com/goafanti/common/mapper/PublicReleaseDetailsMapper.xml

@@ -0,0 +1,98 @@
+<?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.PublicReleaseDetailsMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicReleaseDetails">
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="prid" jdbcType="INTEGER" property="prid" />
+    <result column="uid" jdbcType="VARCHAR" property="uid" />
+    <result column="ufid" jdbcType="VARCHAR" property="ufid" />
+    <result column="new_user" jdbcType="INTEGER" property="newUser" />
+    <result column="sign_sum" jdbcType="INTEGER" property="signSum" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, prid, `uid`, ufid, new_user, sign_sum
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from public_release_details
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from public_release_details
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
+    insert into public_release_details (prid, `uid`, ufid, 
+      new_user, sign_sum)
+    values (#{prid,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{ufid,jdbcType=VARCHAR}, 
+      #{newUser,jdbcType=INTEGER}, #{signSum,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicReleaseDetails" useGeneratedKeys="true">
+    insert into public_release_details
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="prid != null">
+        prid,
+      </if>
+      <if test="uid != null">
+        `uid`,
+      </if>
+      <if test="ufid != null">
+        ufid,
+      </if>
+      <if test="newUser != null">
+        new_user,
+      </if>
+      <if test="signSum != null">
+        sign_sum,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="prid != null">
+        #{prid,jdbcType=INTEGER},
+      </if>
+      <if test="uid != null">
+        #{uid,jdbcType=VARCHAR},
+      </if>
+      <if test="ufid != null">
+        #{ufid,jdbcType=VARCHAR},
+      </if>
+      <if test="newUser != null">
+        #{newUser,jdbcType=INTEGER},
+      </if>
+      <if test="signSum != null">
+        #{signSum,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicReleaseDetails">
+    update public_release_details
+    <set>
+      <if test="prid != null">
+        prid = #{prid,jdbcType=INTEGER},
+      </if>
+      <if test="uid != null">
+        `uid` = #{uid,jdbcType=VARCHAR},
+      </if>
+      <if test="ufid != null">
+        ufid = #{ufid,jdbcType=VARCHAR},
+      </if>
+      <if test="newUser != null">
+        new_user = #{newUser,jdbcType=INTEGER},
+      </if>
+      <if test="signSum != null">
+        sign_sum = #{signSum,jdbcType=INTEGER},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PublicReleaseDetails">
+    update public_release_details
+    set prid = #{prid,jdbcType=INTEGER},
+      `uid` = #{uid,jdbcType=VARCHAR},
+      ufid = #{ufid,jdbcType=VARCHAR},
+      new_user = #{newUser,jdbcType=INTEGER},
+      sign_sum = #{signSum,jdbcType=INTEGER}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 86 - 0
src/main/java/com/goafanti/common/model/PublicReleaseDetails.java

@@ -0,0 +1,86 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+
+/**
+ * public_release_details
+ * @author 
+ */
+public class PublicReleaseDetails implements Serializable {
+    private Integer id;
+
+    /**
+     * 公出编号
+     */
+    private Integer prid;
+
+    /**
+     * 客户id
+     */
+    private String uid;
+
+    /**
+     * 跟进id
+     */
+    private String ufid;
+
+    /**
+     * 客户类型 0新客户 1老客户
+     */
+    private Integer newUser;
+
+    /**
+     * 签单数
+     */
+    private Integer signSum;
+
+    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 String getUid() {
+        return uid;
+    }
+
+    public void setUid(String uid) {
+        this.uid = uid;
+    }
+
+    public String getUfid() {
+        return ufid;
+    }
+
+    public void setUfid(String ufid) {
+        this.ufid = ufid;
+    }
+
+    public Integer getNewUser() {
+        return newUser;
+    }
+
+    public void setNewUser(Integer newUser) {
+        this.newUser = newUser;
+    }
+
+    public Integer getSignSum() {
+        return signSum;
+    }
+
+    public void setSignSum(Integer signSum) {
+        this.signSum = signSum;
+    }
+}