Bläddra i källkod

20220415_协议上传接口优化2

mashengyi 3 år sedan
förälder
incheckning
364816e197
1 ändrade filer med 33 tillägg och 2 borttagningar
  1. 33 2
      src/main/resources/mapper/customer/CustomerRecMapper.xml

+ 33 - 2
src/main/resources/mapper/customer/CustomerRecMapper.xml

@@ -30,6 +30,37 @@
     <result column="lowerFileName" property="lowerFileName" jdbcType="VARCHAR" />
     <result column="lowerBase64Str" property="lowerBase64Str" jdbcType="VARCHAR" />
   </resultMap>
+
+
+
+  <resultMap id="BaseResultMapNoBase64Str" type="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
+    <id column="id" property="id" jdbcType="INTEGER" />
+    <result column="customerName" property="customerName" jdbcType="VARCHAR" />
+    <result column="company_leader" property="companyLeader" jdbcType="VARCHAR" />
+    <result column="company_leader_Phone" property="companyLeaderPhone" jdbcType="VARCHAR" />
+    <result column="company_name" property="companyName" jdbcType="VARCHAR" />
+    <result column="company_referenceNum" property="companyReferencenum" jdbcType="VARCHAR" />
+    <result column="company_openbank" property="companyOpenbank" jdbcType="VARCHAR" />
+    <result column="company_openbank_acc" property="companyOpenbankAcc" jdbcType="VARCHAR" />
+    <result column="company_adress" property="companyAdress" jdbcType="VARCHAR" />
+    <result column="company_phone" property="companyPhone" jdbcType="VARCHAR" />
+    <result column="createTime" property="createtime" jdbcType="VARCHAR" />
+    <result column="company_belong_name" property="companyBelongName" jdbcType="VARCHAR" />
+    <result column="rec_status" property="recStatus" jdbcType="INTEGER" />
+    <result column="inter_type" property="interType" jdbcType="INTEGER" />
+    <result column="bussiness_type" property="bussinessType" jdbcType="INTEGER" />
+    <result column="company_type" property="companyType" jdbcType="INTEGER" />
+    <result column="operating_rangeType" property="operatingRangeType" jdbcType="INTEGER" />
+    <result column="company_num" property="companyNum" jdbcType="VARCHAR" />
+    <result column="service_startTime" property="serviceStartTime" jdbcType="VARCHAR" />
+    <result column="service_endTime" property="serviceEndTime" jdbcType="VARCHAR" />
+    <result column="service_type" property="serviceType" jdbcType="INTEGER" />
+    <result column="contractFileName" property="contractFileName" jdbcType="VARCHAR" />
+    <result column="contractSuc" property="contractSuc" jdbcType="INTEGER" />
+    <result column="base64Str" property="base64Str" jdbcType="VARCHAR" />
+    <result column="contrantNum" property="contrantNum" jdbcType="VARCHAR" />
+    <result column="lowerFileName" property="lowerFileName" jdbcType="VARCHAR" />
+  </resultMap>
   <sql id="Base_Column_List" >
     id, customerName,company_leader, company_leader_Phone, company_name, company_referenceNum, company_openbank,
     company_openbank_acc, company_adress, company_phone, createTime, company_belong_name, 
@@ -121,9 +152,9 @@
     from t_customer_rec
     where company_num = #{id,jdbcType=INTEGER}
   </select>
-  <select id="selectByPrimaryKeyHasBase64" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+  <select id="selectByPrimaryKeyHasBase64" resultMap="BaseResultMapNoBase64Str" parameterType="java.lang.Integer" >
     select
-    <include refid="Base_Column_List" />,base64Str,lowerBase64Str
+    <include refid="Base_Column_List" />,base64Str
     from t_customer_rec
     where id = #{id,jdbcType=INTEGER}
   </select>