zoukankan      html  css  js  c++  java
  • Mybatis传入对象

    @Column(name="stock_financing_id", length=255)
    private String stockFinancingId;
    
    List<Orders> queryByCondition(@Param("condition") Orders condition);
    <result column="stock_financing_id" jdbcType="VARCHAR" property="stockFinancingId" />
    <select id="queryByCondition" resultMap="BaseResultMap" parameterType="com.shawnway.trade.mybatis.pojo.InvestmentSummary" >
      select
      <include refid="Base_Column_List" />
      from investment_summary
      where 1 = 1
      <if test="condition.tradingAccountId != null">
        and trading_account_id = #{condition.tradingAccountId,jdbcType=INTEGER}
      </if>
      <if test="condition.customerId != null">
        and customer_id = #{condition.customerId,jdbcType=INTEGER}
      </if>
      <if test="condition.securityId != null">
        and security_id = #{condition.securityId,jdbcType=INTEGER}
      </if>
      <if test="condition.stockFinancingId != null">
        and stock_financing_id = #{condition.stockFinancingId,jdbcType=VARCHAR}
      </if>
    </select>
    
    
  • 相关阅读:
    mysql读写分离
    mysql主从同步
    扫描与抓包
    加密与入侵检查
    监控
    selinux
    预期交互
    python发送邮件
    linux下安装虚拟环境
    博弈论
  • 原文地址:https://www.cnblogs.com/zplogo/p/11525209.html
Copyright © 2011-2022 走看看