| | |
| | | if(StringUtils.isEmpty(param.getDeptId())){ |
| | | param.setDeptId(param.getCompanyId()); |
| | | } |
| | | if(StringUtils.isNotEmpty(param.getDeptId()) && StringUtils.isNotEmpty(param.getCompanyId())){ |
| | | String substring = param.getDeptId().substring(0, (param.getDeptId().length() - 3)); |
| | | if (!substring.equals(param.getCompanyId())){ |
| | | return new ArrayList<InoutRecord>(); |
| | | } |
| | | } |
| | | param.setCompanyId(null); |
| | | inoutReportService.listPageInout(corePage, param); |
| | | //获取查询到得list数据 |
| | |
| | | int index = 1; |
| | | List<InoutRecord> list = new ArrayList<>(); |
| | | for (InoutRecord record : result) { |
| | | list.add(record); |
| | | record.setRemarks(String.valueOf(index)); |
| | | if(StringUtils.isNotBlank(record.getDeptId())){ |
| | | record.setCompanyId(record.getDeptId().substring(0,(record.getDeptId().length()-3))); |
| | | } |
| | | list.add(record); |
| | | record.setRemarks(String.valueOf(index)); |
| | | emptyWeightSum += record.getEmptyWeight(); |
| | | fullWeightSum += record.getFullWeight(); |
| | | deOtherSum += record.getDeOther(); |