| | |
| | | <!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, |
| | | plat_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> |