Jelajahi Sumber

平台UI首页左侧列表数量更改

hejq 8 tahun lalu
induk
melakukan
ff50267399

+ 1 - 1
src/main/java/com/uas/platform/b2b/service/impl/PurchaseInquiryServiceImpl.java

@@ -726,7 +726,7 @@ public class PurchaseInquiryServiceImpl implements PurchaseInquiryService {
 	public List<InquiryMessage> getMessageList() {
 		String sql = "select * from (select p.id_id id,p.id_prid productId from purc$puinquiryitems p left join purc$puinquiry i on i.in_id = p.id_inid where i.in_isopen = 1 and i.in_enuu <> "
 				+ SystemSession.getUser().getEnterprise().getUu()
-				+ "and i.in_enddate > trunc(sysdate) and nvl(p.id_overdue, 0) <> 1 order by id_id desc) where rownum < 6";
+				+ "and i.in_enddate > trunc(sysdate) and nvl(p.id_overdue, 0) <> 1 order by id_id desc) where rownum <= 7";
 		List<PurcInquiryItem> items = commonDao.query(sql, PurcInquiryItem.class);
 		List<InquiryMessage> messages = new ArrayList<InquiryMessage>();
 		if (!CollectionUtils.isEmpty(items)) {

+ 1 - 1
src/main/webapp/resources/js/index/app.js

@@ -1821,7 +1821,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         });
     }]);
     app.controller('NoticeCtrl', ['$scope', 'SnapshotService', function ($scope, SnapshotService) {
-        SnapshotService.getNotice(5, function (data) {	//5表示首页显示的公告条数
+        SnapshotService.getNotice(7, function (data) {	//5表示首页显示的公告条数
             $scope.notices = data;
         });