| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,type = #{type},goodsNo = #{goodsNo},goodsName = #{goodsName},specs = #{specs},commonId = #{commonId},headPrice = #{headPrice},tailPrice = #{tailPrice},refundNum = #{refundNum},refundMoney = #{refundMoney},refundIntegral = #{refundIntegral},realRefundNum = #{realRefundNum},realRefundTotal = #{realRefundTotal},realRefundIntegral = #{realRefundIntegral},refundReason = #{refundReason},remarks = #{remarks},refundRecordId = #{refundRecordId},orderItemId = #{orderItemId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,type = #{type},goodsNo = #{goodsNo},goodsName = #{goodsName},specs = #{specs},commonId = #{commonId},deductionTotal = #{deductionTotal},cashTotal = #{cashTotal},deductionTotalUser = #{deductionTotalUser},refundNum = #{refundNum},refundMoney = #{refundMoney},refundIntegral = #{refundIntegral},realRefundNum = #{realRefundNum},realRefundTotal = #{realRefundTotal},realRefundIntegral = #{realRefundIntegral},refundReason = #{refundReason},remarks = #{remarks},occupyRefundTotal = #{occupyRefundTotal},refundRecordId = #{refundRecordId},orderItemId = #{orderItemId},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_item (id,type,goodsNo,goodsName,specs,commonId,headPrice,tailPrice,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,refundRecordId,orderItemId,isDel,createTime,editTime) values (#{id},#{type},#{goodsNo},#{goodsName},#{specs},#{commonId},#{headPrice},#{tailPrice},#{refundNum},#{refundMoney},#{refundIntegral},#{realRefundNum},#{realRefundTotal},#{realRefundIntegral},#{refundReason},#{remarks},#{refundRecordId},#{orderItemId},#{isDel},#{createTime},#{editTime}) |
| | | insert into refund_record_item (id,type,goodsNo,goodsName,specs,commonId,deductionTotal,cashTotal,deductionTotalUser,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,occupyRefundTotal,refundRecordId,orderItemId,isDel,createTime,editTime) values (#{id},#{type},#{goodsNo},#{goodsName},#{specs},#{commonId},#{deductionTotal},#{cashTotal},#{deductionTotalUser},#{refundNum},#{refundMoney},#{refundIntegral},#{realRefundNum},#{realRefundTotal},#{realRefundIntegral},#{refundReason},#{remarks},#{occupyRefundTotal},#{refundRecordId},#{orderItemId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.refund.RefundRecordItem"> |
| | | insert into refund_record_item (id,type,goodsNo,goodsName,specs,commonId,deductionTotal,cashTotal,deductionTotalUser,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,occupyRefundTotal,refundRecordId,orderItemId,isDel,createTime,editTime) values (#{id},#{type},#{goodsNo},#{goodsName},#{specs},#{commonId},#{deductionTotal},#{cashTotal},#{deductionTotalUser},#{refundNum},#{refundMoney},#{refundIntegral},#{realRefundNum},#{realRefundTotal},#{realRefundIntegral},#{refundReason},#{remarks},#{occupyRefundTotal},#{refundRecordId},#{orderItemId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.refund.RefundRecordItem" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.refund.RefundRecordItem" parameterType="java.lang.Object" > |
| | | select |
| | | id,type,goodsNo,goodsName,specs,commonId,headPrice,tailPrice,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,refundRecordId,orderItemId,isDel,createTime,editTime |
| | | id,type,goodsNo,goodsName,specs,commonId,deductionTotal,cashTotal,deductionTotalUser,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,occupyRefundTotal,refundRecordId,orderItemId,isDel,createTime,editTime |
| | | from refund_record_item |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.refund.RefundRecordItem" parameterType="java.lang.Object" > |
| | | select |
| | | id,type,goodsNo,goodsName,specs,commonId,headPrice,tailPrice,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,refundRecordId,orderItemId,isDel,createTime,editTime |
| | | id,type,goodsNo,goodsName,specs,commonId,deductionTotal,cashTotal,deductionTotalUser,refundNum,refundMoney,refundIntegral,realRefundNum,realRefundTotal,realRefundIntegral,refundReason,remarks,occupyRefundTotal,refundRecordId,orderItemId,isDel,createTime,editTime |
| | | from refund_record_item |
| | | WHERE id = #{value} |
| | | </select> |