@@ -29,7 +29,7 @@ public interface StorageMapper extends BaseMapper<StorageEntity> {
@Select("SELECT COUNT(`uid`) FROM `storage` WHERE `code` = #{code}")
intfindAllCount(@Param("code")Stringcode);
@Select("SELECT SUM(IFNULL(`total`, 0) - IFNULL(`num`, 0)) FROM `storage` WHERE `num` <> `total` AND `code` = #{code} GROUP BY `logisticsOrderCode`")
@Select("SELECT SUM(IFNULL(`total`, 0) - IFNULL(`num`, 0)) FROM( SELECT `total`, `num` FROM `storage` WHERE `num` <> `total` AND `code` = #{code} GROUP BY `logisticsOrderCode`) t")
IntegerfindReNumCount(@Param("code")Stringcode);
@Select("SELECT `code` FROM `storage` WHERE `mailNo` = #{mailNo}")