소스 검색

成果需求APP图片更改

anderx 7 년 전
부모
커밋
c898db3864

+ 9 - 0
src/main/java/com/goafanti/achievement/bo/AchievementEntity.java

@@ -31,6 +31,7 @@ public class AchievementEntity {
     private Integer boutique;//是否精品
     private Integer interest;//是否感兴趣
     private Integer orderCount;//订单数
+	private String pictureUrlMin;//APP图片
 
     public String getField2() {
 		return field2;
@@ -247,4 +248,12 @@ public class AchievementEntity {
 	public void setKeyword(String keyword) {
 		this.keyword = keyword;
 	}
+
+	public String getPictureUrlMin() {
+		return pictureUrlMin;
+	}
+
+	public void setPictureUrlMin(String pictureUrlMin) {
+		this.pictureUrlMin = pictureUrlMin;
+	}
 }

+ 15 - 0
src/main/java/com/goafanti/achievement/bo/InputAchievement.java

@@ -34,6 +34,10 @@ public class InputAchievement {
 
 	@Size(min = 0, max = 500, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
 	private String		technicalPictureUrl;
+	
+	@Size(min = 0, max = 500, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
+	private String pictureUrlMin;
+
 
 	@Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
 	@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
@@ -97,6 +101,8 @@ public class InputAchievement {
 
 	@Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
 	private String		techPlanUrl;
+	
+	
 
 
 	
@@ -134,6 +140,15 @@ public class InputAchievement {
 	public String getAuditInfo() {
 		return auditInfo;
 	}
+	
+
+	public String getPictureUrlMin() {
+		return pictureUrlMin;
+	}
+
+	public void setPictureUrlMin(String pictureUrlMin) {
+		this.pictureUrlMin = pictureUrlMin;
+	}
 
 	public void setAuditInfo(String auditInfo) {
 		this.auditInfo = auditInfo;

+ 15 - 5
src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

@@ -90,7 +90,7 @@
       transfer_mode, bargaining_mode, transfer_price,  patent_case, 
       awards, team_des, parameter,  status, 
       create_time, release_status, release_date, 
-      deleted_sign, audit_status,international_flag,boutique,is_hot,info_sources)
+      deleted_sign, audit_status,international_flag,boutique,is_hot,info_sources,picture_url_min)
     values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER}, 
       #{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER}, 
       #{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=LONGVARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR}, 
@@ -103,7 +103,7 @@
     #{status,jdbcType=INTEGER}, 
       #{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP}, 
       #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
-       #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{isHot,jdbcType=INTEGER},#{infoSources,jdbcType=INTEGER})
+       #{internationalFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER},#{isHot,jdbcType=INTEGER},#{infoSources,jdbcType=INTEGER},#{pictureUrlMin,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
     insert into achievement
@@ -276,6 +276,9 @@
       <if test="boutique !=null">
       	boutique,
       </if>
+      <if test="pictureUrlMin !=null">
+      	picture_url_min,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -446,6 +449,9 @@
       <if test="boutique != null">
       	#{boutique,jdbcType=INTEGER}
       </if>
+      <if test="pictureUrlMin !=null">
+      	#{pictureUrlMin,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
@@ -553,6 +559,9 @@
        <if test="auditInfo != null">
         audit_info = #{auditInfo,jdbcType=VARCHAR},
       </if>
+       <if test="pictureUrlMin !=null">
+      	picture_url_min = #{pictureUrlMin,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
@@ -585,7 +594,8 @@
       audit_status = #{auditStatus,jdbcType=INTEGER},
       country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
       international_flag = #{internationalFlag,jdbcType=INTEGER},
-      boutique = #{boutique,jdbcType=INTEGER}
+      boutique = #{boutique,jdbcType=INTEGER},
+      picture_url_min=#{pictureUrlMin,jdbcType=VARCHAR},
     where id = #{id,jdbcType=VARCHAR}
   </update>
   
@@ -1414,9 +1424,9 @@ where
   	where ai.uid=#{uid,jdbcType=VARCHAR}
   	</select>
   	<select id="selectAppAchuevementDetail" resultType="com.goafanti.achievement.bo.AchievementEntity">
-  	select a.id,a.name,a.keyword,a.data_category as dataCategory,a.summary,a.introduction,a.transfer_mode as transferMode,a.status,a.transfer_price as transferPrice ,a.innovation,a.maturity,a.audit_status,a.technical_picture_url as technicalPictureUrl,
+  	select a.id,a.name,a.keyword,a.data_category as dataCategory,a.category,a.summary,a.introduction,a.transfer_mode as transferMode,a.status,a.transfer_price as transferPrice ,a.innovation,a.maturity,a.audit_status,a.technical_picture_url as technicalPictureUrl,
   a.field_a as fieldA,a.field_b as fieldB,a.field_c as fieldC,f.name as field1,f2.name as field2,f3.name as field3,a.release_status as releaseStatus,a.audit_status as auditStatus,a.boutique,a.field_a as fieldA,a.is_hot as isHot,a.release_date as releaseDate,if(isnull(b.count),0,b.count) as interestCount,
-  if(isnull(d.achievement_id),0,1) interest,ifnull(t.count,0) as orderCount
+  if(isnull(d.achievement_id),0,1) interest,ifnull(t.count,0) as orderCount,a.picture_url_min as pictureUrlMin
    from achievement a left join industry_category f on a.field_a=f.id
   left join industry_category f2 on a.field_b=f2.id
   left join industry_category f3 on a.field_c=f3.id

+ 15 - 4
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -66,7 +66,7 @@
     f.name as field1,f2.name as field2,d.is_hot as isHot,d.release_date as releaseDate,d.demand_type as demandType,
     d.name,d.problem_des as problemDes,d.picture_url as pictureUrl,d.release_status as releaseStatus,
     d.audit_status as auditStatus,d.fixed_budget as fixedBudget,d.crowd_cost as crowdCost,
-    ifnull(i.y,0) as interestCount,if(isnull(a.demand_id),0,1) as interest,ifnull(t.count,0) as orderCount
+    ifnull(i.y,0) as interestCount,if(isnull(a.demand_id),0,1) as interest,ifnull(t.count,0) as orderCount,d.picture_url_min as pictureUrlMin
     from demand d
     left join (select b.commodity_id as id,count(*) as count from jt_order a left join jt_order_detail b on a.order_no=b.order_no
 	GROUP by b.commodity_id) t on d.id=t.id
@@ -95,7 +95,7 @@
       employer_contacts_mailbox, contacts, status, 
       release_status, release_date, create_time, 
       principal_id, deleted_sign, audit_status, tech_broker_id,boutique,remark,urgent_days,urgent_money,contact_mobile,crowd_cost,
-      is_hot,is_urgent,research_type)
+      is_hot,is_urgent,research_type,picture_url_min)
     values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER}, 
       #{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{infoSources,jdbcType=INTEGER}, 
       #{industryCategoryA,jdbcType=INTEGER}, #{industryCategoryB,jdbcType=INTEGER}, #{industryCategoryC,jdbcType=INTEGER}, 
@@ -109,7 +109,7 @@
       #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, 
       #{principalId,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER},
       #{techBrokerId,jdbcType=VARCHAR},#{boutique,jdbcType=INTEGER},#{remark,jdbcType=VARCHAR},#{urgentDays,jdbcType=VARCHAR},#{urgentMoney,jdbcType=VARCHAR},#{contactMobile,jdbcType=VARCHAR},#{crowdCost,jdbcType=DECIMAL},
-      #{isHot,jdbcType=INTEGER},#{isUrgent,jdbcType=INTEGER},#{researchType,jdbcType=INTEGER})
+      #{isHot,jdbcType=INTEGER},#{isUrgent,jdbcType=INTEGER},#{researchType,jdbcType=INTEGER},#{pictureUrlMin,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.goafanti.common.model.Demand" >
     insert into demand
@@ -231,6 +231,9 @@
       <if test="remark != null" >
         remark,
       </if>
+      <if test="pictureUrlMin != null" >
+        picture_url_min,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides="," >
       <if test="id != null" >
@@ -350,6 +353,10 @@
       <if test="remark != null" >
         #{remark,jdbcType=VARCHAR},
       </if>
+            <if test="pictureUrlMin != null" >
+      #{pictureUrlMin,jdbcType=VARCHAR},
+      </if>
+      
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Demand" >
@@ -496,6 +503,9 @@
       <if test="auditInfo!=null">
       audit_info=#{auditInfo,jdbcType=VARCHAR}
       </if>
+      <if test="pictureUrlMin !=null">
+      picture_url_min=#{pictureUrlMin,jdbcType=VARCHAR}
+      </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
@@ -537,7 +547,8 @@
       deleted_sign = #{deletedSign,jdbcType=INTEGER},
       audit_status = #{auditStatus,jdbcType=INTEGER},
       tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
-      boutique = #{boutique,jdbcType=INTEGER}
+      boutique = #{boutique,jdbcType=INTEGER},
+      picture_url_min=#{pictureUrlMin,jdbcType=VARCHAR}
     where id = #{id,jdbcType=VARCHAR}
   </update>
 

+ 11 - 1
src/main/java/com/goafanti/common/model/Achievement.java

@@ -298,7 +298,9 @@ public class Achievement {
 	private Integer infoSources;
 	private String introduction;
 	
-String auditInfo;
+	private String pictureUrlMin;
+	
+	private String auditInfo;
 
 	public String getAuditInfo() {
 	return auditInfo;
@@ -1368,4 +1370,12 @@ public void setAuditInfo(String auditInfo) {
 		this.infoSources = infoSources;
 	}
 
+	public String getPictureUrlMin() {
+		return pictureUrlMin;
+	}
+
+	public void setPictureUrlMin(String pictureUrlMin) {
+		this.pictureUrlMin = pictureUrlMin;
+	}
+
 }

+ 12 - 0
src/main/java/com/goafanti/common/model/Demand.java

@@ -3,6 +3,7 @@ package com.goafanti.common.model;
 import java.math.BigDecimal;
 import java.util.Date;
 
+
 import org.apache.commons.lang3.StringUtils;
 
 import com.goafanti.common.utils.FileUtils;
@@ -243,6 +244,9 @@ public class Demand {
 	 * @mbg.generated  Tue Jun 12 17:36:53 CST 2018
 	 */
 	private String pictureUrl;
+	
+	
+	private String pictureUrlMin;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column demand.id
@@ -1122,4 +1126,12 @@ public class Demand {
 
 	}
 
+	public String getPictureUrlMin() {
+		return pictureUrlMin;
+	}
+
+	public void setPictureUrlMin(String pictureUrlMin) {
+		this.pictureUrlMin = pictureUrlMin;
+	}
+
 }

+ 7 - 0
src/main/java/com/goafanti/demand/bo/AppDemandBo.java

@@ -25,6 +25,7 @@ public class AppDemandBo {
 	    private BigDecimal crowdCost;//资金需求金额
 	    private BigDecimal budgetCost;
 	    private Date createTime;
+	    private String pictureUrlMin;
 		public int getFieldA() {
 			return fieldA;
 		}
@@ -151,4 +152,10 @@ public class AppDemandBo {
 		public void setCreateTime(Date createTime) {
 			this.createTime = createTime;
 		}
+		public String getPictureUrlMin() {
+			return pictureUrlMin;
+		}
+		public void setPictureUrlMin(String pictureUrlMin) {
+			this.pictureUrlMin = pictureUrlMin;
+		}
 }

+ 10 - 0
src/main/java/com/goafanti/demand/bo/InputDemand.java

@@ -96,6 +96,8 @@ public class InputDemand {
 	
 	@Size(min = 0, max = 1000, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
 	private String		pictureUrl;
+	@Size(min = 0, max = 500, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
+	private String pictureUrlMin;
 	
 	@Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
 	private String		employerId;
@@ -107,6 +109,14 @@ public class InputDemand {
 	@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
 	private Integer		infoSources;
 
+	public String getPictureUrlMin() {
+		return pictureUrlMin;
+	}
+
+	public void setPictureUrlMin(String pictureUrlMin) {
+		this.pictureUrlMin = pictureUrlMin;
+	}
+
 	public String getName() {
 		return name;
 	}

+ 0 - 1
src/main/java/com/goafanti/demand/service/impl/DemandServiceImpl.java

@@ -110,7 +110,6 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
 	@Autowired
 	DemandPublishMapper demandPublishMapper;
 
-	private final int source_platform = 0;
 
 	@Override
 	public int updateUserDemand(Demand d, String validityPeriodFormattedDate, String[] keywords,List<String> webPages,List<String> appPages) {