|
@@ -289,6 +289,7 @@ public class MaterialInfoController {
|
|
public Map<String, Object> queryPageList(String type, Integer status, Long productId, String materialName, String code,
|
|
public Map<String, Object> queryPageList(String type, Integer status, Long productId, String materialName, String code,
|
|
String startDate, String endDate, String tagCode,
|
|
String startDate, String endDate, String tagCode,
|
|
@RequestParam(name = "projectId", required = false) Long projectId,
|
|
@RequestParam(name = "projectId", required = false) Long projectId,
|
|
|
|
+ @RequestParam(name = "offlineFlag", required = false) Integer offlineFlag,
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
@@ -304,7 +305,7 @@ public class MaterialInfoController {
|
|
productIds = new ArrayList<>();
|
|
productIds = new ArrayList<>();
|
|
productIds.add(productId);
|
|
productIds.add(productId);
|
|
}
|
|
}
|
|
- return materialInfoService.getListByParams(projectId, tagCode, type, status, productIds, materialName, code, startDate, endDate, null, pageNo, pageSize);
|
|
|
|
|
|
+ return materialInfoService.getListByParams(projectId, tagCode, type, status, productIds, materialName, code, startDate, endDate, null, offlineFlag, pageNo, pageSize);
|
|
} else if ("designTeamLeader".equals(roleCode) || "planeLeader".equals(roleCode) || "plane".equals(roleCode) || "plan".equals(roleCode) || "shot".equals(roleCode)) {
|
|
} else if ("designTeamLeader".equals(roleCode) || "planeLeader".equals(roleCode) || "plane".equals(roleCode) || "plan".equals(roleCode) || "shot".equals(roleCode)) {
|
|
//查询自己所在项目下的数据
|
|
//查询自己所在项目下的数据
|
|
if (null == productId || productId == 0) {
|
|
if (null == productId || productId == 0) {
|
|
@@ -314,14 +315,14 @@ public class MaterialInfoController {
|
|
productIds = new ArrayList<>();
|
|
productIds = new ArrayList<>();
|
|
productIds.add(productId);
|
|
productIds.add(productId);
|
|
}
|
|
}
|
|
- return materialInfoService.getListByParams(projectId, tagCode, type, status, productIds, materialName, code, startDate, endDate, null, pageNo, pageSize);
|
|
|
|
|
|
+ return materialInfoService.getListByParams(projectId, tagCode, type, status, productIds, materialName, code, startDate, endDate, null, offlineFlag, pageNo, pageSize);
|
|
} else {
|
|
} else {
|
|
//查询自己上传的视频
|
|
//查询自己上传的视频
|
|
if (null != productId && productId != 0) {
|
|
if (null != productId && productId != 0) {
|
|
productIds = new ArrayList<>();
|
|
productIds = new ArrayList<>();
|
|
productIds.add(productId);
|
|
productIds.add(productId);
|
|
}
|
|
}
|
|
- return materialInfoService.getListByParams(projectId, tagCode, type, status, productIds, materialName, code, startDate, endDate, userId, pageNo, pageSize);
|
|
|
|
|
|
+ return materialInfoService.getListByParams(projectId, tagCode, type, status, productIds, materialName, code, startDate, endDate, userId, offlineFlag, pageNo, pageSize);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|