diff --git a/xhpc-modules/xhpc-card/src/main/resources/mapper/XhpcRechargeOrderMapper.xml b/xhpc-modules/xhpc-card/src/main/resources/mapper/XhpcRechargeOrderMapper.xml new file mode 100644 index 00000000..4bfa493f --- /dev/null +++ b/xhpc-modules/xhpc-card/src/main/resources/mapper/XhpcRechargeOrderMapper.xml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + recharge_order_id + , recharge_order_number, user_id, prepay_id, alipay_number, amount, + `type`, `status`, `source`, del_flag, create_time, create_by, update_time, update_by, + remark, tenant_id + + + + + + delete + from xhpc_recharge_order + where recharge_order_id = #{rechargeOrderId,jdbcType=BIGINT} + + + insert into xhpc_recharge_order (recharge_order_number, user_id, prepay_id, + alipay_number, amount, `type`, + `status`, `source`, del_flag, + create_time, create_by, update_time, + update_by, remark, tenant_id) + values (#{rechargeOrderNumber,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{prepayId,jdbcType=VARCHAR}, + #{alipayNumber,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER}, + #{status,jdbcType=INTEGER}, #{source,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{tenantId,jdbcType=VARCHAR}) + + + insert into xhpc_recharge_order + + + recharge_order_number, + + + user_id, + + + prepay_id, + + + alipay_number, + + + amount, + + + `type`, + + + `status`, + + + `source`, + + + del_flag, + + + create_time, + + + create_by, + + + update_time, + + + update_by, + + + remark, + + + tenant_id, + + + + + #{rechargeOrderNumber,jdbcType=VARCHAR}, + + + #{userId,jdbcType=BIGINT}, + + + #{prepayId,jdbcType=VARCHAR}, + + + #{alipayNumber,jdbcType=VARCHAR}, + + + #{amount,jdbcType=DECIMAL}, + + + #{type,jdbcType=INTEGER}, + + + #{status,jdbcType=INTEGER}, + + + #{source,jdbcType=INTEGER}, + + + #{delFlag,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{tenantId,jdbcType=VARCHAR}, + + + + + update xhpc_recharge_order + + + recharge_order_number = #{rechargeOrderNumber,jdbcType=VARCHAR}, + + + user_id = #{userId,jdbcType=BIGINT}, + + + prepay_id = #{prepayId,jdbcType=VARCHAR}, + + + alipay_number = #{alipayNumber,jdbcType=VARCHAR}, + + + amount = #{amount,jdbcType=DECIMAL}, + + + `type` = #{type,jdbcType=INTEGER}, + + + `status` = #{status,jdbcType=INTEGER}, + + + `source` = #{source,jdbcType=INTEGER}, + + + del_flag = #{delFlag,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + tenant_id = #{tenantId,jdbcType=VARCHAR}, + + + where recharge_order_id = #{rechargeOrderId,jdbcType=BIGINT} + + + update xhpc_recharge_order + set recharge_order_number = #{rechargeOrderNumber,jdbcType=VARCHAR}, + user_id = #{userId,jdbcType=BIGINT}, + prepay_id = #{prepayId,jdbcType=VARCHAR}, + alipay_number = #{alipayNumber,jdbcType=VARCHAR}, + amount = #{amount,jdbcType=DECIMAL}, + `type` = #{type,jdbcType=INTEGER}, + `status` = #{status,jdbcType=INTEGER}, + `source` = #{source,jdbcType=INTEGER}, + del_flag = #{delFlag,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + create_by = #{createBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + tenant_id = #{tenantId,jdbcType=VARCHAR} + where recharge_order_id = #{rechargeOrderId,jdbcType=BIGINT} + + \ No newline at end of file