123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="SDdglFpglInvoiceinfoMapper" >
- <!-- 通用查询映射结果 -->
- <select id="selectSDdglFpglInvoiceinfoList" parameterType="pd" resultType="pd">
- select * from s_ddgl_fpgl_invoiceinfo where 1=1
- <if test="id !=null and id !='' ">
- and id = #{id}
- </if>
- <if test="platformOrderNo !=null and platformOrderNo !='' ">
- and platformOrderNo = #{platformOrderNo}
- </if>
- <if test="invoiceCode !=null and invoiceCode !='' ">
- and invoiceCode = #{invoiceCode}
- </if>
- <if test="invoiceNumber !=null and invoiceNumber !='' ">
- and invoiceNumber = #{invoiceNumber}
- </if>
- <if test="invoiceAmount !=null and invoiceAmount !='' ">
- and invoiceAmount = #{invoiceAmount}
- </if>
- <if test="channelStore !=null and channelStore !='' ">
- and channelStore = #{channelStore}
- </if>
- <if test="orderInvoiceType !=null and orderInvoiceType !='' ">
- and orderInvoiceType = #{orderInvoiceType}
- </if>
- <if test="invoiceType !=null and invoiceType !='' ">
- and invoiceType = #{invoiceType}
- </if>
- <if test="headerType !=null and headerType !='' ">
- and headerType = #{headerType}
- </if>
- <if test="headerName !=null and headerName !='' ">
- and headerName = #{headerName}
- </if>
- <if test="billingType !=null and billingType !='' ">
- and billingType = #{billingType}
- </if>
- <if test="billingTime !=null and billingTime !='' ">
- and billingTime = #{billingTime}
- </if>
- <if test="mailingInfo !=null and mailingInfo !='' ">
- and mailingInfo = #{mailingInfo}
- </if>
- <if test="billingAmount !=null and billingAmount !='' ">
- and billingAmount = #{billingAmount}
- </if>
- <if test="storeName !=null and storeName !='' ">
- and storeName = #{storeName}
- </if>
- <if test="auditType !=null and auditType !='' ">
- and auditType = #{auditType}
- </if>
- <if test="auditStatus !=null and auditStatus !='' ">
- and auditStatus = #{auditStatus}
- </if>
- <if test="noData !=null and noData !='' ">
- and noData = #{noData}
- </if>
- <if test="mergeOrderNo !=null and mergeOrderNo !='' ">
- and mergeOrderNo = #{mergeOrderNo}
- </if>
- <if test="orderNo !=null and orderNo !='' ">
- and orderNo = #{orderNo}
- </if>
- <if test="billingStatus !=null and billingStatus !='' ">
- and billingStatus = #{billingStatus}
- </if>
- <if test="createTime !=null and createTime !='' ">
- and createTime = #{createTime}
- </if>
- <if test="beginTime != null and beginTime!='' and endTime != null and endTime!=''">
- and createTime between #{beginTime} and #{endTime}
- </if>
- <if test="id !=null and id !='' ">
- and id = #{id}
- </if>
- </select>
- <update id="updateSDdglFpglInvoiceinfo" parameterType="pd" >
- update s_ddgl_fpgl_invoiceinfo
- <trim prefix=" SET " suffix="" prefixOverrides="," suffixOverrides=",">
- <if test="platformOrderNo !=null and platformOrderNo !='' ">
- platformOrderNo = #{platformOrderNo},
- </if>
- <if test="invoiceCode !=null and invoiceCode !='' ">
- invoiceCode = #{invoiceCode},
- </if>
- <if test="invoiceNumber !=null and invoiceNumber !='' ">
- invoiceNumber = #{invoiceNumber},
- </if>
- <if test="invoiceAmount !=null and invoiceAmount !='' ">
- invoiceAmount = #{invoiceAmount},
- </if>
- <if test="channelStore !=null and channelStore !='' ">
- channelStore = #{channelStore},
- </if>
- <if test="orderInvoiceType !=null and orderInvoiceType !='' ">
- orderInvoiceType = #{orderInvoiceType},
- </if>
- <if test="invoiceType !=null and invoiceType !='' ">
- invoiceType = #{invoiceType},
- </if>
- <if test="headerType !=null and headerType !='' ">
- headerType = #{headerType},
- </if>
- <if test="headerName !=null and headerName !='' ">
- headerName = #{headerName},
- </if>
- <if test="billingType !=null and billingType !='' ">
- billingType = #{billingType},
- </if>
- <if test="billingTime !=null and billingTime !='' ">
- billingTime = #{billingTime},
- </if>
- <if test="mailingInfo !=null and mailingInfo !='' ">
- mailingInfo = #{mailingInfo},
- </if>
- <if test="billingAmount !=null and billingAmount !='' ">
- billingAmount = #{billingAmount},
- </if>
- <if test="storeName !=null and storeName !='' ">
- storeName = #{storeName},
- </if>
- <if test="auditType !=null and auditType !='' ">
- auditType = #{auditType},
- </if>
- <if test="auditStatus !=null and auditStatus !='' ">
- auditStatus = #{auditStatus},
- </if>
- <if test="noData !=null and noData !='' ">
- noData = #{noData},
- </if>
- <if test="mergeOrderNo !=null and mergeOrderNo !='' ">
- mergeOrderNo = #{mergeOrderNo},
- </if>
- <if test="orderNo !=null and orderNo !='' ">
- orderNo = #{orderNo},
- </if>
- <if test="billingStatus !=null and billingStatus !='' ">
- billingStatus = #{billingStatus},
- </if>
- <if test="createTime !=null and createTime !='' ">
- createTime = #{createTime},
- </if>
- </trim>
- <if test="up != null and up!=''">
- <if test="id != null and id!=''">
- where id=#{id}
- </if>
- </if>
- </update>
- <delete id="SDdglFpglInvoiceinfoRemove" parameterType="pd">
- <if test="ids != null">
- delete from s_ddgl_fpgl_invoiceinfo where
- <if test="ids != null">
- id in(${ids})
- </if>
- </if>
- </delete>
- <insert id="addSDdglFpglInvoiceinfo" parameterType="pd" >
- insert into s_ddgl_fpgl_invoiceinfo
- <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
- <if test="platformOrderNo !=null and platformOrderNo !='' ">
- platformOrderNo,
- </if>
- <if test="invoiceCode !=null and invoiceCode !='' ">
- invoiceCode,
- </if>
- <if test="invoiceNumber !=null and invoiceNumber !='' ">
- invoiceNumber,
- </if>
- <if test="invoiceAmount !=null and invoiceAmount !='' ">
- invoiceAmount,
- </if>
- <if test="channelStore !=null and channelStore !='' ">
- channelStore,
- </if>
- <if test="orderInvoiceType !=null and orderInvoiceType !='' ">
- orderInvoiceType,
- </if>
- <if test="invoiceType !=null and invoiceType !='' ">
- invoiceType,
- </if>
- <if test="headerType !=null and headerType !='' ">
- headerType,
- </if>
- <if test="headerName !=null and headerName !='' ">
- headerName,
- </if>
- <if test="billingType !=null and billingType !='' ">
- billingType,
- </if>
- <if test="billingTime !=null and billingTime !='' ">
- billingTime,
- </if>
- <if test="mailingInfo !=null and mailingInfo !='' ">
- mailingInfo,
- </if>
- <if test="billingAmount !=null and billingAmount !='' ">
- billingAmount,
- </if>
- <if test="storeName !=null and storeName !='' ">
- storeName,
- </if>
- <if test="auditType !=null and auditType !='' ">
- auditType,
- </if>
- <if test="auditStatus !=null and auditStatus !='' ">
- auditStatus,
- </if>
- <if test="noData !=null and noData !='' ">
- noData,
- </if>
- <if test="mergeOrderNo !=null and mergeOrderNo !='' ">
- mergeOrderNo,
- </if>
- <if test="orderNo !=null and orderNo !='' ">
- orderNo,
- </if>
- <if test="billingStatus !=null and billingStatus !='' ">
- billingStatus,
- </if>
- <if test="createTime !=null and createTime !='' ">
- createTime,
- </if>
- </trim>
- <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
- <if test="platformOrderNo !=null and platformOrderNo !='' ">
- #{platformOrderNo},
- </if>
- <if test="invoiceCode !=null and invoiceCode !='' ">
- #{invoiceCode},
- </if>
- <if test="invoiceNumber !=null and invoiceNumber !='' ">
- #{invoiceNumber},
- </if>
- <if test="invoiceAmount !=null and invoiceAmount !='' ">
- #{invoiceAmount},
- </if>
- <if test="channelStore !=null and channelStore !='' ">
- #{channelStore},
- </if>
- <if test="orderInvoiceType !=null and orderInvoiceType !='' ">
- #{orderInvoiceType},
- </if>
- <if test="invoiceType !=null and invoiceType !='' ">
- #{invoiceType},
- </if>
- <if test="headerType !=null and headerType !='' ">
- #{headerType},
- </if>
- <if test="headerName !=null and headerName !='' ">
- #{headerName},
- </if>
- <if test="billingType !=null and billingType !='' ">
- #{billingType},
- </if>
- <if test="billingTime !=null and billingTime !='' ">
- #{billingTime},
- </if>
- <if test="mailingInfo !=null and mailingInfo !='' ">
- #{mailingInfo},
- </if>
- <if test="billingAmount !=null and billingAmount !='' ">
- #{billingAmount},
- </if>
- <if test="storeName !=null and storeName !='' ">
- #{storeName},
- </if>
- <if test="auditType !=null and auditType !='' ">
- #{auditType},
- </if>
- <if test="auditStatus !=null and auditStatus !='' ">
- #{auditStatus},
- </if>
- <if test="noData !=null and noData !='' ">
- #{noData},
- </if>
- <if test="mergeOrderNo !=null and mergeOrderNo !='' ">
- #{mergeOrderNo},
- </if>
- <if test="orderNo !=null and orderNo !='' ">
- #{orderNo},
- </if>
- <if test="billingStatus !=null and billingStatus !='' ">
- #{billingStatus},
- </if>
- <if test="createTime !=null and createTime !='' ">
- #{createTime},
- </if>
- </trim>
- </insert>
- </mapper>
|