wanghui лет назад: 7
Родитель
Сommit
a32c17679c

+ 1 - 1
GeneratorConfig.xml

@@ -10,6 +10,6 @@
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="jitao-server" />
     <!-- <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="jitao-server" /> -->
    <!--  <javaClientGenerator targetPackage="com.goafanti.common.dao" targetProject="jitao-server" type="XMLMAPPER" /> -->
-    <table schema="aft" tableName="demand"/> 
+    <table schema="aft" tableName="achievement"/> 
   </context>
 </generatorConfiguration>

+ 0 - 17
src/main/java/com/goafanti/achievement/bo/AchievementUserOwnerDetailBo.java

@@ -1,9 +1,5 @@
 package com.goafanti.achievement.bo;
 
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
 import com.goafanti.common.utils.StringUtils;
 
 public class AchievementUserOwnerDetailBo extends AchievementOrgOwnerDetailBo {
@@ -123,19 +119,6 @@ public class AchievementUserOwnerDetailBo extends AchievementOrgOwnerDetailBo {
 		this.cityName = cityName;
 	}
 
-	public List<String> getTechnicalPictureUrls() {
-		List<String> list= new ArrayList<String>();
-		if (this.technicalPictureUrl == null) {
-			return  list;
-		} else {
-			String str=this.technicalPictureUrl;
-			String[] s=str.split(",");
-			 list = Arrays.asList(s);  
-			return list;
-			
-		}
-	}
-
 	public void setTechnicalPictureUrls(String[] technicalPictureUrls) {
 		this.technicalPictureUrls = technicalPictureUrls;
 	}

+ 1 - 4
src/main/java/com/goafanti/achievement/service/AchievementService.java

@@ -14,7 +14,6 @@ import com.goafanti.demand.bo.DemandAchievementListBo;
 import com.goafanti.portal.bo.AchievementDetailBo;
 import com.goafanti.portal.bo.AchievementObject;
 import com.goafanti.portal.bo.AchievementPortalDetailBo;
-import com.goafanti.portal.bo.AchievementPortalSimilarListBo;
 
 public interface AchievementService {
 
@@ -42,7 +41,7 @@ public interface AchievementService {
 
 	void insertImport(List<AchievementImportBo> data);
 
-	AchievementDetailBo selectAchievementSearchDetail(String uid, String id);
+	AchievementDetailBo selectAchievementDetail(String uid, String id);
 	
 	Achievement selectAchievementDetail(String id);
 
@@ -54,8 +53,6 @@ public interface AchievementService {
 
 	AchievementPortalDetailBo findOrgPortalAchievementDetail(String id);
 
-	List<AchievementPortalSimilarListBo> findByFieldA(Integer fieldA, String id, Integer type);
-
 	int updateByPrimaryKeySelective(Achievement a);
 
 	Pagination<AchievementPartnerListBo> listAppUserAchievement(Integer auditStatus, Integer serialNumber, String name, String keyword,Integer dataCategory,

+ 5 - 16
src/main/java/com/goafanti/achievement/service/impl/AchievementServiceImpl.java

@@ -67,7 +67,6 @@ import com.goafanti.demand.bo.DemandAchievementListBo;
 import com.goafanti.portal.bo.AchievementDetailBo;
 import com.goafanti.portal.bo.AchievementObject;
 import com.goafanti.portal.bo.AchievementPortalDetailBo;
-import com.goafanti.portal.bo.AchievementPortalSimilarListBo;
 
 @Service
 public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> implements AchievementService {
@@ -182,11 +181,11 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
 		}
 		disposeAchievementKeyword(keywords, a, true);
 		disposeAchievementPublish(a,webPages,appPages,true);
-		achievementMapper.updateByPrimaryKeySelective(a);
+		
 		if (null != switchSign && AchievementSwitchSign.CLOSE.getCode().equals(switchSign)) {
-			achievementMapper.updateOwnerId(a.getId());
+			a.setOwnerId("");
 		}
-
+		achievementMapper.updateByPrimaryKeySelective(a);
 		return 1;
 	}
 
@@ -532,8 +531,8 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
 	}
 
 	@Override
-	public AchievementDetailBo selectAchievementSearchDetail(String uid, String id) {
-		return achievementMapper.selectAchievementSearchDetail(uid, id);
+	public AchievementDetailBo selectAchievementDetail(String uid, String id) {
+		return achievementMapper.selectAchievementDetail(uid, id);
 	}
 
 	private void createTechBorkerNotice(Achievement a) {
@@ -659,16 +658,6 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
 	}
 
 	@Override
-	public List<AchievementPortalSimilarListBo> findByFieldA(Integer fieldA, String id, Integer type) {
-		if (UserType.PERSONAL.getCode().equals(type)) {
-			return achievementMapper.findUserPortalSimilarByFieldA(fieldA, id);
-		} else if (UserType.ORGANIZATION.getCode().equals(type)) {
-			return achievementMapper.findOrgPortalSimilarByFieldA(fieldA, id);
-		}
-		return null;
-	}
-
-	@Override
 	public int updateByPrimaryKeySelective(Achievement a) {
 		return achievementMapper.updateByPrimaryKey(a);
 	}

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

@@ -5,9 +5,7 @@ import java.util.List;
 import org.apache.ibatis.annotations.Param;
 
 import com.goafanti.achievement.bo.AchievementInterestBo;
-import com.goafanti.achievement.bo.AchievementListBo;
 import com.goafanti.achievement.bo.AchievementOrgOwnerDetailBo;
-import com.goafanti.achievement.bo.AchievementPartnerListBo;
 import com.goafanti.achievement.bo.AchievementRecommended;
 import com.goafanti.achievement.bo.AchievementUserOwnerDetailBo;
 import com.goafanti.app.bo.HomeAchievemend;
@@ -16,8 +14,6 @@ import com.goafanti.common.model.Achievement;
 import com.goafanti.portal.bo.AchievementDetailBo;
 import com.goafanti.portal.bo.AchievementObject;
 import com.goafanti.portal.bo.AchievementPortalDetailBo;
-import com.goafanti.portal.bo.AchievementPortalSimilarListBo;
-import com.goafanti.portal.bo.InternationalListBo;
 
 public interface AchievementMapper {
 	int deleteByPrimaryKey(String id);
@@ -32,8 +28,6 @@ public interface AchievementMapper {
 
 	int updateByPrimaryKey(Achievement record);
 
-	int updateReleaseDate(String id);
-
 	int batchDeleteByPrimaryKey(List<String> id);
 
 	AchievementUserOwnerDetailBo selectUserOwnerDetail(String id);
@@ -42,36 +36,14 @@ public interface AchievementMapper {
 
 	void insertBatch(List<Achievement> achievementList);
 
-	AchievementDetailBo selectAchievementSearchDetail(String uid, String id);
+	AchievementDetailBo selectAchievementDetail(String uid, String id);
 	
 	AchievementDetailBo selectAchievementDetail(String id);
 
-	Integer findAchievementNumByUid(String uid);
-
 	AchievementPortalDetailBo findUserPortalAchievementDetail(@Param("id")String id, @Param("uid")String uid);
 
 	AchievementPortalDetailBo findOrgPortalAchievementDetail(@Param("id")String id, @Param("uid")String uid);
 
-	List<AchievementPortalSimilarListBo> findUserPortalSimilarByFieldA(@Param("fieldA") Integer fieldA,
-			@Param("id") String id);
-
-	List<AchievementPortalSimilarListBo> findOrgPortalSimilarByFieldA(@Param("fieldA") Integer fieldA,
-			@Param("id") String id);
-
-	int updateOwnerId(String id);
-	
-	/** 查询国际化技术 **/
-	List<InternationalListBo> selectInternationalAchievement();
-
-	/** 查询精品项目 **/
-	List<AchievementListBo> listAchievement();
-	
-	/** 查询猜你喜欢 **/
-	List<AchievementListBo> selectCsutomerLike();
-	
-    /**	查询智者的科技成果**/
-	List<AchievementPartnerListBo>findPartnerAchievementListByPage(String uid);
-	
 	Integer countInterest(String achievementId);
 
 	List<AchievementInterestBo> achievementInterest(String uid);

+ 4 - 280
src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

@@ -609,11 +609,6 @@
       boutique = #{boutique,jdbcType=INTEGER}
     where id = #{id,jdbcType=VARCHAR}
   </update>
-
-  <update id="updateReleaseDate" parameterType="java.lang.String">
-  	update achievement set release_date = null
-  	where id = #{id,jdbcType=VARCHAR}
-  </update>
   
   <update id="batchDeleteByPrimaryKey" parameterType="java.util.List">
   	update achievement set deleted_sign = 1
@@ -828,107 +823,8 @@
       )
     </foreach>
   </insert>
-  
-  <select id="findSearchAchievementListByPage" parameterType="String" resultType="com.goafanti.portal.bo.AchievementSearchListBo">
-  	select 
-  		a.id, a.name, a.keyword,a.introduction,a.category,
-  		a.serial_number as serialNumber, 
-  		a.data_category as dataCategory, 
-  	    a.owner_type as ownerType, 
-  		a.owner_name as ownerName,
-  		a.field_a as fieldA, 
-  		a.field_b as fieldB,
-  		a.transfer_price as transferPrice,
-  		a.maturity,
-  		a.introduction,a.boutique,
-  		a.transfer_mode as transferMode,
-  		a.technical_picture_url as technicalPictureUrl,
-  		b.name as fieldAs,
-  		ap.publish_page,ap.publish_platform,ap.publish_client,ap.if_top,ap.top_number,ap.show_number,bi.domain_name
-  	from achievement a 
-  	right join achievement_publish ap on a.id=ap.achievement_id
-  	left join branch_information bi on bi.id=ap.publish_platform
-  	left join field_glossory b on a.field_a = b.id
-  	where a.deleted_sign = 0 
-  	and ap.publish_client=0
-	and ap.publish_page='W02'
-	and bi.domain_name like "%"#{url,jdbcType=VARCHAR}"%"
-  	<if test="dataCategory != null and dataCategory != ''">
-  		and a.data_category = #{dataCategory,jdbcType=INTEGER}
-  	</if>
-  	<if test="category != null and category != ''">
-  		and a.category = #{category,jdbcType=INTEGER}
-  	</if>
-  	<if test="fieldA != null and fieldA != ''">
-  		and a.field_a = #{fieldA,jdbcType=INTEGER}
-  	</if>
-  	<if test="keyword != null and keyword != ''">
-  		and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
-  	</if>
-  	<if test="transferMode != null">
-  		and a.transfer_mode = #{transferMode,jdbcType=INTEGER}
-  	</if>
-  	<if test="upperPrice != null and upperPrice != ''">
-  		and a.transfer_price &lt; #{upperPrice,jdbcType=VARCHAR}
-  	</if>
-  	<if test="lowerPrice != null and lowerPrice != ''">
-  		and a.transfer_price &gt; #{lowerPrice,jdbcType=VARCHAR}
-  	</if> 	
-  	<if test="internationalFlag != null ">
-  		and a.international_flag = #{internationalFlag,jdbcType=INTEGER}
-  	</if>
-  	and a.audit_status = 3 
-  	<if test="dateSort == 0">
-  		order by ap.if_top,ap.top_number,ap.show_number,a.release_date  asc
-  	</if>
-  	<if test="dateSort == 1">
-  		order by ap.if_top asc,ap.top_number asc,ap.show_number asc,a.release_date desc
-  	</if>	
-  	<if test="page_sql != null">
-		${page_sql}
-	</if>
-  </select>
-  
-  <select id="findSearchAchievementCount" parameterType="String" resultType="java.lang.Integer">
-  	select 
-  		count(1)
-  from achievement a 
-  	right join achievement_publish ap on a.id=ap.achievement_id
-  	left join branch_information bi on bi.id=ap.publish_platform
-  	left join field_glossory b on a.field_a = b.id
-  	where a.deleted_sign = 0 
-  	and ap.publish_client=0
-	and ap.publish_page='W02'
-	and bi.domain_name like  "%"#{url,jdbcType=VARCHAR}"%"
-  	<if test="dataCategory != null and dataCategory != ''">
-  		and a.data_category = #{dataCategory,jdbcType=INTEGER}
-  	</if>
-  	<if test="category != null and category != ''">
-  		and a.category = #{category,jdbcType=INTEGER}
-  	</if>
-  	<if test="fieldA != null and fieldA != ''">
-  		and a.field_a = #{fieldA,jdbcType=INTEGER}
-  	</if>
-  	<if test="keyword != null and keyword != ''">
-  		and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
-  	</if>
-  	<if test="transferMode != null">
-  		and a.transfer_mode = #{transferMode,jdbcType=INTEGER}
-  	</if>
-  	<if test="upperPrice != null and upperPrice != ''">
-  		and a.transfer_price &lt; #{upperPrice,jdbcType=VARCHAR}
-  	</if>
-  	<if test="lowerPrice != null and lowerPrice != ''">
-  		and a.transfer_price &gt; #{lowerPrice,jdbcType=VARCHAR}
-  	</if> 
-  	<if test="internationalFlag != null ">
-  		and a.international_flag = #{internationalFlag,jdbcType=INTEGER}
-  	</if>	
-  	and a.audit_status = 3 
-  		
-  </select>
-  
-  <select id="selectAchievementSearchDetail"  resultType="com.goafanti.portal.bo.AchievementDetailBo">
+
+  <select id="selectAchievementDetail"  resultType="com.goafanti.portal.bo.AchievementDetailBo">
   	select 
   		a.id, 
   		a.owner_name as ownerName,
@@ -975,17 +871,6 @@
   	where a.id = #{1}
   </select>
   
-  <select id="findAchievementNumByUid" parameterType="java.lang.String" resultType="java.lang.Integer">
-  	select
-  		count(1)
-  	from achievement
-  	where 
-  		deleted_sign = 0
-  	and release_status = 1
-  	and audit_status = 3
-  	and owner_id = #{uid,jdbcType=VARCHAR}
-  </select>
-  
   <select id="findPartnerAchievementListByPage" parameterType="java.lang.String" resultType="com.goafanti.achievement.bo.AchievementPartnerListBo">
   	SELECT
 		id,
@@ -1094,143 +979,7 @@
 	WHERE
 		a.id = #{id,jdbcType=VARCHAR}
   </select>
-  
-  <select id="findUserPortalSimilarByFieldA" resultType="com.goafanti.portal.bo.AchievementPortalSimilarListBo">
-  	SELECT
-		a.id,
-		a.name,
-		a.maturity,
-		dg.name as uprovince,
-		dgg.name as ucity,
-		dggg.name as oprovince,
-		dgggg.name as ocity,
-		a.transfer_price as transferPrice,
-		a.bargaining_mode as bargainingMode
-	FROM
-		achievement a
-	LEFT JOIN user_identity ui ON ui.uid = a.owner_id
-	LEFT JOIN organization_identity oi on oi.uid = a.owner_id
-	LEFT JOIN district_glossory dg on dg.id = ui.province
-	LEFT JOIN district_glossory dgg on dgg.id = ui.city
-	LEFT JOIN district_glossory dggg on dggg.id = oi.licence_province
-	LEFT JOIN district_glossory dgggg on dgggg.id = oi.licence_city
-	WHERE
-		a.audit_status = 3
-	AND a.deleted_sign = 0
-	AND a.release_status = 1
-	AND a.field_a = #{fieldA,jdbcType=INTEGER}
-	AND a.id <![CDATA[ <> ]]> #{id,jdbcType=VARCHAR}
-	order by a.serial_number desc
-	limit 5 
-  </select>
-  
-  <select id="findOrgPortalSimilarByFieldA" resultType="com.goafanti.portal.bo.AchievementPortalSimilarListBo">
-  	SELECT
-		a.id,
-		a.name,
-		a.maturity,
-		dg.name as oprovince,
-		dgg.name as ocity,
-		dggg.name as uprovince,
-		dgggg.name as ucity,
-		a.transfer_price as transferPrice,
-		a.bargaining_mode as bargainingMode
-	FROM
-		achievement a
-	LEFT JOIN organization_identity oi ON oi.uid = a.owner_id
-	LEFT JOIN user_identity ui ON ui.uid = a.owner_id
-	LEFT JOIN district_glossory dg on dg.id = oi.licence_province
-	LEFT JOIN district_glossory dgg on dgg.id = oi.licence_city 
-	LEFT JOIN district_glossory dggg on dggg.id = ui.province
-	LEFT JOIN district_glossory dgggg on dgggg.id = ui.city
-	WHERE
-		a.audit_status = 3
-	AND a.deleted_sign = 0
-	AND a.release_status = 1
-	AND a.field_a = #{fieldA,jdbcType=INTEGER}
-	AND a.id <![CDATA[ <> ]]> #{id,jdbcType=VARCHAR}
-	order by a.serial_number desc
-	limit 5 
-  </select>
-  
-  <update id="updateOwnerId" parameterType="java.lang.String" >
-  	update achievement
-  		set owner_id = null 
-  	where id = #{id,jdbcType=VARCHAR}
-  </update>
-  
-  <select id="selectInternationalAchievement" resultType="com.goafanti.portal.bo.InternationalListBo">
-  	select 
-  		a.id as id,
-  		a.name as techName,
-  		a.introduction,
-  		a.owner_name as ownerName,
-  		a.owner_type as ownerType,
-  		a.technical_picture_url as technicalPictureUrl,
-  		a.country_name_zh as countryNameZh
-  	from 
-  		achievement a 
-	where 
-		a.deleted_sign = 0 and a.data_category = 1 
-	<!-- and a.release_status = 1 and nternational_flag = 1 -->
-	order by 
-		a.release_date desc
-	limit 0,5
-  </select>
-  <select id="findBoutiqueListByPage" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.BoutiqueListBo">
-  	select 
-		a.id ,
-		a.name,
-		a.transfer_price as price,
-		a.summary as sketch,
-		a.technical_picture_url as pictureUrl,
-		a.owner_type as ownerType,
-		b.name as industryCatalog,
-		a.owner_name as personName
-	from 
-		achievement a 
-	left join 
-		field_glossory b 
-	on 
-		a.field_a = b.id 	
-	where 
-		a.boutique = 1  and a.audit_status = 3 and a.deleted_sign=0
-	<if test="fieldA != null and fieldA != ''">
-		and a.field_a = #{fieldA,jdbcType=INTEGER}
-	</if>
-	<if test="dataCategory != null and dataCategory != ''">
-		and data_category = #{dataCategory,jdbcType=INTEGER}
-	</if>
-	<if test="category != null and category != ''">
-		and category = #{category,jdbcType=INTEGER}
-	</if>
-	order by a.create_time desc
-	<if test="page_sql!=null">
-		${page_sql}
-	</if>
-  </select>
-  <select id="findBoutiqueCount" parameterType="java.lang.String" resultType="java.lang.Integer">
-  	select 
-  		count(0)
-  	from 
-		achievement a 
-	left join 
-		field_glossory b 
-	on 
-		a.field_a = b.id 
-	where 
-		a.boutique = 1  and a.audit_status = 3 and a.deleted_sign=0
-	<if test="fieldA != null and fieldA != ''">
-		and a.field_a = #{fieldA,jdbcType=INTEGER}
-	</if>
-	<if test="dataCategory != null and dataCategory != ''">
-		and data_category = #{dataCategory,jdbcType=INTEGER}
-	</if>
-	<if test="category != null and category != ''">
-		and category = #{category,jdbcType=INTEGER}
-	</if>	
-  </select>
-  
+ 
   <select id="listAchievement" resultType="com.goafanti.achievement.bo.AchievementListBo">
   		select 
   		a.id, a.name, a.keyword,a.introduction,a.category,
@@ -1251,32 +1000,7 @@
   	    and a.audit_status = 3 
   	    order by a.release_date desc limit 0,12
   </select>
-  
-    <!--  查询猜你喜欢 -->
-    <select id="selectCsutomerLike" resultType="com.goafanti.achievement.bo.AchievementListBo">
-  		select 
-  		a.id, a.name, a.keyword,a.introduction,a.category,
-  		a.serial_number as serialNumber, 
-  		a.data_category as dataCategory, 
-  	    a.owner_type as ownerType, 
-  		a.owner_name as ownerName,
-  		a.field_a as fieldA, 
-  		a.field_b as fieldB,
-  		a.transfer_price as transferPrice,
-  		a.technical_picture_url as technicalpictureurl
-  		from achievement a 
-  		LEFT JOIN aft.achievement_interest b on a.id = b.achievement_id
-  		where 
-  	    a.deleted_sign = 0 
-		and category = 0
-  	    and a.release_status = 1
-  	    and a.audit_status = 3
-  	    <if test="boutique != null">
-      	  and a.boutique= #{boutique,jdbcType=INTEGER}
-        </if>
-  	    order by a.release_date desc limit 0,4
-  </select>
-  
+ 
   <select id="countInterest" resultType="Integer">
   	select count(0)
   	from achievement_interest 

Разница между файлами не показана из-за своего большого размера
+ 816 - 255
src/main/java/com/goafanti/common/model/Achievement.java


+ 42 - 60
src/main/java/com/goafanti/common/model/AchievementWithBLOBs.java

@@ -1,69 +1,51 @@
 package com.goafanti.common.model;
 
 public class AchievementWithBLOBs extends Achievement {
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column achievement.introduction
-     *
-     * @mbg.generated Tue Mar 20 11:56:41 CST 2018
-     */
-    private String introduction;
 
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column achievement.maturity_picture_url
-     *
-     * @mbg.generated Tue Mar 20 11:56:41 CST 2018
-     */
-    private String maturityPictureUrl;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column achievement.introduction
+	 * @mbg.generated  Fri Jun 15 08:46:05 CST 2018
+	 */
+	private String introduction;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column achievement.maturity_picture_url
+	 * @mbg.generated  Fri Jun 15 08:46:05 CST 2018
+	 */
+	private String maturityPictureUrl;
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column achievement.introduction
-     *
-     * @return the value of achievement.introduction
-     *
-     * @mbg.generated Tue Mar 20 11:56:41 CST 2018
-     */
-    public String getIntroduction() {
-        return introduction;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column achievement.introduction
+	 * @return  the value of achievement.introduction
+	 * @mbg.generated  Fri Jun 15 08:46:05 CST 2018
+	 */
+	public String getIntroduction() {
+		return introduction;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column achievement.introduction
-     *
-     * @param introduction the value for achievement.introduction
-     *
-     * @mbg.generated Tue Mar 20 11:56:41 CST 2018
-     */
-    public void setIntroduction(String introduction) {
-        this.introduction = introduction;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column achievement.introduction
+	 * @param introduction  the value for achievement.introduction
+	 * @mbg.generated  Fri Jun 15 08:46:05 CST 2018
+	 */
+	public void setIntroduction(String introduction) {
+		this.introduction = introduction;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column achievement.maturity_picture_url
-     *
-     * @return the value of achievement.maturity_picture_url
-     *
-     * @mbg.generated Tue Mar 20 11:56:41 CST 2018
-     */
-    public String getMaturityPictureUrl() {
-        return maturityPictureUrl;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column achievement.maturity_picture_url
+	 * @return  the value of achievement.maturity_picture_url
+	 * @mbg.generated  Fri Jun 15 08:46:05 CST 2018
+	 */
+	public String getMaturityPictureUrl() {
+		return maturityPictureUrl;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column achievement.maturity_picture_url
-     *
-     * @param maturityPictureUrl the value for achievement.maturity_picture_url
-     *
-     * @mbg.generated Tue Mar 20 11:56:41 CST 2018
-     */
-    public void setMaturityPictureUrl(String maturityPictureUrl) {
-        this.maturityPictureUrl = maturityPictureUrl;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column achievement.maturity_picture_url
+	 * @param maturityPictureUrl  the value for achievement.maturity_picture_url
+	 * @mbg.generated  Fri Jun 15 08:46:05 CST 2018
+	 */
+	public void setMaturityPictureUrl(String maturityPictureUrl) {
+		this.maturityPictureUrl = maturityPictureUrl;
+	}
 }

+ 1 - 1
src/main/java/com/goafanti/portal/controller/PortalInterestApiController.java

@@ -171,7 +171,7 @@ public class PortalInterestApiController extends CertifyApiController{
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到成果ID", "成果ID"));
 			return res;
 		}
-		res.setData(achievementService.selectAchievementSearchDetail(TokenManager.getUserId(), id));
+		res.setData(achievementService.selectAchievementDetail(TokenManager.getUserId(), id));
 		return res;
 	}