@Select("SELECT * FROM `outbound_record` WHERE `mailNo` = #{mailNo};")
@Select("SELECT * FROM `outbound_record` WHERE (`mailNo` = #{mailNo} OR #{mailNo}='') AND (`orderCode` = #{orderCode} OR #{orderCode}='') AND `created` >= #{createdStart} AND `created` < #{createdEnd} ;")
@Select("SELECT uid,mailNo,orderCode,created,creator FROM `outbound_record` WHERE (`mailNo` = #{mailNo} OR #{mailNo}='') AND (`orderCode` = #{orderCode} OR #{orderCode}='') AND `created` >= #{createdStart} AND `created` < #{createdEnd} ORDER BY `uid` DESC;")
@@ -46,4 +50,13 @@ public interface StorageMapper extends BaseMapper<StorageEntity> {
...
@@ -46,4 +50,13 @@ public interface StorageMapper extends BaseMapper<StorageEntity> {
@Select("SELECT COUNT(*) FROM `storage` WHERE `place` IS NOT NULL;")
@Select("SELECT COUNT(*) FROM `storage` WHERE `place` IS NOT NULL;")
LongcountOned();
LongcountOned();
@Select("SELECT uid,mailNo,code,place,created,logisticsOrderCode,num,total,buyerCode FROM `storage` WHERE place IS NULL AND (`mailNo` = #{mailNo} OR #{mailNo}='') AND (`code` = #{code} OR #{code}='') ORDER BY `uid` DESC;")
@Select("SELECT uid,mailNo,code,place,created,logisticsOrderCode,num,total,buyerCode FROM `storage` WHERE (`mailNo` = #{mailNo} OR #{mailNo}='') AND (`code` = #{code} OR #{code}='') ORDER BY `uid` DESC LIMIT #{offset}, #{size};")