|
@@ -450,7 +450,8 @@ public class MaterialTaskServiceImpl extends MPJBaseServiceImpl<MaterialTaskMapp
|
|
|
.disableSubLogicDel()
|
|
|
.distinct()
|
|
|
.select(MaterialTaskAssign::getId)
|
|
|
- .selectAs(MaterialTaskAppendix::getFileId, MaterialTaskAssignListVo::getFolderId)
|
|
|
+ .selectAs(MaterialTaskAppendix::getFileId, MaterialTaskAssignListVo::getFileId)
|
|
|
+ .selectAs(File::getFolderId, MaterialTaskAssignListVo::getFolderId)
|
|
|
.selectAs(MaterialTaskAppendix::getFileId, MaterialTaskAssignListVo::getFormDataId)
|
|
|
.selectAs(MaterialTask::getMaterialCategory, MaterialTaskAssignListVo::getMaterialCategory)
|
|
|
.select(XjrUser.class, x -> VoToColumnUtil.fieldsToColumns(MaterialTaskAssignListVo.class).contains(x.getProperty()))
|
|
@@ -460,6 +461,7 @@ public class MaterialTaskServiceImpl extends MPJBaseServiceImpl<MaterialTaskMapp
|
|
|
.leftJoin(Department.class, Department::getId, UserDeptRelation::getDeptId, ext -> ext.selectAs(Department::getName, MaterialTaskAssignListVo::getDeptName))
|
|
|
.leftJoin(MaterialTask.class, MaterialTask::getId, MaterialTaskAssign::getMaterialTaskId)
|
|
|
.leftJoin(MaterialTaskAppendix.class, MaterialTaskAppendix::getMaterialTaskId, MaterialTaskAssign::getId)
|
|
|
+ .leftJoin(File.class, File::getId, MaterialTaskAppendix::getFileId)
|
|
|
.like(dto.getName() != null && !"".equals(dto.getName()), XjrUser::getName, dto.getName())
|
|
|
.eq(MaterialTaskAssign::getMaterialTaskId, dto.getMaterialTaskId())
|
|
|
.eq(dto.getState() != null, MaterialTaskAssign::getStatus, dto.getState())
|