diff --git a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/IFlowBusinessKeyService.java b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/IFlowBusinessKeyService.java index 7630498b..2be4798e 100644 --- a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/IFlowBusinessKeyService.java +++ b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/IFlowBusinessKeyService.java @@ -114,4 +114,17 @@ public interface IFlowBusinessKeyService { * @return */ public List findFlowTaskUsers(String businessKey, List candidateUsers, List candidateGroups); + + /** + * 工程管理-分包单位占比 + * @param where + * @return + */ + public List groupFlowBySubDeptType(FlowTaskEntity where); + /** + * 工程管理-分包单位资质审批明细 + * @param where + * @return + */ + public List listFlowBySubDeptType(FlowTaskEntity where); } diff --git a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowBusinessKeyServiceImpl.java b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowBusinessKeyServiceImpl.java index f4d8c4c7..54af3282 100644 --- a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowBusinessKeyServiceImpl.java +++ b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowBusinessKeyServiceImpl.java @@ -203,5 +203,23 @@ public class FlowBusinessKeyServiceImpl implements IFlowBusinessKeyService { return flowBusinessKeyMapper.findFlowTaskUsers(businessKey,candidateUsers,candidateGroups); } } + /** + * 工程管理-分包单位占比 + * @param where + * @return + */ + @Override + public List groupFlowBySubDeptType(FlowTaskEntity where) { + return flowBusinessKeyMapper.groupFlowBySubDeptType(where); + } + /** + * 工程管理-分包单位资质审批明细 + * @param where + * @return + */ + @Override + public List listFlowBySubDeptType(FlowTaskEntity where) { + return flowBusinessKeyMapper.listFlowBySubDeptType(where); + } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/FlowBusinessKeyMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/FlowBusinessKeyMapper.java index 0342e318..3ee8b08e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/FlowBusinessKeyMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/FlowBusinessKeyMapper.java @@ -115,4 +115,16 @@ public interface FlowBusinessKeyMapper { * @return */ public List findFlowTaskDeptUsers(@Param("businessKey") String businessKey, @Param("candidateUsers") List candidateUsers, @Param("candidateGroups") List candidateGroups); + /** + * 工程管理-分包单位占比 + * @param where + * @return + */ + public List groupFlowBySubDeptType(FlowTaskEntity where); + /** + * 工程管理-分包单位资质审批明细 + * @param where + * @return + */ + public List listFlowBySubDeptType(FlowTaskEntity where); } diff --git a/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml b/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml index 6bd351e1..49db8ced 100644 --- a/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml @@ -508,4 +508,51 @@ (SELECT 1 FROM sur_project sp WHERE sp.id=#{businessKey} and (FIND_IN_SET(sp.deptId,sd.ancestors) or sp.deptId=sd.dept_id)); + + \ No newline at end of file diff --git a/ruoyi-ui/src/api/video/prjphotography.js b/ruoyi-ui/src/api/video/prjphotography.js index e2118871..7490ff0f 100644 --- a/ruoyi-ui/src/api/video/prjphotography.js +++ b/ruoyi-ui/src/api/video/prjphotography.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -// 查询项目项目全景列表 +// 查询项目全景列表 export function listPrjphotography(query) { return request({ url: '/video/prjphotography/list', @@ -9,7 +9,7 @@ export function listPrjphotography(query) { }) } -// 查询项目项目全景详细 +// 查询项目全景详细 export function getPrjphotography(id) { return request({ url: '/video/prjphotography/' + id, @@ -17,7 +17,7 @@ export function getPrjphotography(id) { }) } -// 新增项目项目全景 +// 新增项目全景 export function addPrjphotography(data) { return request({ url: '/video/prjphotography', @@ -26,7 +26,7 @@ export function addPrjphotography(data) { }) } -// 修改项目项目全景 +// 修改项目全景 export function updatePrjphotography(data) { return request({ url: '/video/prjphotography', @@ -35,7 +35,7 @@ export function updatePrjphotography(data) { }) } -// 删除项目项目全景 +// 删除项目全景 export function delPrjphotography(id) { return request({ url: '/video/prjphotography/' + id, diff --git a/ruoyi-ui/src/views/video/prjphotography/index.vue b/ruoyi-ui/src/views/video/prjphotography/index.vue index 58191924..8acbade3 100644 --- a/ruoyi-ui/src/views/video/prjphotography/index.vue +++ b/ruoyi-ui/src/views/video/prjphotography/index.vue @@ -89,7 +89,7 @@ - + @@ -138,7 +138,7 @@ export default { showSearch: true, // 总条数 total: 0, - // 项目项目全景表格数据 + // 项目全景表格数据 prjphotographyList: [], // 弹出层标题 title: "", @@ -201,7 +201,7 @@ export default { this.prj=prj; this.getList(); }, - /** 查询项目项目全景列表 */ + /** 查询项目全景列表 */ getList() { this.loading = true; this.queryParams.projectId=this.prj.id; @@ -259,7 +259,7 @@ export default { handleAdd() { this.reset(); this.open = true; - this.title = "项目项目全景 - 新增"; + this.title = "项目全景 - 新增"; }, /** 修改按钮操作 */ handleUpdate(row) { @@ -269,7 +269,7 @@ export default { this.form = response.data; this.form.imageUrls=(this.$tryToJson(this.form.imageUrl,[])); this.open = true; - this.title = "项目项目全景 - 修改"; + this.title = "项目全景 - 修改"; }); }, /** 提交按钮 */ @@ -308,7 +308,7 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids; - this.$modal.confirm('是否确认删除项目项目全景编号为"' + ids + '"的数据项?').then(function () { + this.$modal.confirm('是否确认删除项目全景编号为"' + ids + '"的数据项?').then(function () { return delPrjphotography(ids); }).then(() => { this.getList(); 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 9e775323..f482afeb 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 @@ -57,6 +57,40 @@ public class FloweController extends BaseController { redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); return AjaxResult.success(list); } + /** + * 工程管理-分包单位占比 + * @param where + * @return + */ + @PostMapping("/groupFlowBySubDeptType") + public AjaxResult groupFlowBySubDeptType(@RequestBody FlowTaskEntity where){ + long deptId=where.getDeptId(); + if(deptId<=0){ + if (SecurityUtils.isUserB()) { + where.setPrjIds(getProjectIds()); + } + } + List list=flowBusinessKeyService.groupFlowBySubDeptType(where); + return AjaxResult.success(list); + } + /** + * 工程管理-分包单位资质审批明细 + * @param where + * @return + */ + @PostMapping("/listFlowBySubDeptType") + public TableDataInfo listFlowBySubDeptType(@RequestBody FlowTaskEntity where){ + long deptId=where.getDeptId(); + if(deptId<=0){ + if (SecurityUtils.isUserB()) { + where.setPrjIds(getProjectIds()); + } + } + startPage(); + List list=flowBusinessKeyService.listFlowBySubDeptType(where); + return getDataTable(list); + } + @GetMapping("/groupByUnit") public AjaxResult groupByUnit(long deptId,long projectId){ diff --git a/yanzhu-jh/src/main/resources/mapper/video/SurProjectPhotographyMapper.xml b/yanzhu-jh/src/main/resources/mapper/video/SurProjectPhotographyMapper.xml index ef07f08b..3e33d890 100644 --- a/yanzhu-jh/src/main/resources/mapper/video/SurProjectPhotographyMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/video/SurProjectPhotographyMapper.xml @@ -45,11 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"