From 472477e385094e17a1c8c7f9898ba4d6b03a32c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Sun, 21 Apr 2024 21:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yanzhu/jh/bigscreen/web/controller/FloweController.java | 1 - .../jh/flow/service/impl/FlowLabourInfoServiceImpl.java | 4 ---- .../src/main/resources/mapper/flow/FlowLabourInfoMapper.xml | 1 - 3 files changed, 6 deletions(-) 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