|
@@ -9,9 +9,41 @@
|
|
|
|
|
|
</parameterMap>
|
|
|
<resultMap id="rm" type="org.ajnb.vo.BiddingInfoVO">
|
|
|
-
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="title" column="title"/>
|
|
|
+ <result property="purchase_type" column="purchase_type"/>
|
|
|
+ <result property="purchase_quantity" column="purchase_quantity"/>
|
|
|
+ <result property="purchase_unit" column="purchase_unit"/>
|
|
|
+ <result property="bidding_start_time" column="bidding_start_time"/>
|
|
|
+ <result property="bidding_end_time" column="bidding_end_time"/>
|
|
|
+ <result property="supply_location" column="supply_location"/>
|
|
|
+ <result property="latest_delivery_time" column="latest_delivery_time"/>
|
|
|
+ <result property="invoice_type" column="invoice_type"/>
|
|
|
+ <result property="payment_time" column="payment_time"/>
|
|
|
+ <result property="usage_rule" column="usage_rule"/>
|
|
|
+ <result property="rule_id" column="rule_id"/>
|
|
|
+ <result property="client_name" column="client_name"/>
|
|
|
+ <result property="client_id" column="client_id"/>
|
|
|
+ <result property="price_limit_upper" column="price_limit_upper"/>
|
|
|
+ <result property="price_limit_lower" column="price_limit_lower"/>
|
|
|
+ <result property="create_time" column="create_time"/>
|
|
|
+ <result property="creator" column="creator"/>
|
|
|
+ <result property="rest_time" column="rest_time"/>
|
|
|
+ <result property="bidding_status" column="bidding_status"/>
|
|
|
+ <result property="bidding_supplier_id" column="bidding_supplier_id"/>
|
|
|
+ <result property="bidding_supplier_name" column="bidding_supplier_name"/>
|
|
|
+ <result property="bidding_price" column="bidding_price"/>
|
|
|
</resultMap>
|
|
|
-
|
|
|
+ <insert id="addBiddingInfo">
|
|
|
+ insert into BiddingInfo (title, purchase_type, purchase_quantity, purchase_unit, bidding_start_time,
|
|
|
+ bidding_end_time, supply_location, latest_delivery_time, invoice_type, payment_time,
|
|
|
+ usage_rule, rule_id, client_name, client_id, price_limit_upper, price_limit_lower, create_time,
|
|
|
+ creator, rest_time, bidding_status, bidding_supplier_id, bidding_supplier_name, bidding_price)
|
|
|
+ values (#{title}, #{purchase_type}, #{purchase_quantity}, #{purchase_unit}, #{bidding_start_time},
|
|
|
+ #{bidding_end_time}, #{supply_location}, #{latest_delivery_time}, #{invoice_type}, #{payment_time},
|
|
|
+ #{usage_rule}, #{rule_id}, #{client_name}, #{client_id}, #{price_limit_upper}, #{price_limit_lower}, NOW(),
|
|
|
+ #{creator}, #{rest_time}, #{bidding_status}, #{bidding_supplier_id}, #{bidding_supplier_name}, #{bidding_price});
|
|
|
+ </insert>
|
|
|
<select id="queryBiddingInfoById" resultMap="rm">
|
|
|
select * from BiddingInfo where id = #{id}
|
|
|
</select>
|