anderx 5 years ago
parent
commit
de18c5804b

+ 60 - 0
src/main/java/com/goafanti/common/dao/OrganizationBusinessScopeMapper.java

@@ -0,0 +1,60 @@
+package com.goafanti.common.dao;
+
+import java.util.List;
+
+import com.goafanti.common.model.OrganizationBusinessScope;
+
+public interface OrganizationBusinessScopeMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    int insert(OrganizationBusinessScope record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    int insertSelective(OrganizationBusinessScope record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    OrganizationBusinessScope selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    int updateByPrimaryKeySelective(OrganizationBusinessScope record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    int updateByPrimaryKey(OrganizationBusinessScope record);
+
+
+	void insertBatch(List<OrganizationBusinessScope> list);
+
+	void deleteByUid(String uid);
+}

+ 59 - 0
src/main/java/com/goafanti/common/dao/OrganizationSalesTargetMapper.java

@@ -0,0 +1,59 @@
+package com.goafanti.common.dao;
+
+import java.util.List;
+
+import com.goafanti.common.model.OrganizationSalesTarget;
+
+public interface OrganizationSalesTargetMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    int insert(OrganizationSalesTarget record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    int insertSelective(OrganizationSalesTarget record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    OrganizationSalesTarget selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    int updateByPrimaryKeySelective(OrganizationSalesTarget record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    int updateByPrimaryKey(OrganizationSalesTarget record);
+
+	void insertBatch(List<OrganizationSalesTarget> list);
+
+	void deleteByUid(String uid);
+}

+ 125 - 0
src/main/java/com/goafanti/common/mapper/OrganizationSalesTargetMapper.xml

@@ -0,0 +1,125 @@
+<?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.OrganizationSalesTargetMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.OrganizationSalesTarget">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="uid" jdbcType="VARCHAR" property="uid" />
+    <result column="keyword" jdbcType="VARCHAR" property="keyword" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    id, `uid`, keyword
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from organization_sales_target
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    delete from organization_sales_target
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    insert into organization_sales_target (id, `uid`, keyword
+      )
+    values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    insert into organization_sales_target
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="uid != null">
+        `uid`,
+      </if>
+      <if test="keyword != null">
+        keyword,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="uid != null">
+        #{uid,jdbcType=VARCHAR},
+      </if>
+      <if test="keyword != null">
+        #{keyword,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    update organization_sales_target
+    <set>
+      <if test="uid != null">
+        `uid` = #{uid,jdbcType=VARCHAR},
+      </if>
+      <if test="keyword != null">
+        keyword = #{keyword,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Jan 04 17:13:29 CST 2021.
+    -->
+    update organization_sales_target
+    set `uid` = #{uid,jdbcType=VARCHAR},
+      keyword = #{keyword,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  
+  <insert id="insertBatch" parameterType="com.goafanti.common.model.OrganizationSalesTarget">
+    insert into organization_sales_target
+    (`uid`, keyword)
+     values    
+    <foreach item="item" index="index" collection="list" separator=",">
+      (#{item.uid,jdbcType=VARCHAR},
+        #{item.keyword,jdbcType=VARCHAR})
+     </foreach>   
+  </insert>
+  
+  <delete id="deleteByUid">
+  delete from organization_sales_target where uid= #{uid}
+  </delete>
+</mapper>

+ 132 - 0
src/main/java/com/goafanti/common/model/OrganizationBusinessScope.java

@@ -0,0 +1,132 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+
+public class OrganizationBusinessScope implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column organization_business_scope.id
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column organization_business_scope.uid
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    private String uid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column organization_business_scope.keyword
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    private String keyword;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column organization_business_scope.id
+     *
+     * @return the value of organization_business_scope.id
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column organization_business_scope.id
+     *
+     * @param id the value for organization_business_scope.id
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column organization_business_scope.uid
+     *
+     * @return the value of organization_business_scope.uid
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    public String getUid() {
+        return uid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column organization_business_scope.uid
+     *
+     * @param uid the value for organization_business_scope.uid
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    public void setUid(String uid) {
+        this.uid = uid == null ? null : uid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column organization_business_scope.keyword
+     *
+     * @return the value of organization_business_scope.keyword
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    public String getKeyword() {
+        return keyword;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column organization_business_scope.keyword
+     *
+     * @param keyword the value for organization_business_scope.keyword
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    public void setKeyword(String keyword) {
+        this.keyword = keyword == null ? null : keyword.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_business_scope
+     *
+     * @mbg.generated Mon Jan 04 17:13:19 CST 2021
+     */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", uid=").append(uid);
+        sb.append(", keyword=").append(keyword);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 132 - 0
src/main/java/com/goafanti/common/model/OrganizationSalesTarget.java

@@ -0,0 +1,132 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+
+public class OrganizationSalesTarget implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column organization_sales_target.id
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column organization_sales_target.uid
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    private String uid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column organization_sales_target.keyword
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    private String keyword;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column organization_sales_target.id
+     *
+     * @return the value of organization_sales_target.id
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column organization_sales_target.id
+     *
+     * @param id the value for organization_sales_target.id
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column organization_sales_target.uid
+     *
+     * @return the value of organization_sales_target.uid
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    public String getUid() {
+        return uid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column organization_sales_target.uid
+     *
+     * @param uid the value for organization_sales_target.uid
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    public void setUid(String uid) {
+        this.uid = uid == null ? null : uid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column organization_sales_target.keyword
+     *
+     * @return the value of organization_sales_target.keyword
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    public String getKeyword() {
+        return keyword;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column organization_sales_target.keyword
+     *
+     * @param keyword the value for organization_sales_target.keyword
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    public void setKeyword(String keyword) {
+        this.keyword = keyword == null ? null : keyword.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table organization_sales_target
+     *
+     * @mbg.generated Mon Jan 04 17:13:29 CST 2021
+     */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", uid=").append(uid);
+        sb.append(", keyword=").append(keyword);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}