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