Quellcode durchsuchen

删除多余代码

liliang4869 vor 7 Jahren
Ursprung
Commit
e4e34c2385

+ 3 - 7
src/main/java/com/goafanti/achievement/controller/UserAchievementApiController.java

@@ -325,20 +325,16 @@ public class UserAchievementApiController extends CertifyApiController {
 		}
 
 		if (StringUtils.isBlank(ia.getKeyword())) {
-			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词1"));
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词"));
 			return res;
 		}
 
 		if (null == keywords || keywords.length < 1) {
-			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词2"));
-			return res;
-		}
-
-		if (null == ia.getCooperationMode()) {
-			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到合作方式", "合作方式"));
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词"));
 			return res;
 		}
 
+	
 		for (int i = 0; i < keywords.length; i++) {
 			if (AFTConstants.KEYWORDLENTH < keywords[i].length()) {
 				res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "关键词长度"));

+ 32 - 0
src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

@@ -1312,4 +1312,36 @@ order by release_date limit #{0}
 	   and  a.release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
 	</if>
 </select>
+<select id="queryAchievementDetailByid" resultType="com.goafanti.portal.bo.AchievementObject" >
+select
+	a.name as name,
+	a.transfer_mode as transferMode,
+	a.technical_picture_url as technicalPictureUrl,
+	a.maturity,
+	a.category,
+	a.owner_postal_address as city,
+	fg.name as fieldAS,
+	fgg.name as fieldBS,
+	a.release_date as releaseDate,
+	a.introduction,
+	a.patent_case as patentCase,
+	a.parameter,
+	a.team_des as teamDes,
+	a.field_a as fieldA,
+	b.field_b as fieldB,
+	a.innovation,
+	a.transfer_mode as transferMode,
+	a.bargaining_mode as bargainingMode,
+	a.boutique,
+	a.is_hot as isHot,
+	a.audit_status as auditStatus
+from
+	achievement a
+left join field_glossory fg on
+	fg.id = a.field_a
+left join field_glossory fgg on
+	fgg.id = a.field_b
+where
+	a.id = #{0}
+</select>
 </mapper>

+ 1 - 7
src/main/java/com/goafanti/common/mapper/DemandFollowDetailMapper.xml

@@ -283,11 +283,5 @@
       create_time = #{createTime,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=VARCHAR}
   </update>
-  <select id="selectDemandFollowDetail" parameterType="String" resultType="com.goafanti.demand.bo.DemandFollowDetailListBo">
-    select 
-     id, demand_follow_id as demandFollowId, remarks, result,create_time as createTime
-    from demand_follow_detail
-    where demand_follow_id= #{id,jdbcType=VARCHAR}
-    order by create_time desc  
-  </select>
+
 </mapper>

+ 1 - 14
src/main/java/com/goafanti/common/mapper/DemandFollowMapper.xml

@@ -349,20 +349,7 @@
     where id = #{id,jdbcType=VARCHAR}
   </update>
   
-  <select id="findDemandFollowListByPage" parameterType="String" resultType="com.goafanti.demand.bo.DemandFollowListBo">
-      select df.id ,df.demand_id as demandId,df.organization,df.contacts,df.contact_mobile contactMobile,df.remark,
-  df.`result`,df.last_follow_time as lastFollowTime,d.name,d.employer_name as employerName,df.sources,
-  d.employer_contacts_mobile as employerContactsMobile,d.employer_contacts_mailbox as employerContactsMailbox,
-  d.create_time as createTime, a.name as adminName ,df.sources
-    from  demand_follow df
-    left join demand d on df.demand_id=d.id
-    left join admin a on d.tech_broker_id=a.id 
-    where df.demand_id=#{id,jdbcType=VARCHAR}
-    order by d.serial_number desc
-  	<if test="page_sql!=null">
-		${page_sql}
-	</if>
-  </select>
+
   
   <select id="findDemandFollowCount" parameterType="String" resultType="java.lang.Integer">
    select count(0)

+ 0 - 36
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -663,42 +663,6 @@
     </foreach>
   </insert>
   
-  <select id="selectDemandDetail" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.DemandSearchDetailBo"> 
-  	select 
-  		d.id, 
-  		d.employer_name as employerName,
-  		d.serial_number as serialNumber, 
-  		d.keyword, 
-  		d.data_category as dataCategory, 
-  		d.name, 
-  		d.industry_category_a as industryCategoryA,
-  		d.industry_category_b as industryCategoryB, 
-  		d.demand_type as demandType, 
-  		d.budget_cost as budgetCost,
-  		d.problem_des as problemDes, 
-  		d.release_date as releaseDate, 
-  		d.technical_requirements as technicalRequirements,
-  		d.picture_url as pictureUrl, 
-  		d.text_file_url as textFileUrl, 
-  		d.video_url as videoUrl,
-  		d.fixed_cycle as fixedCycle, 
-  		d.people_number as peopleNumber, 
-  		d.fixed_scheme as fixedScheme,
-  		d.cost_escrow as costEscrow, 
-  		d.validity_period as validityPeriod, 
-  		ui.username,
-  		oi.unit_name as unitName, 
-  		di.id as demandInterestId, 
-  		do.id as demandOrderId, 
-  		do.status as orderStatus
-  	from demand d
-  	left join user_identity ui on ui.uid = d.employer_id
-  	left join organization_identity oi on oi.uid = d.employer_id
-  	left join demand_interest di on di.demand_id = d.id and di.uid = #{0}
-  	left join demand_order do on do.demand_id = d.id and do.uid = #{0} and do.status <![CDATA[ <> ]]> 6
-  	where d.id = #{1}
-  </select>
-  
   <select id="findUserPortalDemandDetail" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.DemandPortalDetailBo">
   	SELECT
 		d.id,