Commit 5954c0fc by 陶光胜

门店控件查询

parent f810151c
......@@ -54,6 +54,10 @@ public class GoDownComponent {
private ClerkApiService clerkApiService;
public void parseTotal(ServiceResponse<?> response, BaseSalesVo vo){
parseTotal(response, vo, "合计");
}
public void parseTotal(ServiceResponse<?> response, BaseSalesVo vo, String title){
if(response.isSuccess() && response.getResult() != null){
Page<BaseDTO> page = (Page<BaseDTO>) response.getResult();
if(CollectionUtils.isEmpty(page.getResult())){
......@@ -62,9 +66,9 @@ public class GoDownComponent {
BaseDTO total = page.getResult().get(0);
if(total != null){
total.setAreaId("0");
total.setAreaName("合计/均值");
total.setAreaName(title);
total.setId("0");
total.setName("合计/均值");
total.setName(title);
vo.setTotal(total);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment