Browse Source

限定项目本地开发

anderx 1 year ago
parent
commit
5b24e90a2c

+ 1 - 1
src/main/java/com/goafanti/common/dao/BusinessProjectMapper.java

@@ -13,7 +13,7 @@ import java.util.Map;
 /**
 * @author Administrator
 * @description 针对表【business_project】的数据库操作Mapper
-* @createDate 2024-05-13 11:54:10
+* @createDate 2024-05-13 13:56:51
 * @Entity com.goafanti.common.model.BusinessProject
 */
 public interface BusinessProjectMapper {

+ 16 - 17
src/main/java/com/goafanti/common/mapper/BusinessProjectMapper.xml

@@ -33,7 +33,7 @@
             <result property="firstPayment" column="first_payment" jdbcType="DECIMAL"/>
             <result property="type" column="type" jdbcType="INTEGER"/>
             <result property="patentTransfer" column="patent_transfer" jdbcType="INTEGER"/>
-            <result property="restrict" column="restrict" jdbcType="INTEGER"/>
+            <result property="restrictStatus" column="restrict_status" jdbcType="INTEGER"/>
     </resultMap>
 
     <sql id="Base_Column_List">
@@ -46,19 +46,19 @@
         principal_id,Value_effect,client_size,
         min_logo,max_logo,project_url,
         boutique,first_payment,type,
-        patent_transfer,restrict
+        patent_transfer,restrict_status
     </sql>
 
-    <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
         select
         <include refid="Base_Column_List" />
         from business_project
-        where  id = #{id,jdbcType=VARCHAR}
+        where  id = #{id,jdbcType=VARCHAR} 
     </select>
 
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
         delete from business_project
-        where  id = #{id,jdbcType=VARCHAR}
+        where  id = #{id,jdbcType=VARCHAR} 
     </delete>
     <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.BusinessProject" useGeneratedKeys="true">
         insert into business_project
@@ -71,7 +71,7 @@
         ,principal_id,Value_effect,client_size
         ,min_logo,max_logo,project_url
         ,boutique,first_payment,type
-        ,patent_transfer,restrict)
+        ,patent_transfer,restrict_status)
         values (#{id,jdbcType=VARCHAR},#{createId,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
         ,#{updateTime,jdbcType=TIMESTAMP},#{deleteSign,jdbcType=INTEGER},#{bname,jdbcType=VARCHAR}
         ,#{cid,jdbcType=VARCHAR},#{price,jdbcType=DECIMAL},#{offset,jdbcType=DECIMAL}
@@ -81,7 +81,7 @@
         ,#{principalId,jdbcType=VARCHAR},#{valueEffect,jdbcType=VARCHAR},#{clientSize,jdbcType=VARCHAR}
         ,#{minLogo,jdbcType=VARCHAR},#{maxLogo,jdbcType=VARCHAR},#{projectUrl,jdbcType=VARCHAR}
         ,#{boutique,jdbcType=INTEGER},#{firstPayment,jdbcType=DECIMAL},#{type,jdbcType=INTEGER}
-        ,#{patentTransfer,jdbcType=INTEGER},#{restrict,jdbcType=INTEGER})
+        ,#{patentTransfer,jdbcType=INTEGER},#{restrictStatus,jdbcType=INTEGER})
     </insert>
     <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.BusinessProject" useGeneratedKeys="true">
         insert into business_project
@@ -114,7 +114,7 @@
                 <if test="firstPayment != null">first_payment,</if>
                 <if test="type != null">type,</if>
                 <if test="patentTransfer != null">patent_transfer,</if>
-                <if test="restrict != null">restrict,</if>
+                <if test="restrictStatus != null">restrict_status,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
                 <if test="id != null">#{id,jdbcType=VARCHAR},</if>
@@ -145,7 +145,7 @@
                 <if test="firstPayment != null">#{firstPayment,jdbcType=DECIMAL},</if>
                 <if test="type != null">#{type,jdbcType=INTEGER},</if>
                 <if test="patentTransfer != null">#{patentTransfer,jdbcType=INTEGER},</if>
-                <if test="restrict != null">#{restrict,jdbcType=INTEGER},</if>
+                <if test="restrictStatus != null">#{restrictStatus,jdbcType=INTEGER},</if>
         </trim>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.BusinessProject">
@@ -232,15 +232,15 @@
                 <if test="patentTransfer != null">
                     patent_transfer = #{patentTransfer,jdbcType=INTEGER},
                 </if>
-                <if test="restrict != null">
-                    restrict = #{restrict,jdbcType=INTEGER},
+                <if test="restrictStatus != null">
+                    restrict_status = #{restrictStatus,jdbcType=INTEGER},
                 </if>
         </set>
-        where   id = #{id,jdbcType=VARCHAR}
+        where   id = #{id,jdbcType=VARCHAR} 
     </update>
     <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.BusinessProject">
         update business_project
-        set
+        set 
             create_id =  #{createId,jdbcType=VARCHAR},
             create_time =  #{createTime,jdbcType=TIMESTAMP},
             update_time =  #{updateTime,jdbcType=TIMESTAMP},
@@ -268,8 +268,8 @@
             first_payment =  #{firstPayment,jdbcType=DECIMAL},
             type =  #{type,jdbcType=INTEGER},
             patent_transfer =  #{patentTransfer,jdbcType=INTEGER},
-            restrict =  #{restrict,jdbcType=INTEGER}
-        where   id = #{id,jdbcType=VARCHAR}
+            restrict_status =  #{restrictStatus,jdbcType=INTEGER}
+        where   id = #{id,jdbcType=VARCHAR} 
     </update>
     <select id="findProjectListByPage" resultType="com.goafanti.business.bo.BusinessProjectBo">
         select b.id, b.create_id as createId, b.create_time as createTime, b.update_time as updateTime,  b.delete_sign deleteSign, b.bname,
@@ -483,4 +483,3 @@
 
 
 </mapper>
-

+ 5 - 5
src/main/java/com/goafanti/common/model/BusinessProject.java

@@ -152,7 +152,7 @@ public class BusinessProject implements Serializable {
     /**
      * 限定 0否  1是
      */
-    private Integer restrict;
+    private Integer restrictStatus;
 
     private static final long serialVersionUID = 1L;
 
@@ -551,14 +551,14 @@ public class BusinessProject implements Serializable {
     /**
      * 限定 0否  1是
      */
-    public Integer getRestrict() {
-        return restrict;
+    public Integer getRestrictStatus() {
+        return restrictStatus;
     }
 
     /**
      * 限定 0否  1是
      */
-    public void setRestrict(Integer restrict) {
-        this.restrict = restrict;
+    public void setRestrictStatus(Integer restrictStatus) {
+        this.restrictStatus = restrictStatus;
     }
 }