|
@@ -5,13 +5,45 @@
|
|
|
|
|
|
<mapper namespace="org.ajnb.mapper.BiddingInfoMapper">
|
|
|
|
|
|
- <parameterMap id="pm" type="org.ajnb.vo.BiddingInfoVO"></parameterMap>
|
|
|
- <resultMap id="rm" type="org.ajnb.vo.BiddingInfoVO"></resultMap>
|
|
|
+ <parameterMap id="pm" type="org.ajnb.vo.BiddingInfoVO">
|
|
|
+
|
|
|
+ </parameterMap>
|
|
|
+ <resultMap id="rm" type="org.ajnb.vo.BiddingInfoVO">
|
|
|
+
|
|
|
+ </resultMap>
|
|
|
|
|
|
<select id="queryBiddingInfoById" resultMap="rm">
|
|
|
select * from BiddingInfo where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="queryAllBiddingInfo" resultMap="rm">
|
|
|
+ select * from BiddingInfo
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="queryBiddingInfoByMultCondition" resultMap="rm">
|
|
|
+ select * from BiddingInfo
|
|
|
+ <where>
|
|
|
+ <if test="title != null and title != ''">
|
|
|
+ title LIKE CONCAT('%', #{title}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="bidding_start_time != null and bidding_end_time != null and bidding_start_time != '' and bidding_end_time != ''">
|
|
|
+ and (Date(bidding_start_time) >= #{bidding_start_time} and Date(bidding_end_time) <= #{bidding_end_time})
|
|
|
+ </if>
|
|
|
+ <if test="invoice_type != null and invoice_type != ''">
|
|
|
+ and invoice_type = #{invoice_type}
|
|
|
+ </if>
|
|
|
+ <if test="payment_time != null and payment_time != ''">
|
|
|
+ and Date(payment_time) = #{payment_time}
|
|
|
+ </if>
|
|
|
+ <if test="bidding_status != null and bidding_status != ''">
|
|
|
+ and bidding_status = #{bidding_status}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
|
|
|
+ <delete id="deleteBiddingInfoById" parameterMap="pm">
|
|
|
+ delete from BiddingInfo where id = #{id}
|
|
|
+ </delete>
|
|
|
|
|
|
</mapper>
|