20 lines
626 B
XML
20 lines
626 B
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._3e.dao.GoodsDao">
|
|
<select id= "findGoodsByID" parameterType="int" resultType="com._3e.entity.Goods" >
|
|
SELECT * FROM goods WHERE goodsid = #{goodsid}
|
|
</select>
|
|
|
|
<select id="seriesgoodsnames" parameterType="java.util.List" resultType="String">
|
|
SELECT string_agg( goodsname , ',' )
|
|
FROM Goods
|
|
WHERE goodsId in
|
|
<foreach collection="list" index="index" item="item" separator="," close=")" open="(">
|
|
#{item}
|
|
</foreach>
|
|
</select>
|
|
|
|
</mapper>
|