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