@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>

 


 
                    
            
                

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2021-12-26
  • 2021-12-10
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案