|
|
@@ -1,346 +1,177 @@
|
|
|
-<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
-<mapper namespace="com.goafanti.common.dao.AchievementOrderMapper" >
|
|
|
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.AchievementOrder" >
|
|
|
- <id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
- <result column="serial_number" property="serialNumber" jdbcType="INTEGER" />
|
|
|
- <result column="achievement_id" property="achievementId" jdbcType="VARCHAR" />
|
|
|
- <result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
- <result column="status" property="status" jdbcType="INTEGER" />
|
|
|
- <result column="intention_money" property="intentionMoney" jdbcType="INTEGER" />
|
|
|
- <result column="contract_money" property="contractMoney" jdbcType="INTEGER" />
|
|
|
- <result column="commission" property="commission" jdbcType="INTEGER" />
|
|
|
- <result column="service_money" property="serviceMoney" jdbcType="INTEGER" />
|
|
|
- <result column="refund" property="refund" jdbcType="INTEGER" />
|
|
|
- <result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
- </resultMap>
|
|
|
- <sql id="Base_Column_List" >
|
|
|
- id, serial_number, achievement_id, uid, create_time, status, intention_money, contract_money,
|
|
|
- commission, service_money, refund, deleted_sign
|
|
|
- </sql>
|
|
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from achievement_order
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
- delete from achievement_order
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.goafanti.common.model.AchievementOrder" >
|
|
|
- insert into achievement_order (id, serial_number, achievement_id,
|
|
|
- uid, create_time, status,
|
|
|
- intention_money, contract_money, commission,
|
|
|
- service_money, refund, deleted_sign
|
|
|
- )
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{achievementId,jdbcType=VARCHAR},
|
|
|
- #{uid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
|
|
- #{intentionMoney,jdbcType=INTEGER}, #{contractMoney,jdbcType=INTEGER}, #{commission,jdbcType=INTEGER},
|
|
|
- #{serviceMoney,jdbcType=INTEGER}, #{refund,jdbcType=INTEGER}, #{deletedSign,jdbcType=INTEGER}
|
|
|
- )
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.goafanti.common.model.AchievementOrder" >
|
|
|
- insert into achievement_order
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id != null" >
|
|
|
- id,
|
|
|
- </if>
|
|
|
- <if test="serialNumber != null" >
|
|
|
- serial_number,
|
|
|
- </if>
|
|
|
- <if test="achievementId != null" >
|
|
|
- achievement_id,
|
|
|
- </if>
|
|
|
- <if test="uid != null" >
|
|
|
- uid,
|
|
|
- </if>
|
|
|
- <if test="createTime != null" >
|
|
|
- create_time,
|
|
|
- </if>
|
|
|
- <if test="status != null" >
|
|
|
- status,
|
|
|
- </if>
|
|
|
- <if test="intentionMoney != null" >
|
|
|
- intention_money,
|
|
|
- </if>
|
|
|
- <if test="contractMoney != null" >
|
|
|
- contract_money,
|
|
|
- </if>
|
|
|
- <if test="commission != null" >
|
|
|
- commission,
|
|
|
- </if>
|
|
|
- <if test="serviceMoney != null" >
|
|
|
- service_money,
|
|
|
- </if>
|
|
|
- <if test="refund != null" >
|
|
|
- refund,
|
|
|
- </if>
|
|
|
- <if test="deletedSign != null" >
|
|
|
- deleted_sign,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id != null" >
|
|
|
- #{id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="serialNumber != null" >
|
|
|
- #{serialNumber,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="achievementId != null" >
|
|
|
- #{achievementId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="uid != null" >
|
|
|
- #{uid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createTime != null" >
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="status != null" >
|
|
|
- #{status,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="intentionMoney != null" >
|
|
|
- #{intentionMoney,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="contractMoney != null" >
|
|
|
- #{contractMoney,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="commission != null" >
|
|
|
- #{commission,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="serviceMoney != null" >
|
|
|
- #{serviceMoney,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="refund != null" >
|
|
|
- #{refund,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="deletedSign != null" >
|
|
|
- #{deletedSign,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AchievementOrder" >
|
|
|
- update achievement_order
|
|
|
- <set >
|
|
|
- <if test="serialNumber != null" >
|
|
|
- serial_number = #{serialNumber,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="achievementId != null" >
|
|
|
- achievement_id = #{achievementId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="uid != null" >
|
|
|
- uid = #{uid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createTime != null" >
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="status != null" >
|
|
|
- status = #{status,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="intentionMoney != null" >
|
|
|
- intention_money = #{intentionMoney,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="contractMoney != null" >
|
|
|
- contract_money = #{contractMoney,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="commission != null" >
|
|
|
- commission = #{commission,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="serviceMoney != null" >
|
|
|
- service_money = #{serviceMoney,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="refund != null" >
|
|
|
- refund = #{refund,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="deletedSign != null" >
|
|
|
- deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.AchievementOrder" >
|
|
|
- update achievement_order
|
|
|
- set serial_number = #{serialNumber,jdbcType=INTEGER},
|
|
|
- achievement_id = #{achievementId,jdbcType=VARCHAR},
|
|
|
- uid = #{uid,jdbcType=VARCHAR},
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- status = #{status,jdbcType=INTEGER},
|
|
|
- intention_money = #{intentionMoney,jdbcType=INTEGER},
|
|
|
- contract_money = #{contractMoney,jdbcType=INTEGER},
|
|
|
- commission = #{commission,jdbcType=INTEGER},
|
|
|
- service_money = #{serviceMoney,jdbcType=INTEGER},
|
|
|
- refund = #{refund,jdbcType=INTEGER},
|
|
|
- deleted_sign = #{deletedSign,jdbcType=INTEGER}
|
|
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
-
|
|
|
- <select id="selectAchievementOrderByUidAndAchievementId" resultMap="BaseResultMap" >
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from achievement_order
|
|
|
- where
|
|
|
- uid = #{0} and achievement_id = #{1} and deleted_sign = 0
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="findAchievementOrderListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementOrderListBo">
|
|
|
- select
|
|
|
- ao.id, ao.serial_number as serialNumber, ao.achievement_id as achievementId,
|
|
|
- ao.create_time as createTime,ao.status,
|
|
|
- ao.intention_money as intentionMoney, ao.contract_money as contractMoney, ao.commission,
|
|
|
- ao.service_money as serviceMoney, a.name, a.serial_number as achievementSerialNumber,
|
|
|
- a.deleted_sign as deletedSign, a.audit_status as auditStatus
|
|
|
- from achievement_order ao
|
|
|
- left join achievement a on a.id = ao.achievement_id
|
|
|
- where ao.deleted_sign = 0
|
|
|
- and a.deleted_sign = 0
|
|
|
- and ao.uid = #{uid,jdbcType=VARCHAR}
|
|
|
- <if test="status != null">
|
|
|
- and ao.status = #{status,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- order by ao.serial_number desc
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="findAchievementOrderCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
- select
|
|
|
- count(1)
|
|
|
- from achievement_order ao
|
|
|
- left join achievement a on a.id = ao.achievement_id
|
|
|
- where ao.deleted_sign = 0
|
|
|
- and a.deleted_sign
|
|
|
- and ao.uid = #{uid,jdbcType=VARCHAR}
|
|
|
- <if test="status != null">
|
|
|
- and ao.status = #{status,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="selectAchievementOrderByAchievementId" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from achievement_order
|
|
|
- where achievement_id = #{achievementId,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
- <select id="findUserAchievementOrderListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.UserAchievementOrderListBo">
|
|
|
- select
|
|
|
- ao.id, ao.serial_number as serialNumber, ao.achievement_id as achievementId,
|
|
|
- ao.create_time as createTime,ao.status,
|
|
|
- ao.intention_money as intentionMoney, ao.contract_money as contractMoney, ao.commission,
|
|
|
- ao.service_money as serviceMoney, a.name, a.serial_number as achievementSerialNumber,
|
|
|
- a.deleted_sign as deletedSign, a.audit_status as auditStatus, ui.username,
|
|
|
- ao.uid, oi.unit_name as unitName
|
|
|
- from achievement_order ao
|
|
|
- left join achievement a on a.id = ao.achievement_id
|
|
|
- left join user_identity ui on ui.uid = ao.uid
|
|
|
- left join organization_identity oi on oi.uid = ao.uid
|
|
|
- where ao.deleted_sign = 0
|
|
|
- and a.deleted_sign = 0
|
|
|
- and a.owner_type= 0
|
|
|
- <if test="techBrokerId != null">
|
|
|
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and ao.status = #{status,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- and ao.uid = #{uid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="username != null">
|
|
|
- and (oi.unit_name = #{username,jdbcType=VARCHAR}
|
|
|
- or ui.username = #{username,jdbcType=VARCHAR})
|
|
|
- </if>
|
|
|
- order by ao.serial_number desc
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="findUserAchievementOrderCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
- select
|
|
|
- count(1)
|
|
|
- from achievement_order ao
|
|
|
- left join achievement a on a.id = ao.achievement_id
|
|
|
- left join user_identity ui on ui.uid = ao.uid
|
|
|
- left join organization_identity oi on oi.uid = ao.uid
|
|
|
- where ao.deleted_sign = 0
|
|
|
- and a.deleted_sign = 0
|
|
|
- and a.owner_type= 0
|
|
|
- <if test="techBrokerId != null">
|
|
|
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and ao.status = #{status,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- and ao.uid = #{uid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="username != null">
|
|
|
- and (oi.unit_name = #{username,jdbcType=VARCHAR}
|
|
|
- or ui.username = #{username,jdbcType=VARCHAR})
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
- <select id="findOrgAchievementOrderListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.OrgAchievementOrderListBo">
|
|
|
- select
|
|
|
- ao.id, ao.serial_number as serialNumber, ao.achievement_id as achievementId,
|
|
|
- ao.create_time as createTime,ao.status,
|
|
|
- ao.intention_money as intentionMoney, ao.contract_money as contractMoney, ao.commission,
|
|
|
- ao.service_money as serviceMoney, a.name, a.serial_number as achievementSerialNumber,
|
|
|
- a.deleted_sign as deletedSign, a.audit_status as auditStatus, ao.uid,
|
|
|
- oi.unit_name as unitName, ui.username
|
|
|
- from achievement_order ao
|
|
|
- left join achievement a on a.id = ao.achievement_id
|
|
|
- left join user_identity ui on ui.uid = ao.uid
|
|
|
- left join organization_identity oi on oi.uid = ao.uid
|
|
|
- where ao.deleted_sign = 0
|
|
|
- and a.deleted_sign = 0
|
|
|
- and a.owner_type= 1
|
|
|
- <if test="techBrokerId != null">
|
|
|
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and ao.status = #{status,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- and ao.uid = #{uid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="unitName != null">
|
|
|
- and (oi.unit_name = #{unitName,jdbcType=VARCHAR}
|
|
|
- or ui.username = #{unitName,jdbcType=VARCHAR})
|
|
|
- </if>
|
|
|
- order by ao.serial_number desc
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="findOrgAchievementOrderCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
- select
|
|
|
- count(1)
|
|
|
- from achievement_order ao
|
|
|
- left join achievement a on a.id = ao.achievement_id
|
|
|
- left join user_identity ui on ui.uid = ao.uid
|
|
|
- left join organization_identity oi on oi.uid = ao.uid
|
|
|
- where ao.deleted_sign = 0
|
|
|
- and a.deleted_sign = 0
|
|
|
- and a.owner_type= 1
|
|
|
- <if test="techBrokerId != null">
|
|
|
- and a.tech_broker_id = #{techBrokerId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="status != null">
|
|
|
- and ao.status = #{status,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- and ao.uid = #{uid,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="unitName != null">
|
|
|
- and (oi.unit_name = #{unitName,jdbcType=VARCHAR}
|
|
|
- or ui.username = #{unitName,jdbcType=VARCHAR})
|
|
|
- </if>
|
|
|
- </select>
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.goafanti.common.dao.AchievementOrderMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.AchievementOrder">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="serial_number" jdbcType="INTEGER" property="serialNumber" />
|
|
|
+ <result column="achievement_id" jdbcType="VARCHAR" property="achievementId" />
|
|
|
+ <result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="status" jdbcType="INTEGER" property="status" />
|
|
|
+ <result column="payment_value" jdbcType="DOUBLE" property="paymentValue" />
|
|
|
+ <result column="payment_type" jdbcType="VARCHAR" property="paymentType" />
|
|
|
+ <result column="payment_id" jdbcType="VARCHAR" property="paymentId" />
|
|
|
+ <result column="payment_time" jdbcType="TIMESTAMP" property="paymentTime" />
|
|
|
+ <result column="refund" jdbcType="INTEGER" property="refund" />
|
|
|
+ <result column="deleted_sign" jdbcType="INTEGER" property="deletedSign" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, serial_number, achievement_id, uid, create_time, status, payment_value, payment_type,
|
|
|
+ payment_id, payment_time, refund, deleted_sign
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from achievement_order
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from achievement_order
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.AchievementOrder">
|
|
|
+ insert into achievement_order (id, serial_number, achievement_id,
|
|
|
+ uid, create_time, status,
|
|
|
+ payment_value, payment_type, payment_id,
|
|
|
+ payment_time, refund, deleted_sign
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{achievementId,jdbcType=VARCHAR},
|
|
|
+ #{uid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
|
|
+ #{paymentValue,jdbcType=DOUBLE}, #{paymentType,jdbcType=VARCHAR}, #{paymentId,jdbcType=VARCHAR},
|
|
|
+ #{paymentTime,jdbcType=TIMESTAMP}, #{refund,jdbcType=INTEGER}, #{deletedSign,jdbcType=INTEGER}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.AchievementOrder">
|
|
|
+ insert into achievement_order
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ serial_number,
|
|
|
+ </if>
|
|
|
+ <if test="achievementId != null">
|
|
|
+ achievement_id,
|
|
|
+ </if>
|
|
|
+ <if test="uid != null">
|
|
|
+ uid,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ status,
|
|
|
+ </if>
|
|
|
+ <if test="paymentValue != null">
|
|
|
+ payment_value,
|
|
|
+ </if>
|
|
|
+ <if test="paymentType != null">
|
|
|
+ payment_type,
|
|
|
+ </if>
|
|
|
+ <if test="paymentId != null">
|
|
|
+ payment_id,
|
|
|
+ </if>
|
|
|
+ <if test="paymentTime != null">
|
|
|
+ payment_time,
|
|
|
+ </if>
|
|
|
+ <if test="refund != null">
|
|
|
+ refund,
|
|
|
+ </if>
|
|
|
+ <if test="deletedSign != null">
|
|
|
+ deleted_sign,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ #{serialNumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="achievementId != null">
|
|
|
+ #{achievementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="uid != null">
|
|
|
+ #{uid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paymentValue != null">
|
|
|
+ #{paymentValue,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="paymentType != null">
|
|
|
+ #{paymentType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentId != null">
|
|
|
+ #{paymentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentTime != null">
|
|
|
+ #{paymentTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="refund != null">
|
|
|
+ #{refund,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="deletedSign != null">
|
|
|
+ #{deletedSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AchievementOrder">
|
|
|
+ update achievement_order
|
|
|
+ <set>
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ serial_number = #{serialNumber,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="achievementId != null">
|
|
|
+ achievement_id = #{achievementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="uid != null">
|
|
|
+ uid = #{uid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="paymentValue != null">
|
|
|
+ payment_value = #{paymentValue,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="paymentType != null">
|
|
|
+ payment_type = #{paymentType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentId != null">
|
|
|
+ payment_id = #{paymentId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="paymentTime != null">
|
|
|
+ payment_time = #{paymentTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="refund != null">
|
|
|
+ refund = #{refund,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="deletedSign != null">
|
|
|
+ deleted_sign = #{deletedSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.AchievementOrder">
|
|
|
+ update achievement_order
|
|
|
+ set serial_number = #{serialNumber,jdbcType=INTEGER},
|
|
|
+ achievement_id = #{achievementId,jdbcType=VARCHAR},
|
|
|
+ uid = #{uid,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
+ payment_value = #{paymentValue,jdbcType=DOUBLE},
|
|
|
+ payment_type = #{paymentType,jdbcType=VARCHAR},
|
|
|
+ payment_id = #{paymentId,jdbcType=VARCHAR},
|
|
|
+ payment_time = #{paymentTime,jdbcType=TIMESTAMP},
|
|
|
+ refund = #{refund,jdbcType=INTEGER},
|
|
|
+ deleted_sign = #{deletedSign,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
</mapper>
|