| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,code = #{code},refundOperationType = #{refundOperationType},refundType = #{refundType},refundStatus = #{refundStatus},refundShopId = #{refundShopId},refundShopName = #{refundShopName},refundTotal = #{refundTotal},refundIntegral = #{refundIntegral},realRefundTotal = #{realRefundTotal},realRefundIntegral = #{realRefundIntegral},refundReason = #{refundReason},remarks = #{remarks},sourceType = #{sourceType},orderId = #{orderId},userId = #{userId},operatorType = #{operatorType},operatorId = #{operatorId},operatorName = #{operatorName},addTime = #{addTime},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,code = #{code},refundOperationType = #{refundOperationType},refundType = #{refundType},refundStatus = #{refundStatus},refundShopId = #{refundShopId},refundShopNo = #{refundShopNo},refundShopName = #{refundShopName},refundTotal = #{refundTotal},refundIntegral = #{refundIntegral},realRefundTotal = #{realRefundTotal},realRefundIntegral = #{realRefundIntegral},refundReason = #{refundReason},remarks = #{remarks},sourceType = #{sourceType},orderId = #{orderId},userId = #{userId},operatorType = #{operatorType},operatorId = #{operatorId},operatorNo = #{operatorNo},operatorName = #{operatorName},operatorAppId = #{operatorAppId},operatorAppCode = #{operatorAppCode},operatorAppName = #{operatorAppName},addTime = #{addTime},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into refund_record (id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorName,addTime,isDel,createTime,editTime) values (#{id},#{code},#{refundOperationType},#{refundType},#{refundStatus},#{refundShopId},#{refundShopName},#{refundTotal},#{refundIntegral},#{realRefundTotal},#{realRefundIntegral},#{refundReason},#{remarks},#{sourceType},#{orderId},#{userId},#{operatorType},#{operatorId},#{operatorName},#{addTime},#{isDel},#{createTime},#{editTime}) |
| | | insert into refund_record (id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopNo,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorNo,operatorName,operatorAppId,operatorAppCode,operatorAppName,addTime,isDel,createTime,editTime) values (#{id},#{code},#{refundOperationType},#{refundType},#{refundStatus},#{refundShopId},#{refundShopNo},#{refundShopName},#{refundTotal},#{refundIntegral},#{realRefundTotal},#{realRefundIntegral},#{refundReason},#{remarks},#{sourceType},#{orderId},#{userId},#{operatorType},#{operatorId},#{operatorNo},#{operatorName},#{operatorAppId},#{operatorAppCode},#{operatorAppName},#{addTime},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.refund.RefundRecord"> |
| | | insert into refund_record (id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopNo,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorNo,operatorName,operatorAppId,operatorAppCode,operatorAppName,addTime,isDel,createTime,editTime) values (#{id},#{code},#{refundOperationType},#{refundType},#{refundStatus},#{refundShopId},#{refundShopNo},#{refundShopName},#{refundTotal},#{refundIntegral},#{realRefundTotal},#{realRefundIntegral},#{refundReason},#{remarks},#{sourceType},#{orderId},#{userId},#{operatorType},#{operatorId},#{operatorNo},#{operatorName},#{operatorAppId},#{operatorAppCode},#{operatorAppName},#{addTime},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.refund.RefundRecord" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.refund.RefundRecord" parameterType="java.lang.Object" > |
| | | select |
| | | id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorName,addTime,isDel,createTime,editTime |
| | | id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopNo,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorNo,operatorName,operatorAppId,operatorAppCode,operatorAppName,addTime,isDel,createTime,editTime |
| | | from refund_record |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.refund.RefundRecord" parameterType="java.lang.Object" > |
| | | select |
| | | id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorName,addTime,isDel,createTime,editTime |
| | | id,code,refundOperationType,refundType,refundStatus,refundShopId,refundShopNo,refundShopName,refundTotal,refundIntegral,realRefundTotal,realRefundIntegral,refundReason,remarks,sourceType,orderId,userId,operatorType,operatorId,operatorNo,operatorName,operatorAppId,operatorAppCode,operatorAppName,addTime,isDel,createTime,editTime |
| | | from refund_record |
| | | WHERE id = #{value} |
| | | </select> |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="selectOrderId" resultType="com.hx.phiappt.model.refund.RefundRecord"> |
| | | select refundStatus,id from refund_record where orderId=#{id} and isDel=0 and refundStatus=0 |
| | | </select> |