|
|
@ -2,9 +2,11 @@ |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.yxt.supervise.cyf.biz.finishproductinventory.FinishProductInventoryMapper"> |
|
|
|
<select id="selectPageVo" resultType="com.yxt.supervise.cyf.api.finishproductinventory.FinishProductInventoryVo"> |
|
|
|
select p.*,i.name,i.number InformationNumber |
|
|
|
select p.*,t.name typeName,t.number typeNumber,i.name InformationName,i.number InformationNumber,pt.name prodName,pt.number prodNumber |
|
|
|
from finish_product_inventory p |
|
|
|
inner join product_information i on p.prodSid = i.sid |
|
|
|
left join product_type t on p.prodSid = t.sid |
|
|
|
inner join product_type pt on pt.sid = t.pSid |
|
|
|
left join product_information i on i.sid = pt.prodSid |
|
|
|
<where> |
|
|
|
${ew.sqlSegment} |
|
|
|
</where> |
|
|
@ -13,4 +15,8 @@ |
|
|
|
<select id="selectPriceByProdSid" resultType="com.yxt.supervise.cyf.api.finishproductinventory.FinishProductInventory"> |
|
|
|
select * from finish_product_inventory where prodSid = #{prodSid} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectByProdSid" resultType="int"> |
|
|
|
select count(*) from finish_product_inventory where prodSid = #{prodSid} |
|
|
|
</select> |
|
|
|
</mapper> |