Browse Source

套系分页显示藏品数量

zyf12 2 years ago
parent
commit
d8e2d57f46

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PostCollectionsSystemController.java

@@ -5,6 +5,7 @@ import java.util.List;
 import javax.servlet.http.HttpServletResponse;
 
 import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.system.domain.vo.CollectionsVo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.security.access.prepost.PreAuthorize;
@@ -42,7 +43,7 @@ public class PostCollectionsSystemController extends BaseController
     public TableDataInfo list(PostCollectionsSystem postCollectionsSystem)
     {
         startPage();
-        List<PostCollectionsSystem> list = postCollectionsSystemService.selectPostCollectionsSystemList(postCollectionsSystem);
+        List<CollectionsVo> list = postCollectionsSystemService.selectPostCollectionsSystemListPage(postCollectionsSystem);
         return getDataTable(list);
     }
 
@@ -94,7 +95,6 @@ public class PostCollectionsSystemController extends BaseController
         }
 
 
-
         return toAjax(postCollectionsSystemService.insertPostCollectionsSystem(postCollectionsSystem));
     }
 

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PostCollectionsSystemMapper.java

@@ -61,6 +61,7 @@ public interface PostCollectionsSystemMapper
      */
     public int deletePostCollectionsSystemByIds(Long[] ids);
 
+
     //套系搜索功能
     List<PostCollectionsSystem> selectPostListByTitleOrTime(@Param("title") String title,
                                                             @Param("timeLeft") Date timeLeft,

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IPostCollectionsSystemService.java

@@ -15,6 +15,7 @@ import com.ruoyi.system.domain.vo.CollectionsVo;
  */
 public interface IPostCollectionsSystemService
 {
+
     /**
      * 查询藏品套系
      *

+ 1 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PostCollectionsSystemServiceImpl.java

@@ -24,6 +24,7 @@ import static com.ruoyi.common.utils.SecurityUtils.getUsername;
 @Service
 public class PostCollectionsSystemServiceImpl implements IPostCollectionsSystemService
 {
+
     @Autowired
     private PostCollectionsSystemMapper postCollectionsSystemMapper;
 

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/PostCollectionsSystemMapper.xml

@@ -117,6 +117,7 @@
         </where>
     </select>
 
+
     <select id="getCopiesById" parameterType="Long" resultType="Integer">
        SELECT SUM(collections_number) FROM post_collections where system_id = #{id}
     </select>