Browse Source

20220327_2后端日志更新代码_协议文件上传增加短信提醒

mashengyi 3 years ago
parent
commit
4715eb4db0

+ 10 - 0
src/main/java/com/jkcredit/invoice/credit/interserver/CustomerInterLowerServiceImpl.java

@@ -238,6 +238,16 @@ public class CustomerInterLowerServiceImpl implements CustomerInterLowerService
         return result;
     }
 
+
+    /**
+    * @Description  协议上传接口
+    * @Author  mashengyi
+    * @Date   2022/3/27 22:51
+    * @Param
+    * @Return
+    * @Exception
+    *
+    */
     @Override
     public DataResult customeProtocolUpLoad(String appKey, String api, String data, String requestid) {
         long costtimestart = System.currentTimeMillis();

+ 1 - 0
src/main/java/com/jkcredit/invoice/mapper/customer/CustomerRecMapper.java

@@ -35,6 +35,7 @@ public interface CustomerRecMapper extends BaseMapper<CustomerRec> {
     CustomerRec selectByCustomerNameAndCompanyNum(CustomerRec record);
     List<CustomerRec> selectByCompanyNum(CustomerRec record);
     int updateByPrimaryKeySelective(CustomerRec record);
+    int updateByPrimaryKeySelectiveUpload(CustomerRec record);
 
     int updateByPrimaryKey(CustomerRec record);
     IPage<List<CustomerRec>> selectAllByPage(Page page, @Param("customerRec") CustomerRec customerRec);

File diff suppressed because it is too large
+ 15 - 1
src/main/java/com/jkcredit/invoice/service/lowerservice/impl/CustomerLowerServiceImpl.java


+ 88 - 0
src/main/resources/mapper/customer/CustomerRecMapper.xml

@@ -386,6 +386,94 @@
     </set>
     where  company_name = BINARY #{companyName,jdbcType=VARCHAR} and  bussiness_type = #{bussinessType,jdbcType=INTEGER} and company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR}
   </update>
+
+
+
+
+  <update id="updateByPrimaryKeySelectiveUpload" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
+    update t_customer_rec
+    <set >
+      <if test="companyLeader != null" >
+        company_leader = #{companyLeader,jdbcType=VARCHAR},
+      </if>
+      <if test="companyLeaderPhone != null" >
+        company_leader_Phone = #{companyLeaderPhone,jdbcType=VARCHAR},
+      </if>
+      <if test="companyName != null" >
+        company_name = #{companyName,jdbcType=VARCHAR},
+      </if>
+      <if test="companyReferencenum != null" >
+        company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR},
+      </if>
+      <if test="companyOpenbank != null" >
+        company_openbank = #{companyOpenbank,jdbcType=VARCHAR},
+      </if>
+      <if test="companyOpenbankAcc != null" >
+        company_openbank_acc = #{companyOpenbankAcc,jdbcType=VARCHAR},
+      </if>
+      <if test="companyAdress != null" >
+        company_adress = #{companyAdress,jdbcType=VARCHAR},
+      </if>
+      <if test="companyPhone != null" >
+        company_phone = #{companyPhone,jdbcType=VARCHAR},
+      </if>
+      <if test="createtime != null" >
+        createTime = #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="companyBelongName != null" >
+        company_belong_name = #{companyBelongName,jdbcType=VARCHAR},
+      </if>
+      <if test="recStatus != null" >
+        rec_status = #{recStatus,jdbcType=INTEGER},
+      </if>
+      <if test="interType != null" >
+        inter_type = #{interType,jdbcType=INTEGER},
+      </if>
+      <if test="bussinessType != null" >
+        bussiness_type = #{bussinessType,jdbcType=INTEGER},
+      </if>
+      <if test="companyType != null" >
+        company_type = #{companyType,jdbcType=INTEGER},
+      </if>
+      <if test="operatingRangeType != null" >
+        operating_rangeType = #{operatingRangeType,jdbcType=INTEGER},
+      </if>
+      <if test="companyNum != null" >
+        company_num = #{companyNum,jdbcType=VARCHAR},
+      </if>
+      <if test="serviceStartTime != null" >
+        service_startTime = #{serviceStartTime,jdbcType=VARCHAR},
+      </if>
+      <if test="serviceEndTime != null" >
+        service_endTime = #{serviceEndTime,jdbcType=VARCHAR},
+      </if>
+      <if test="serviceType != null" >
+        service_type = #{serviceType,jdbcType=INTEGER},
+      </if>
+      <if test="contractFileName != null" >
+        contractFileName = #{contractFileName,jdbcType=VARCHAR},
+      </if>
+      <if test="base64Str != null" >
+        base64Str = #{base64Str,jdbcType=VARCHAR},
+      </if>
+      <if test="contractSuc != null" >
+        contractSuc = #{contractSuc,jdbcType=INTEGER},
+      </if>
+      <if test="contrantNum != null" >
+        contrantNum = #{contrantNum,jdbcType=VARCHAR},
+      </if>
+      <if test="lowerFileName != null" >
+        lowerFileName = #{lowerFileName,jdbcType=VARCHAR},
+      </if>
+      <if test="lowerBase64Str != null" >
+        lowerBase64Str = #{lowerBase64Str,jdbcType=VARCHAR},
+      </if>
+      <if test="fileMessage != null" >
+        fileMessage = #{fileMessage,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where  id = BINARY #{id,jdbcType=BIGINT}
+  </update>
   <update id="updateByPrimaryKey" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
   update t_customer_rec
   set company_leader = #{companyLeader,jdbcType=VARCHAR},