chenjiahe
2023-04-02 2a45d42cebd76d0f0add392c0e06d2cbbb36c63f
phi_platform_common/src/main/resources/mapper/platform/RefundRecordItemMapper.xml
@@ -8,7 +8,7 @@
   <!-- 整个实体类修改,表字段=实体类字段-->
   <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>
    
@@ -19,8 +19,12 @@
       <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}
@@ -51,14 +55,14 @@
   <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>