| | |
| | | queryWrapper.selectAll(InoutRecord.class) |
| | | .eq(InoutRecord::getIsdeleted,Constants.ZERO) |
| | | // .eq(Objects.nonNull(model.getType()),InoutRecord::getType, model.getType()) |
| | | .isNotNull(Objects.nonNull(model.getType())&&Constants.equalsInteger(model.getType(),Constants.ZERO),model.getCarCode()) |
| | | .isNotNull(Objects.nonNull(model.getType())&&Constants.equalsInteger(model.getType(),Constants.ONE),model.getMemberPhone()) |
| | | .isNotNull(Objects.nonNull(model.getType())&&Constants.equalsInteger(model.getType(),Constants.ZERO),InoutRecord::getCarCode) |
| | | .isNotNull(Objects.nonNull(model.getType())&&Constants.equalsInteger(model.getType(),Constants.ONE),InoutRecord::getMemberPhone) |
| | | .eq(Objects.nonNull(model.getInOrOut()),InoutRecord::getInOrOut, model.getInOrOut()) |
| | | .eq(Objects.nonNull(model.getObjType()),InoutRecord::getObjType, model.getObjType()) |
| | | .eq(Objects.nonNull(model.getCarBizType()),InoutRecord::getCarBizType, model.getCarBizType()) |
| | |
| | | public List<List<String>> dealResultData(List<InoutRecord> allList,List<String> dataList ,Integer type,String dateStr){ |
| | | List<List<String>> resultList = new ArrayList<>(); |
| | | List<String> totalString = new ArrayList<>(); |
| | | totalString.add("日期"); |
| | | totalString.add("数据日期"); |
| | | if(Constants.equalsInteger(type,Constants.ZERO)){ |
| | | List<String> categoryNameList = allList.stream().filter(j-> StringUtils.isNotBlank(j.getCategoryName())).map(j->j.getCategoryName()).collect(Collectors.toList()); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isEmpty(categoryNameList)){ |
| | |
| | | } |
| | | return resultList; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public List<InoutRecord> getListByType(List<InoutRecord> list,Integer type){ |