27 lines
1.2 KiB
XML
27 lines
1.2 KiB
XML
|
|
<?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="com.ruoyi.system.mapper.bid.BizRfqItemMapper">
|
||
|
|
<resultMap id="BaseRM" type="com.ruoyi.system.domain.bid.BizRfqItem">
|
||
|
|
<id property="itemId" column="item_id"/>
|
||
|
|
<result property="rfqId" column="rfq_id"/>
|
||
|
|
<result property="materialId" column="material_id"/>
|
||
|
|
<result property="materialName" column="material_name"/>
|
||
|
|
<result property="spec" column="spec"/>
|
||
|
|
<result property="unit" column="unit"/>
|
||
|
|
<result property="quantity" column="quantity"/>
|
||
|
|
<result property="expectedPrice" column="expected_price"/>
|
||
|
|
<result property="remark" column="remark"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<select id="selectItemsByRfqId" resultMap="BaseRM">
|
||
|
|
SELECT * FROM biz_rfq_item WHERE rfq_id=#{rfqId}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<insert id="insertBizRfqItem" useGeneratedKeys="true" keyProperty="itemId">
|
||
|
|
INSERT INTO biz_rfq_item(rfq_id,material_id,material_name,spec,unit,quantity,expected_price,remark)
|
||
|
|
VALUES(#{rfqId},#{materialId},#{materialName},#{spec},#{unit},#{quantity},#{expectedPrice},#{remark})
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<delete id="deleteByRfqId">DELETE FROM biz_rfq_item WHERE rfq_id=#{rfqId}</delete>
|
||
|
|
</mapper>
|