zhouxiang
2023-02-23 bec88badaeb0341a1d5429b31357eb37c0b16fb0
phi_platform_common/src/main/resources/mapper/platform/CouponOrderDiscountLogMapper.xml
@@ -8,7 +8,7 @@
   <!-- 整个实体类修改,表字段=实体类字段-->
   <sql id="Update_Column_All">
      <trim prefixOverrides=",">
         ,orderId = #{orderId},couponId = #{couponId},couponNumberId = #{couponNumberId},type = #{type},title = #{title},describeInfo = #{describeInfo},discountTotal = #{discountTotal},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime}
         ,orderId = #{orderId},couponId = #{couponId},couponNumberId = #{couponNumberId},conversionCode = #{conversionCode},type = #{type},title = #{title},describeInfo = #{describeInfo},discountTotal = #{discountTotal},status = #{status},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime}
      </trim>
   </sql>
    
@@ -19,8 +19,12 @@
       <selectKey keyProperty="id" resultType="String" order="BEFORE">
               select replace(uuid(),'-','') from dual
        </selectKey>
        insert into coupon_order_discount_log (id,orderId,couponId,couponNumberId,type,title,describeInfo,discountTotal,isDel,createTime,editTime)  values (#{id},#{orderId},#{couponId},#{couponNumberId},#{type},#{title},#{describeInfo},#{discountTotal},#{isDel},#{createTime},#{editTime})
        insert into coupon_order_discount_log (id,orderId,couponId,couponNumberId,conversionCode,type,title,describeInfo,discountTotal,status,isDel,createTime,editTime)  values (#{id},#{orderId},#{couponId},#{couponNumberId},#{conversionCode},#{type},#{title},#{describeInfo},#{discountTotal},#{status},#{isDel},#{createTime},#{editTime})
   </insert>
   <insert id="insertById" parameterType="com.hx.phiappt.model.coupon.CouponOrderDiscountLog">
        insert into coupon_order_discount_log (id,orderId,couponId,couponNumberId,conversionCode,type,title,describeInfo,discountTotal,status,isDel,createTime,editTime)  values (#{id},#{orderId},#{couponId},#{couponNumberId},#{conversionCode},#{type},#{title},#{describeInfo},#{discountTotal},#{status},#{isDel},#{createTime},#{editTime})
    </insert>
   <select id="selectList" resultType="com.hx.phiappt.model.coupon.CouponOrderDiscountLog" parameterType="com.hx.mybatisTool.SqlSentence" >
      ${sqlSentence}
@@ -51,14 +55,14 @@
   <select id="selectOneByKey" resultType="com.hx.phiappt.model.coupon.CouponOrderDiscountLog" parameterType="java.lang.Object" >
      select 
         id,orderId,couponId,couponNumberId,type,title,describeInfo,discountTotal,isDel,createTime,editTime
         id,orderId,couponId,couponNumberId,conversionCode,type,title,describeInfo,discountTotal,status,isDel,createTime,editTime
      from coupon_order_discount_log
      WHERE id = #{value}
   </select>
   <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.coupon.CouponOrderDiscountLog" parameterType="java.lang.Object" >
      select 
         id,orderId,couponId,couponNumberId,type,title,describeInfo,discountTotal,isDel,createTime,editTime
         id,orderId,couponId,couponNumberId,conversionCode,type,title,describeInfo,discountTotal,status,isDel,createTime,editTime
      from coupon_order_discount_log
      WHERE id = #{value}
   </select>