chenjiahe
2023-04-02 2a45d42cebd76d0f0add392c0e06d2cbbb36c63f
phi_platform_common/src/main/resources/mapper/platform/RefundRecordCardMapper.xml
@@ -19,11 +19,11 @@
       <selectKey keyProperty="id" resultType="String" order="BEFORE">
               select replace(uuid(),'-','') from dual
        </selectKey>
        insert into refund_record_Card (id,userCardId,refundRecordItemId,refundRecordId,isDel,createTime,editTime)  values (#{id},#{userCardId},#{refundRecordItemId},#{refundRecordId},#{isDel},#{createTime},#{editTime})
        insert into refund_record_card (id,userCardId,refundRecordItemId,refundRecordId,isDel,createTime,editTime)  values (#{id},#{userCardId},#{refundRecordItemId},#{refundRecordId},#{isDel},#{createTime},#{editTime})
   </insert>
   <insert id="insertById" parameterType="com.hx.phiappt.model.refund.RefundRecordCard">
        insert into refund_record_Card (id,userCardId,refundRecordItemId,refundRecordId,isDel,createTime,editTime)  values (#{id},#{userCardId},#{refundRecordItemId},#{refundRecordId},#{isDel},#{createTime},#{editTime})
        insert into refund_record_card (id,userCardId,refundRecordItemId,refundRecordId,isDel,createTime,editTime)  values (#{id},#{userCardId},#{refundRecordItemId},#{refundRecordId},#{isDel},#{createTime},#{editTime})
    </insert>
   <select id="selectList" resultType="com.hx.phiappt.model.refund.RefundRecordCard" parameterType="com.hx.mybatisTool.SqlSentence" >
@@ -45,7 +45,7 @@
   <select id="selectCount" resultType="int" parameterType="com.hx.mybatisTool.SqlSentence" >
          select
             COUNT(*)
          from refund_record_Card
          from refund_record_card
             WHERE ${sqlSentence}
    </select>
@@ -56,35 +56,35 @@
   <select id="selectOneByKey" resultType="com.hx.phiappt.model.refund.RefundRecordCard" parameterType="java.lang.Object" >
      select 
         id,userCardId,refundRecordItemId,refundRecordId,isDel,createTime,editTime
      from refund_record_Card
      from refund_record_card
      WHERE id = #{value}
   </select>
   <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.refund.RefundRecordCard" parameterType="java.lang.Object" >
      select 
         id,userCardId,refundRecordItemId,refundRecordId,isDel,createTime,editTime
      from refund_record_Card
      from refund_record_card
      WHERE id = #{value}
   </select>
   <update id="updateWhere" parameterType="com.hx.mybatisTool.SqlSentence">
      update
          refund_record_Card
          refund_record_card
        SET ${sqlSentence}
   </update>
   <update id="updateAll" parameterType="com.hx.phiappt.model.refund.RefundRecordCard">
      update refund_record_Card
      update refund_record_card
         SET <include refid="Update_Column_All"/>
      WHERE id = #{id}
   </update>
   <delete id="deleteWhere"  parameterType="com.hx.mybatisTool.SqlSentence">
      delete from refund_record_Card WHERE ${sqlSentence}
      delete from refund_record_card WHERE ${sqlSentence}
   </delete>
   <delete id="deleteById"  parameterType="java.lang.Object">
      delete from refund_record_Card WHERE id = #{value}
      delete from refund_record_card WHERE id = #{value}
   </delete>
   
</mapper>