Commit fbd96132 authored by Allen Chen's avatar Allen Chen

修改Bug

parent 17b227c5
...@@ -29,7 +29,7 @@ public interface StorageMapper extends BaseMapper<StorageEntity> { ...@@ -29,7 +29,7 @@ public interface StorageMapper extends BaseMapper<StorageEntity> {
@Select("SELECT COUNT(`uid`) FROM `storage` WHERE `code` = #{code}") @Select("SELECT COUNT(`uid`) FROM `storage` WHERE `code` = #{code}")
int findAllCount(@Param("code") String code); int findAllCount(@Param("code") String code);
@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")
Integer findReNumCount(@Param("code") String code); Integer findReNumCount(@Param("code") String code);
@Select("SELECT `code` FROM `storage` WHERE `mailNo` = #{mailNo}") @Select("SELECT `code` FROM `storage` WHERE `mailNo` = #{mailNo}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment