|
@@ -99,4 +99,21 @@
|
|
|
GROUP BY spare_id
|
|
|
ORDER BY totalNum DESC
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getDetails" parameterType="com.platform.dao.dto.longyanpurchaseorder.LongYanPurchaseDetailDTO"
|
|
|
+ resultType="com.platform.dao.vo.query.longyanpurchaseorder.LongYanPurchaseDetailVO">
|
|
|
+ SELECT menu.*,CONCAT(info.position_no,',',info.name) AS sbInfo
|
|
|
+ FROM t_long_yan_purchase_detail detail LEFT JOIN t_long_yan_purchase_order `order`
|
|
|
+ ON order.id = detail.long_yang_purchase_order_id
|
|
|
+ LEFT JOIN t_sb_info info ON info.id = order.sb_id
|
|
|
+ <where>
|
|
|
+ <include refid="List_Condition" />
|
|
|
+ <if test="sbName!=null and sbName!=null">
|
|
|
+ and info.name like concat('%',#{sbName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="positionNo!=null and positionNo!=null">
|
|
|
+ and info.position_no like concat('%',#{positionNo},'%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|