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
| <?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.vincent.rsf.server.manager.mapper.PurchaseMapper">
|
| <select id="poList" resultType="com.vincent.rsf.server.api.entity.dto.PoItemsDto">
| SELECT
| id,
| purchase_id,
| erp_item_id,
| matnr_code,
| matnr_name,
| unit,
| anfme
| FROM
| man_purchase_item mpi
| WHERE
| id IN ( SELECT po_detl_id FROM man_asn_order_item
| <where>
| 1 = 1
| <if test="ids != null and ids.size() > 0">
| <foreach collection="ids" index="index" item="item" separator="," open="AND asn_id IN (" close=")">
| #{item}
| </foreach>
| </if>
| </where>
| )
| </select>
| </mapper>
|
|