| | |
| | | <result column="order_channel" property="orderChannel" jdbcType="VARCHAR"/> |
| | | <result column="pay_type" property="payType" jdbcType="INTEGER"/> |
| | | <result column="agent_id" property="agentId" jdbcType="BIGINT"/> |
| | | <result column="pay_merchant" property="payMerchant" jdbcType="VARCHAR"/> |
| | | <association property="user" javaType="com.taoke.autopay.entity.WxUserInfo"> |
| | | <id column="uid" property="id" jdbcType="BIGINT"/> |
| | | <result column="nick_name" property="nickName" jdbcType="VARCHAR"/> |
| | |
| | | <result column="money" property="money" jdbcType="DECIMAL"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id |
| | | ,uid,`key`,order_type,order_no,order_state,state,state_desc,distribute_client_uid,distribute_time,create_time,update_time,excute_pay_time,pay_time,order_money,order_channel,pay_type,agent_id</sql> |
| | | ,uid,`key`,order_type,order_no,order_state,state,state_desc,distribute_client_uid,distribute_time,create_time,update_time,excute_pay_time,pay_time,order_money,order_channel,pay_type,agent_id,pay_merchant</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/> |
| | | from table_order where id = #{id,jdbcType=BIGINT} |
| | |
| | | keyProperty="id">insert into table_order (id, uid, key, order_type, order_no, order_state, state, |
| | | state_desc, distribute_client_uid, distribute_time, create_time, |
| | | update_time, id, excute_pay_time, pay_time, order_money, |
| | | order_channel, pay_type, agent_id) |
| | | order_channel, pay_type, agent_id,pay_merchant) |
| | | values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=BIGINT}, #{key,jdbcType=VARCHAR}, |
| | | #{orderType,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, |
| | | #{orderState,jdbcType=INTEGER}, #{state,jdbcType=INTEGER}, |
| | |
| | | #{updateTime,jdbcType=TIMESTAMP}, #{id,jdbcType=VARCHAR}, |
| | | #{excutePayTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, |
| | | #{orderMoney,jdbcType=DECIMAL}, #{orderChannel,jdbcType=VARCHAR}, |
| | | #{payType,jdbcType=INTEGER}, #{agentId,jdbcType=BIGINT})</insert> |
| | | #{payType,jdbcType=INTEGER}, #{agentId,jdbcType=BIGINT},#{payMerchant, jdbcType=VARCHAR})</insert> |
| | | <insert id="insertSelective" parameterType="com.taoke.autopay.entity.KeyOrder" useGeneratedKeys="true" |
| | | keyProperty="id">insert into table_order |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="orderChannel != null">order_channel,</if> |
| | | <if test="payType != null">pay_type,</if> |
| | | <if test="agentId != null">agent_id,</if> |
| | | <if test="payMerchant!=null">pay_merchant,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="orderChannel != null">#{orderChannel,jdbcType=VARCHAR},</if> |
| | | <if test="payType != null">#{payType,jdbcType=INTEGER},</if> |
| | | <if test="agentId != null">#{agentId,jdbcType=BIGINT},</if> |
| | | <if test="payMerchant != null">#{payMerchant,jdbcType=VARCHAR},</if> |
| | | |
| | | |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.taoke.autopay.entity.KeyOrder">update table_order |
| | |
| | | order_channel =#{orderChannel,jdbcType=VARCHAR}, |
| | | pay_type =#{payType,jdbcType=INTEGER}, |
| | | agent_id =#{agentId,jdbcType=BIGINT}, |
| | | pay_merchant =#{payMerchant,jdbcType=VARCHAR}, |
| | | |
| | | where id = #{id,jdbcType=VARCHAR}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.taoke.autopay.entity.KeyOrder">update table_order |
| | | <set> |
| | |
| | | <if test="orderChannel !=null">order_channel =#{orderChannel,jdbcType=VARCHAR},</if> |
| | | <if test="payType !=null">pay_type =#{payType,jdbcType=INTEGER},</if> |
| | | <if test="agentId !=null">agent_id =#{agentId,jdbcType=BIGINT},</if> |
| | | <if test="payMerchant !=null">pay_merchant =#{payMerchant,jdbcType=VARCHAR},</if> |
| | | |
| | | </set> |
| | | where id = #{id,jdbcType=VARCHAR} |
| | | </update> |