|
@@ -53,26 +53,24 @@ public class ApiController {
|
|
|
|
|
|
@RequestMapping(value = "getInOutRecord")
|
|
|
public AjaxJson getInOutRecord(){
|
|
|
- //
|
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
|
String currentCustomerId = StpUserUtil.getCustomerId();
|
|
|
if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
|
|
|
so.put("customerId",currentCustomerId);
|
|
|
}
|
|
|
- List<InOutRecordBO> recordList = apiService.getInOutRecord(so);
|
|
|
- return AjaxJson.getSuccessData(recordList);
|
|
|
+ List<InOutRecordBO> recordList = apiService.getInOutRecord(so.startPage());
|
|
|
+ return AjaxJson.getPageData(so.getDataCount(), recordList);
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getCustomerList")
|
|
|
- //
|
|
|
public AjaxJson getCustomerList(){
|
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
|
String currentCustomerId = StpUserUtil.getCustomerId();
|
|
|
if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
|
|
|
so.put("id",currentCustomerId);
|
|
|
}
|
|
|
- List<TbCostomer> list = apiService.getCustomerList(so);
|
|
|
- return AjaxJson.getSuccessData(list);
|
|
|
+ List<TbCostomer> list = apiService.getCustomerList(so.startPage());
|
|
|
+ return AjaxJson.getPageData(so.getDataCount(), list);
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "confirmCustomer")
|
|
@@ -81,4 +79,6 @@ public class ApiController {
|
|
|
return AjaxJson.getSuccess();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|