1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| <?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.gkhy.exam.system.mapper.PurchaseApplyPlanMapper">
| <insert id="insertPlans">
| INSERT INTO `purchase_apply_plan` ( `apply_id`, `name`, `model`, `supplier`, `amount`, `money`, `type` )
| VALUES
| <foreach collection="purchaseApplyPlans" item="item" separator=",">
| ( #{item.applyId}, #{item.name}, #{item.model}, #{item.supplier}, #{item.amount}, #{item.money}, #{item.type} )
| </foreach>
| </insert>
| <delete id="deletedByIds">
| delete from purchase_apply_plan where apply_id =#{id}
| </delete>
|
|
| <select id="selectByApplyId" resultType="com.gkhy.exam.system.domain.PurchaseApplyPlan">
| SELECT
| `id`,
| `apply_id`,
| `name`,
| `model`,
| `supplier`,
| `amount`,
| `money`,
| `type`
| FROM
| `purchase_apply_plan`
| WHERE apply_id = #{id}
| </select>
| </mapper>
|
|