增加代码检测,和映射
This commit is contained in:
@@ -107,4 +107,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
WHERE rn > #{startRow}
|
||||
</select>
|
||||
|
||||
<!-- Distinct product codes under the same filters (no pagination). -->
|
||||
<select id="selectTabOrderProductCodes" resultType="java.util.HashMap">
|
||||
SELECT o.CUSTOMER_CODE AS CUSTOMER_CODE,
|
||||
o.PRODUCT_CODE AS PRODUCT_CODE,
|
||||
MAX(o.PRODUCT_NAME) AS PRODUCT_NAME,
|
||||
COUNT(1) AS ORDER_COUNT
|
||||
FROM ${orderTable} o
|
||||
WHERE
|
||||
<include refid="tabOrderMonitorWhere"/>
|
||||
AND o.PRODUCT_CODE IS NOT NULL
|
||||
GROUP BY o.CUSTOMER_CODE, o.PRODUCT_CODE
|
||||
ORDER BY o.CUSTOMER_CODE, o.PRODUCT_CODE
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user