| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <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> |
| | | |
| | |
| | | <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} |
| | |
| | | |
| | | <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> |