|
@@ -54,9 +54,9 @@ public class MaterialInfoServiceImpl implements MaterialInfoService {
|
54
|
54
|
|
55
|
55
|
|
56
|
56
|
@Override
|
57
|
|
- public Page<MaterialInfo> pageQuery(String name, Integer page, Integer pageSize) {
|
|
57
|
+ public Page<MaterialInfo> pageQuery(String name, Integer page, Integer pageSize, Integer materialType) {
|
58
|
58
|
Pageable pageable = PageRequest.of(page, pageSize);
|
59
|
|
- return materialInfoRepository.pageQuery(name, pageable);
|
|
59
|
+ return materialInfoRepository.pageQuery(name, materialType, pageable);
|
60
|
60
|
}
|
61
|
61
|
|
62
|
62
|
@Transactional
|
|
@@ -96,7 +96,7 @@ public class MaterialInfoServiceImpl implements MaterialInfoService {
|
96
|
96
|
}
|
97
|
97
|
if (!materialMap.containsKey(modelFileName.substring(0, modelFileName.lastIndexOf(".")))) {
|
98
|
98
|
materialInfoList.add(new MaterialInfo(null, modelFileName.substring(0, modelFileName.lastIndexOf(".")), modelPath.substring(1),
|
99
|
|
- modelPath.replace("model", "icon").replace("json", "png").substring(1), modelFileName, new Date()));
|
|
99
|
+ modelPath.replace("model", "icon").replace("json", "png").substring(1), modelFileName, 1, new Date()));
|
100
|
100
|
} else {
|
101
|
101
|
MaterialInfo materialInfo = materialMap.get(modelFileName.substring(0, modelFileName.lastIndexOf(".")));
|
102
|
102
|
materialInfo.setMaterialIcon(modelPath.replace("model", "icon").replace("json", "png").substring(1));
|