|
|
@@ -1,7 +1,6 @@
|
|
|
package com.uas.platform.b2b.mobile.controller;
|
|
|
|
|
|
import com.alibaba.dubbo.common.utils.CollectionUtils;
|
|
|
-import com.uas.sso.support.Page;
|
|
|
import com.uas.platform.b2b.dao.PurchaseOrderAllDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseOrderDoneDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseOrderTodoDao;
|
|
|
@@ -26,6 +25,7 @@ import com.uas.platform.core.web.bind.RequestState;
|
|
|
import com.uas.search.b2b.model.MultiValue;
|
|
|
import com.uas.search.b2b.model.Sort;
|
|
|
import com.uas.search.b2b.util.SearchConstants;
|
|
|
+import com.uas.sso.support.Page;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
@@ -217,7 +217,7 @@ public class SaleController {
|
|
|
}
|
|
|
// 当前登录企业作为供应商
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_venduu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_status", Status.NOT_REPLY.value());
|
|
|
@@ -268,7 +268,7 @@ public class SaleController {
|
|
|
}
|
|
|
// 当前登录企业作为供应商
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_venduu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_reply", Constant.YES);
|
|
|
@@ -323,7 +323,7 @@ public class SaleController {
|
|
|
}
|
|
|
// 当前登录企业作为供应商
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_venduu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_status", Status.WAITSELLERCOMFIRM.value());
|
|
|
@@ -377,7 +377,7 @@ public class SaleController {
|
|
|
}
|
|
|
// 当前登录企业作为供应商
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_venduu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_end", Constant.YES);
|
|
|
@@ -425,7 +425,7 @@ public class SaleController {
|
|
|
}
|
|
|
// 当前登录企业作为供应商
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_venduu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_end", Constant.NO);
|
|
|
@@ -474,7 +474,7 @@ public class SaleController {
|
|
|
}
|
|
|
// 当前登录企业作为供应商
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_venduu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
List<Object> list = new ArrayList<>();
|
|
|
@@ -558,7 +558,7 @@ public class SaleController {
|
|
|
logger.log("采购单", "app查看收到的采购订单列表(包括采购明细)(全部)");
|
|
|
com.uas.search.b2b.model.PageParams pageParams = new com.uas.search.b2b.model.PageParams(page, size, new HashMap<String, Object>());
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
@@ -592,7 +592,7 @@ public class SaleController {
|
|
|
logger.log("采购单", "app查看发出的采购订单列表(包括采购明细)(待回复)");
|
|
|
com.uas.search.b2b.model.PageParams pageParams = new com.uas.search.b2b.model.PageParams(page, size, new HashMap<String, Object>());
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_status", Status.NOT_REPLY);
|
|
|
@@ -625,7 +625,7 @@ public class SaleController {
|
|
|
logger.log("采购单", "app查看收到的采购订单列表(包括采购明细)(已回复)");
|
|
|
com.uas.search.b2b.model.PageParams pageParams = new com.uas.search.b2b.model.PageParams(page, size, new HashMap<String, Object>());
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_reply", Constant.YES);
|
|
|
@@ -657,7 +657,7 @@ public class SaleController {
|
|
|
logger.log("采购单", "app查看收到的采购订单列表(包括采购明细)(已结案)");
|
|
|
com.uas.search.b2b.model.PageParams pageParams = new com.uas.search.b2b.model.PageParams(page, size, new HashMap<String, Object>());
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
pageParams.getFilters().put("pu_enuu", SystemSession.getUser().getEnterprise().getUu());
|
|
|
pageParams.getFilters().put("pu_end", Constant.YES);
|
|
|
@@ -687,7 +687,7 @@ public class SaleController {
|
|
|
logger.log("采购单", "app查看收到的采购订单列表(包括采购明细)(待交货)");
|
|
|
com.uas.search.b2b.model.PageParams pageParams = new com.uas.search.b2b.model.PageParams(page, size, new HashMap<String, Object>());
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("pu_id", false, Sort.Type.LONG, new Long(1)));
|
|
|
+ sortList.add(new Sort("pu_id", false, Sort.Type.INT, new Long(1)));
|
|
|
List<Object> list = new ArrayList<>();
|
|
|
list.add(Constant.YES);
|
|
|
list.add((short) 2); // 建索引时,将不处于已结案状态,但是货物全部交接完毕的单,end值设为了2
|