diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/FloweController.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/FloweController.java index d0018cdf..490fba93 100644 --- a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/FloweController.java +++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/FloweController.java @@ -226,7 +226,6 @@ public class FloweController extends BaseController { FlowLabourInfo where = new FlowLabourInfo(); if(deptId<=0){ if (SecurityUtils.isUserB()) { - where.setNowRole(Convert.toStr(SecurityUtils.getRoleId())); where.setPrjIds(getProjectIds()); } } diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/flow/service/impl/FlowLabourInfoServiceImpl.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/flow/service/impl/FlowLabourInfoServiceImpl.java index ed254f69..1026b5a2 100644 --- a/yanzhu-jh/src/main/java/com/yanzhu/jh/flow/service/impl/FlowLabourInfoServiceImpl.java +++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/flow/service/impl/FlowLabourInfoServiceImpl.java @@ -136,10 +136,6 @@ public class FlowLabourInfoServiceImpl implements IFlowLabourInfoService */ @Override public Map findFlowLabourGroupCountByApprove(FlowLabourInfo flowLabourInfo){ - if(Convert.toInt(flowLabourInfo.getNowRole())>4){ - //这里总包只能审批自己单位数据 - flowLabourInfo.setDeptId(Convert.toLong(flowLabourInfo.getNowDept())); - } List> list = flowLabourInfoMapper.findGroupCountByApprove(flowLabourInfo); int db=0,yb=0; for(Map map:list){ diff --git a/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml b/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml index d2ab12f3..8858a00f 100644 --- a/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml @@ -92,7 +92,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and date(fl.create_time) between #{params.beginDate} and #{params.endDate} and sp.deptId = #{projectDeptId} - and sp.projectType = #{proType} and spc.project_id in