| | |
| | | stock_gid, stock_spell, buy_order_id, buy_order_time, buy_order_price, sell_order_id, |
| | | sell_order_time, sell_order_price, profit_target_price, stop_target_price, order_direction, |
| | | order_num, order_lever, order_total_price, order_fee, order_spread, order_stay_fee, |
| | | order_stay_days, profit_and_lose, all_profit_and_lose,is_lock,lock_msg,stock_plate,spread_rate_price,margin_add |
| | | order_stay_days, profit_and_lose, all_profit_and_lose,is_lock,lock_msg,stock_plate,spread_rate_price,margin_add,buy_order_id_index |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > |
| | | select |
| | |
| | | is_lock = #{isLock,jdbcType=INTEGER}, |
| | | lock_msg = #{lockMsg,jdbcType=VARCHAR}, |
| | | stock_plate = #{stockPlate,jdbcType=VARCHAR}, |
| | | buy_order_id_index = #{buyOrderIdIndex,jdbcType=DECIMAL}, |
| | | spread_rate_price = #{spreadRatePrice,jdbcType=DECIMAL} |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | |
| | | order by id desc |
| | | </select> |
| | | |
| | | <select id="synchronizePrice" parameterType="integer" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM user_position |
| | | WHERE sell_order_id is null |
| | | </select> |
| | | |
| | | |
| | | <select id="listByAgent" parameterType="map" resultMap="BaseResultMap"> |
| | | SELECT |