|
@@ -6,7 +6,11 @@ import com.qmth.distributed.print.business.bean.result.FlowApproveListResult;
|
|
import com.qmth.distributed.print.business.entity.TFFlowApprove;
|
|
import com.qmth.distributed.print.business.entity.TFFlowApprove;
|
|
import com.qmth.distributed.print.business.mapper.TFFlowApproveMapper;
|
|
import com.qmth.distributed.print.business.mapper.TFFlowApproveMapper;
|
|
import com.qmth.distributed.print.business.service.TFFlowApproveService;
|
|
import com.qmth.distributed.print.business.service.TFFlowApproveService;
|
|
|
|
+import com.qmth.teachcloud.common.bean.dto.DataPermissionRule;
|
|
|
|
+import com.qmth.teachcloud.common.entity.SysUser;
|
|
import com.qmth.teachcloud.common.enums.FlowStatusEnum;
|
|
import com.qmth.teachcloud.common.enums.FlowStatusEnum;
|
|
|
|
+import com.qmth.teachcloud.common.service.BasicRoleDataPermissionService;
|
|
|
|
+import com.qmth.teachcloud.common.util.ServletUtil;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -24,6 +28,9 @@ import java.util.Objects;
|
|
@Service
|
|
@Service
|
|
public class TFFlowApproveServiceImpl extends ServiceImpl<TFFlowApproveMapper, TFFlowApprove> implements TFFlowApproveService {
|
|
public class TFFlowApproveServiceImpl extends ServiceImpl<TFFlowApproveMapper, TFFlowApprove> implements TFFlowApproveService {
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private BasicRoleDataPermissionService basicRoleDataPermissionService;
|
|
|
|
+
|
|
@Resource
|
|
@Resource
|
|
TFFlowApproveMapper tfFlowApproveMapper;
|
|
TFFlowApproveMapper tfFlowApproveMapper;
|
|
|
|
|
|
@@ -54,6 +61,8 @@ public class TFFlowApproveServiceImpl extends ServiceImpl<TFFlowApproveMapper, T
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public IPage<FlowApproveListResult> findApproveList(IPage<Map> iPage,Long semesterId, Long examId, String courseCode, String paperNumber, FlowStatusEnum status, String teacherUserName, Long teachingRoomId, Long startTime, Long endTime, String pendApproveUserName, Long schoolId, Long orgId) {
|
|
public IPage<FlowApproveListResult> findApproveList(IPage<Map> iPage,Long semesterId, Long examId, String courseCode, String paperNumber, FlowStatusEnum status, String teacherUserName, Long teachingRoomId, Long startTime, Long endTime, String pendApproveUserName, Long schoolId, Long orgId) {
|
|
|
|
+ SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
|
+ DataPermissionRule dpr = basicRoleDataPermissionService.findDataPermission(schoolId, requestUser.getId(), ServletUtil.getRequest().getServletPath());
|
|
return tfFlowApproveMapper.findApproveList(iPage,
|
|
return tfFlowApproveMapper.findApproveList(iPage,
|
|
semesterId,
|
|
semesterId,
|
|
examId,
|
|
examId,
|
|
@@ -66,6 +75,7 @@ public class TFFlowApproveServiceImpl extends ServiceImpl<TFFlowApproveMapper, T
|
|
endTime,
|
|
endTime,
|
|
pendApproveUserName,
|
|
pendApproveUserName,
|
|
schoolId,
|
|
schoolId,
|
|
- orgId);
|
|
|
|
|
|
+ orgId,
|
|
|
|
+ dpr);
|
|
}
|
|
}
|
|
}
|
|
}
|