|
@@ -3,6 +3,7 @@ package com.iamberry.rst.controllers.cm;
|
|
|
import com.iamberry.rst.core.cm.*;
|
|
|
import com.iamberry.rst.core.order.Order;
|
|
|
import com.iamberry.rst.core.order.Product;
|
|
|
+import com.iamberry.rst.core.order.ProductType;
|
|
|
import com.iamberry.rst.core.order.RentType;
|
|
|
import com.iamberry.rst.core.page.PageRequest;
|
|
|
import com.iamberry.rst.core.page.PagedResult;
|
|
@@ -114,9 +115,9 @@ public class AdminDetectController {
|
|
|
url.append("&detectFailureClassification=").append(detectInfo.getDetectFailureClassification());
|
|
|
mv.addObject("detectFailureClassification",detectInfo.getDetectFailureClassification());
|
|
|
}
|
|
|
- if (detectInfo.getDetectProductType() != null && detectInfo.getDetectProductType() != -1) {
|
|
|
- url.append("&detectProductType=").append(detectInfo.getDetectProductType());
|
|
|
- mv.addObject("detectProductType",detectInfo.getDetectProductType());
|
|
|
+ if (detectInfo.getProductTypeId() != null && detectInfo.getProductTypeId() != -1) {
|
|
|
+ url.append("&productTypeId=").append(detectInfo.getProductTypeId());
|
|
|
+ mv.addObject("productTypeId",detectInfo.getProductTypeId());
|
|
|
}
|
|
|
|
|
|
// 封装请求数据
|
|
@@ -130,7 +131,10 @@ public class AdminDetectController {
|
|
|
total = pageTotal;
|
|
|
result.setPages(total);
|
|
|
}
|
|
|
-
|
|
|
+ //获取所有产品类型
|
|
|
+ ProductType productType = new ProductType();
|
|
|
+ List<ProductType> productTypeList = productService.listProductType(productType);
|
|
|
+ mv.addObject("productTypeList",productTypeList);
|
|
|
url.append("&pageTotal=").append(total).append("&pageNO=");
|
|
|
mv.addObject("page", result);
|
|
|
mv.addObject("url", url.toString());
|