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>

 


					


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM