|
|
@@ -188,7 +188,7 @@
|
|
188
|
188
|
</select>
|
|
189
|
189
|
|
|
190
|
190
|
<select id="countSeizeSubjectCategoryQuantity" parameterType="com.sundot.airport.ledger.domain.vo.CountQueryReqVO" resultType="com.sundot.airport.ledger.domain.vo.SeizeCategoryQuantityVO">
|
|
191
|
|
- SELECT item_name AS itemName, IFNULL(SUM(item_quantity), 0) AS itemNum
|
|
|
191
|
+ SELECT item_category AS categoryName, IFNULL(SUM(item_quantity), 0) AS categoryNum
|
|
192
|
192
|
FROM ledger_seizure_stats
|
|
193
|
193
|
WHERE
|
|
194
|
194
|
del_flag = '0'
|
|
|
@@ -198,9 +198,9 @@
|
|
198
|
198
|
<if test="teamId != null">AND team_id = #{teamId}</if>
|
|
199
|
199
|
<if test="groupId != null">AND group_id = #{groupId}</if>
|
|
200
|
200
|
<!-- 过滤空类别,避免脏数据 -->
|
|
201
|
|
- AND item_name IS NOT NULL
|
|
202
|
|
- AND item_name != ''
|
|
203
|
|
- GROUP BY item_name
|
|
|
201
|
+ AND item_category IS NOT NULL
|
|
|
202
|
+ AND item_category != ''
|
|
|
203
|
+ GROUP BY item_category
|
|
204
|
204
|
ORDER BY categoryNum DESC
|
|
205
|
205
|
</select>
|
|
206
|
206
|
|