Browse Source

会员项目文件上传

anderx 3 years ago
parent
commit
4922ef1159

+ 33 - 12
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -64,6 +64,7 @@
     <result column="pubicity_url" jdbcType="VARCHAR" property="pubicityUrl" />
     <result column="process_status" jdbcType="INTEGER" property="processStatus" />
     <result column="member_type" jdbcType="INTEGER" property="memberType" />
+    <result column="picture_url" jdbcType="VARCHAR" property="pictureUrl" />
   </resultMap>
   <sql id="Base_Column_List">
     id, order_no, main, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
@@ -76,7 +77,7 @@
     declaration_batch, cost_reduction, official_cost, set_up_status, set_up_time, spot_check_status,
     high_tech_status, special_comment, if_certification_fee, certification_fee, certification_corporate,
     time_record, if_publicity, check_status, patent_type, pubicity_url, process_status,
-    member_type
+    member_type, picture_url
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
     select
@@ -88,11 +89,12 @@
     delete from t_order_task
     where id = #{id,jdbcType=INTEGER}
   </delete>
+
   <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderTask" useGeneratedKeys="true">
-    insert into t_order_task (order_no, main, super_id,
-      commodity_id, commodity_name, commodity_quantity,
-      commodity_mode, commodity_price, task_status,
-      task_distribution_time, task_allocator,
+    insert into t_order_task (id, order_no, main,
+      super_id, commodity_id, commodity_name,
+      commodity_quantity, commodity_mode, commodity_price,
+      task_status, task_distribution_time, task_allocator,
       task_receiver, task_comment, task_start_time,
       task_end_time, attachment_url, project_status,
       accept_time, review_time, publicity_time,
@@ -109,11 +111,12 @@
       special_comment, if_certification_fee, certification_fee,
       certification_corporate, time_record, if_publicity,
       check_status, patent_type, pubicity_url,
-      process_status, member_type)
-    values (#{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{superId,jdbcType=VARCHAR},
-      #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER},
-      #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, #{taskStatus,jdbcType=INTEGER},
-      #{taskDistributionTime,jdbcType=TIMESTAMP}, #{taskAllocator,jdbcType=VARCHAR},
+      process_status, member_type, picture_url
+      )
+    values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER},
+      #{superId,jdbcType=VARCHAR}, #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR},
+      #{commodityQuantity,jdbcType=INTEGER}, #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL},
+      #{taskStatus,jdbcType=INTEGER}, #{taskDistributionTime,jdbcType=TIMESTAMP}, #{taskAllocator,jdbcType=VARCHAR},
       #{taskReceiver,jdbcType=VARCHAR}, #{taskComment,jdbcType=VARCHAR}, #{taskStartTime,jdbcType=TIMESTAMP},
       #{taskEndTime,jdbcType=TIMESTAMP}, #{attachmentUrl,jdbcType=VARCHAR}, #{projectStatus,jdbcType=INTEGER},
       #{acceptTime,jdbcType=DATE}, #{reviewTime,jdbcType=DATE}, #{publicityTime,jdbcType=DATE},
@@ -130,11 +133,16 @@
       #{specialComment,jdbcType=VARCHAR}, #{ifCertificationFee,jdbcType=INTEGER}, #{certificationFee,jdbcType=DECIMAL},
       #{certificationCorporate,jdbcType=VARCHAR}, #{timeRecord,jdbcType=VARCHAR}, #{ifPublicity,jdbcType=INTEGER},
       #{checkStatus,jdbcType=INTEGER}, #{patentType,jdbcType=INTEGER}, #{pubicityUrl,jdbcType=VARCHAR},
-      #{processStatus,jdbcType=INTEGER}, #{memberType,jdbcType=INTEGER})
+      #{processStatus,jdbcType=INTEGER}, #{memberType,jdbcType=INTEGER}, #{pictureUrl,jdbcType=VARCHAR}
+      )
   </insert>
+
   <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderTask" useGeneratedKeys="true">
     insert into t_order_task
     <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
       <if test="orderNo != null">
         order_no,
       </if>
@@ -318,8 +326,14 @@
       <if test="memberType != null">
         member_type,
       </if>
+      <if test="pictureUrl != null">
+        picture_url,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
       <if test="orderNo != null">
         #{orderNo,jdbcType=VARCHAR},
       </if>
@@ -503,6 +517,9 @@
       <if test="memberType != null">
         #{memberType,jdbcType=INTEGER},
       </if>
+      <if test="pictureUrl != null">
+        #{pictureUrl,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderTask">
@@ -691,6 +708,9 @@
       <if test="memberType != null">
         member_type = #{memberType,jdbcType=INTEGER},
       </if>
+      <if test="pictureUrl != null">
+        picture_url = #{pictureUrl,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
@@ -756,7 +776,8 @@
       patent_type = #{patentType,jdbcType=INTEGER},
       pubicity_url = #{pubicityUrl,jdbcType=VARCHAR},
       process_status = #{processStatus,jdbcType=INTEGER},
-      member_type = #{memberType,jdbcType=INTEGER}
+      member_type = #{memberType,jdbcType=INTEGER},
+      picture_url = #{pictureUrl,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
 

+ 13 - 0
src/main/java/com/goafanti/common/model/TOrderTask.java

@@ -319,6 +319,11 @@ public class TOrderTask implements Serializable {
      */
     private Integer memberType;
 
+    /**
+     * 图片地址
+     */
+    private String pictureUrl;
+
     private static final long serialVersionUID = 1L;
 
     public Integer getId() {
@@ -816,4 +821,12 @@ public class TOrderTask implements Serializable {
     public void setMemberType(Integer memberType) {
         this.memberType = memberType;
     }
+
+    public String getPictureUrl() {
+        return pictureUrl;
+    }
+
+    public void setPictureUrl(String pictureUrl) {
+        this.pictureUrl = pictureUrl;
+    }
 }