Преглед на файлове

成果需求 小图展示

limin преди 7 години
родител
ревизия
b3e6f2f171
променени са 2 файла, в които са добавени 12 реда и са изтрити 8 реда
  1. 5 3
      src/main/java/com/goafanti/common/mapper/AchievementMapper.xml
  2. 7 5
      src/main/java/com/goafanti/common/mapper/DemandMapper.xml

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

@@ -59,6 +59,7 @@
     <result column="boutique" jdbcType="INTEGER" property="boutique" />
     <result column="contacts" jdbcType="VARCHAR" property="contacts" />
     <result column="contact_mobile" jdbcType="VARCHAR" property="contactMobile" />
+    <result column="picture_url_min" property="pictureUrlMin" jdbcType="VARCHAR" />
   </resultMap>
   <sql id="Base_Column_List">
     id, serial_number, data_category, name, keyword, category, summary, introduction, 
@@ -69,7 +70,7 @@
     team_des, parameter, tech_plan_url, business_plan_url, org_id, org_name, org_address, 
     org_email, org_contacts, org_contacts_mobile, contacts, manager_id, salesman_id, 
     status, create_time, release_status, release_date, deleted_sign, audit_status, tech_broker_id,
-    country_name_zh,international_flag,jmrh_flag,boutique
+    country_name_zh,international_flag,jmrh_flag,boutique,picture_url_min
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
     select 
@@ -1358,7 +1359,7 @@ order by release_date limit #{0}
        and	a.release_date <![CDATA[ >= ]]> #{startDate,jdbcType=TIMESTAMP}
 	</if>
 	<if test="endDate != null">
-	   and  a.release_date <![CDATA[ =< ]]> #{endDate,jdbcType=TIMESTAMP}
+	   and  a.release_date <![CDATA[ <= ]]> #{endDate,jdbcType=TIMESTAMP}
 	</if>
 </select>
 <select id="getAchievementDetailById" resultType="com.goafanti.portal.bo.AchievementResultObject" >
@@ -1386,7 +1387,8 @@ a.id,
 	a.boutique,
 	a.is_hot as isHot,
 	a.audit_status as auditStatus,
-	a.audit_info as auditInfo
+	a.audit_info as auditInfo,
+	a.picture_url_min as pictureUrlMin
 from
 	achievement a
 left join industry_category fg on

+ 7 - 5
src/main/java/com/goafanti/common/mapper/DemandMapper.xml

@@ -43,6 +43,7 @@
     <result column="uid" property="uid" jdbcType="VARCHAR" />
     <result column="urgent_days" property="urgentDays" jdbcType="INTEGER" />
     <result column="urgent_money" property="urgentMoney" jdbcType="DECIMAL" />
+    <result column="picture_url_min" property="pictureUrlMin" jdbcType="VARCHAR" />
   </resultMap>
   <sql id="Base_Column_List" >
     id, serial_number, data_category, name, keyword, info_sources, industry_category_a, 
@@ -51,7 +52,7 @@
     fixed_scheme, cost_escrow, budget_cost, validity_period, employer_id, employer_name, 
     employer_address, employer_contacts, employer_contacts_mobile, employer_contacts_mailbox, 
     contacts, status, release_status, release_date, create_time, principal_id, deleted_sign,
-    audit_status, tech_broker_id,boutique,urgent_money,urgent_days
+    audit_status, tech_broker_id,boutique,urgent_money,urgent_days,picture_url_min
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
     select 
@@ -498,13 +499,13 @@
       crowd_cost=#{crowdCost,jdbcType=DECIMAL},
       </if>
       <if test="isHot!=null">
-      is_hot=#{isHot,jdbcType=INTEGER}
+      is_hot=#{isHot,jdbcType=INTEGER},
       </if>
       <if test="auditInfo!=null">
-      audit_info=#{auditInfo,jdbcType=VARCHAR}
+      audit_info=#{auditInfo,jdbcType=VARCHAR},
       </if>
       <if test="pictureUrlMin !=null">
-      picture_url_min=#{pictureUrlMin,jdbcType=VARCHAR}
+      picture_url_min=#{pictureUrlMin,jdbcType=VARCHAR},
       </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
@@ -881,7 +882,8 @@
 		keyword,
 		picture_url as pictureUrl,
 		audit_status as auditStatus,
-		audit_info as auditInfo
+		audit_info as auditInfo,
+		picture_url_min as pictureUrlMin
 	from
 		demand
 	where id = #{id,jdbcType=VARCHAR}