zoukankan      html  css  js  c++  java
  • MyBatis一个Mapper方法里写多个SQL

    MyBatis一个Mapper方法里写多个SQL,需要配置:

    <update id="rejectOrderLoan" parameterType="com.ly.fn.biz.loan.service.model.OrderLoan" >

    update OrderLoan

    <set>

    financeEndDate = NULL,

        loanDate = NULL,

    auditStatus = 0,

    loanStatus = NULL,

    loanProportion = NULL,

    canFinanceAmount = NULL, 

    advancePayment = NULL,

    proFormaInterest = NULL,

    maxLoanAmount = NULL,

    realLoan = NULL,

    rejected = 1

    </set>

    where id = #{id};

    delete from OrderLoanAudit where loanId =  #{id};

    </update>

     

    JDBC配置:

    url=jdbc:mysql://10.100.157.28:3306/tcbiz_loan?useUnicode=yes&characterEncoding=UTF-8&autoReconnect=true&useServerPrepStmts=true&useCursorFetch=true&allowMultiQueries=true
    username=root
    password=1234
    maxActive=10
    maxIdle=10
    minIdle=1
    initialSize=1

    上面红色的必须配置

  • 相关阅读:
    Python操作 RabbitMQ、Redis、Memcache、SQLAlchemy
    Django的ORM操作
    RabbitMQ
    CentOS忘记用户名或者密码解决办法
    VUE-es6
    vue基础之命令
    爬虫框架:scrapy
    爬虫高性能相关
    MongoDB
    Beautifulsoup模块
  • 原文地址:https://www.cnblogs.com/-wyl/p/6773126.html
Copyright © 2011-2022 走看看