diff --git a/ruoyi-ui/public/index.html b/ruoyi-ui/public/index.html index 3c6eb5b5..a897dc02 100644 --- a/ruoyi-ui/public/index.html +++ b/ruoyi-ui/public/index.html @@ -92,7 +92,20 @@ animation: spin 1.5s linear infinite; } - + .div-txt-2 { + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + text-overflow: ellipsis; + } + .div-txt-3 { + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + text-overflow: ellipsis; + } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); diff --git a/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue b/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue index 8467622f..f9ef9d0c 100644 --- a/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue +++ b/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue @@ -1,42 +1,17 @@ - + {{ drawerTitle + " 【材料取样复试】" }} - - + + - + - 添加 + 添加 - + - + - + - + - + {{ scope.row.materialName }} {{ scope.row.usePosition }} - + 已提供 未提供 - + {{ scope.row.witnessUserName }} {{ scope.row.witnessUser }} @@ -140,112 +84,41 @@ --> - + - + - 下载检测报告 - 登记检测结果 - 审批日志 - 修改 - 删除 + 下载检测报告 + 登记检测结果 + 审批日志 + 修改 + 删除 - + - + - + - + - - + + @@ -258,38 +131,18 @@ - - + + - - - + + + @@ -298,13 +151,8 @@ - + @@ -315,89 +163,37 @@ - - + + - + - + - - + + - + - + - + - {{ dict.label }} + {{ dict.label }} - + - + @@ -427,9 +223,10 @@ export default { indexDrawer, }, props: {}, - dicts: ["sys_yes_no","project_check_status", "project_checking_result", "check_detection_check_type"], + dicts: ["sys_yes_no", "project_check_status", "project_checking_result", "check_detection_check_type"], data() { return { + canCreated:true, showViewer: false, // 遮罩层 loading: true, @@ -500,7 +297,7 @@ export default { jxz: "进行中(0)", ywc: "已完成(0)", }, - checkDetectionList:[], + checkDetectionList: [], project: null, nodes: [], unitActiveName: "", @@ -510,9 +307,9 @@ export default { }, computed: {}, watch: {}, - created() {}, - mounted() {}, - beforeDestroy() {}, + created() { }, + mounted() { }, + beforeDestroy() { }, methods: { fileInput(files) { let fileUrls = ""; @@ -530,13 +327,13 @@ export default { this.drawerTitle = project.projectName; this.onOpen = true; this.queryParams.projectId = project.id; - this.tabs.all="全部数据(0)"; - this.tabs.jxz="进行中(0)"; - this.tabs.ywc="已完成(0)"; + this.tabs.all = "全部数据(0)"; + this.tabs.jxz = "进行中(0)"; + this.tabs.ywc = "已完成(0)"; this.$api.publics .queryUnitList({ projectId: project.id, - unitType: 2 + unitTypes: [2,4] }) .then((d) => { this.nodes = d.rows; @@ -550,6 +347,8 @@ export default { }, /** 查询特种人员列表 */ getList() { + let tmps=this.nodes.filter(d=>d.unitId==this.unitActiveName); + this.canCreated=tmps.length>0 && tmps[0].unitType==4?false:true; this.loading = true; this.queryParams.deptId = this.unitActiveName; this.queryCount(); @@ -661,7 +460,7 @@ export default { if (valid) { if (this.form.id) { //已经上传过检测结果时,修改重新发起提交申请 - if(this.form.checkState=="2"){ + if (this.form.checkState == "2") { this.resultform.approveStatus = "1"; } updateCheckDetection(this.form).then((response) => { @@ -706,7 +505,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 选择监理专员*/ selectWitnessUser(val) { @@ -727,8 +526,8 @@ export default { }, /** 审批日志 */ handleAuditinfo(row) { - row.title="材料取样复试"; - row.logType="1"; + row.title = "材料取样复试"; + row.logType = "1"; this.$refs.indexDrawer.show(row); } }, diff --git a/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue b/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue index ca494226..0d4331e7 100644 --- a/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue +++ b/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue @@ -1,42 +1,17 @@ - + {{ title + " 【材料封样管理】" }} - - + + - + - 新增 + 新增 - + - + - - + + - + - + {{ scope.row.materialName }} {{ scope.row.usePosition }} - + 指定:{{ scope.row.contractBrand }} 拟用:{{ scope.row.useBrand }} @@ -118,14 +68,8 @@ {{ parseTime(scope.row.sealDate, "{y}-{m}-{d} {h}:{i}") }} - - + + {{ scope.row.witnessUserName }} {{ scope.row.witnessUser }} @@ -142,94 +86,43 @@ - 下载会签单 + 下载会签单 - - 下载变更单 + v-hasPermi="['project:materialSeal:list']">下载变更单 - - + - 审批日志 - 修改 - 删除 + 审批日志 + 修改 + 删除 - + - + - + - + @@ -241,69 +134,34 @@ - + - + - + - - - - - - - + + + + + + + - + - + - + @@ -343,6 +196,7 @@ export default { dicts: ["project_check_status"], data() { return { + canCreated:true, showViewer: false, open: false, isOpen: false, @@ -405,13 +259,13 @@ export default { jxz: "进行中(0)", ywc: "已完成(0)", }, - deptUserData:[], + deptUserData: [], previewList: [], isOnly: false, }; }, computed: {}, - mounted() {}, + mounted() { }, methods: { fileInputSign(files) { @@ -467,14 +321,14 @@ export default { this.project = project; this.title = project.projectName; this.isOpen = true; - this.tabs.all="全部数据(0)"; - this.tabs.jxz="进行中(0)"; - this.tabs.ywc="已完成(0)"; + this.tabs.all = "全部数据(0)"; + this.tabs.jxz = "进行中(0)"; + this.tabs.ywc = "已完成(0)"; this.queryParams.projectId = project.id; this.$api.publics .queryUnitList({ projectId: project.id, - unitType: 2, + unitTypes: [2,4], }) .then((d) => { this.nodes = d.rows; @@ -491,6 +345,8 @@ export default { }, // 页签点击 getList() { + let tmps=this.nodes.filter(d=>d.unitId==this.unitActiveName); + this.canCreated=tmps.length>0 && tmps[0].unitType==4?false:true; this.queryParams.deptId = this.unitActiveName; this.queryCount() this.loading = true; @@ -608,7 +464,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { - this.form.approveStatus="1"; + this.form.approveStatus = "1"; if (this.form.id != null) { updateMaterialSeal(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -639,7 +495,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -684,8 +540,8 @@ export default { }, /** 审批日志 */ handleAuditinfo(row) { - row.title="材料封样"; - row.logType="4"; + row.title = "材料封样"; + row.logType = "4"; this.$refs.indexDrawer.show(row); } }, diff --git a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue index e9c705d0..e2de87e8 100644 --- a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue +++ b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue @@ -1,42 +1,17 @@ - + {{ title + " 【举牌验收管理】" }} - - + + - + - 新增 + 新增 - + - + - + - + - + - - + + - + - - + + {{ scope.row.qualityUserName }} {{ scope.row.qualityUser }} - + {{ scope.row.superviseUserName }} {{ scope.row.superviseUser }} - + {{ parseTime(scope.row.checkingDate, "{y}-{m}-{d} {h}:{i}") }} @@ -170,200 +90,88 @@ --> - + - + - 下载附件 - 审批日志 - 修改 - 删除 + 下载附件 + 审批日志 + 修改 + 删除 - + - + - + - + - - + + - - + + - - - + + + - - - + + + - + - + - {{ dict.label }} + {{ dict.label }} - + @@ -403,6 +206,7 @@ export default { dicts: ["project_check_status", "project_checking_result", "project_checking_data_type_lvl1", "project_checking_data_type_lvl2"], data() { return { + canCreated:true, showViewer: false, open: false, isOpen: false, @@ -461,7 +265,7 @@ export default { }; }, computed: {}, - mounted() {}, + mounted() { }, methods: { getImageUrl(url) { @@ -488,7 +292,7 @@ export default { this.$api.publics .queryUnitList({ projectId: project.id, - unitType: 2, + unitTypes: [2,4], }) .then((d) => { this.nodes = d.rows; @@ -521,6 +325,8 @@ export default { }, // 页签点击 getList() { + let tmps=this.nodes.filter(d=>d.unitId==this.unitActiveName); + this.canCreated=tmps.length>0 && tmps[0].unitType==4?false:true; this.queryParams.deptId = this.unitActiveName; this.queryCount(); this.loading = true; @@ -562,7 +368,7 @@ export default { createTime: null, updateBy: null, updateTime: null, - remark: null, + remark: null, }; this.resetForm("form"); }, @@ -651,7 +457,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { diff --git a/ruoyi-ui/src/views/project/projectDesign/index.vue b/ruoyi-ui/src/views/project/projectDesign/index.vue index 406a910e..21ba1591 100644 --- a/ruoyi-ui/src/views/project/projectDesign/index.vue +++ b/ruoyi-ui/src/views/project/projectDesign/index.vue @@ -432,14 +432,7 @@ export default { .sp-orange { color: orange; } - - .div-txt-2 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - text-overflow: ellipsis; - } + } } } diff --git a/ruoyi-ui/src/views/project/projectMeasure/projectMeasureDrawer.vue b/ruoyi-ui/src/views/project/projectMeasure/projectMeasureDrawer.vue index 40338c5f..20d0d4c3 100644 --- a/ruoyi-ui/src/views/project/projectMeasure/projectMeasureDrawer.vue +++ b/ruoyi-ui/src/views/project/projectMeasure/projectMeasureDrawer.vue @@ -1,42 +1,17 @@ - + {{ title + " 【实测实量管理】" }} - - + + - + - 新增 + 新增 - + - + - + - + - + - + - + - + {{ parseTime(scope.row.measureTime, "{y}-{m}-{d}") }} - + - + - + - + - - + + - - + + @@ -276,64 +144,34 @@ - - - + + + - - - + + + - + - + - + @@ -370,9 +203,10 @@ export default { indexDrawer, ElImageViewer, }, - dicts: ["project_check_status","project_measure_type", "project_checking_result", "project_measure_info_type"], + dicts: ["project_check_status", "project_measure_type", "project_checking_result", "project_measure_info_type"], data() { return { + canCreated:true, showViewer: false, open: false, isOpen: false, @@ -380,7 +214,7 @@ export default { title: "", isUnit: true, nodes: [], - form: {measureType:"",measureInfo:""}, + form: { measureType: "", measureInfo: "" }, rules: { imageUrls: [{ required: true, message: "请上传测量图片", trigger: "blur" }], measureType: [{ required: true, message: "请选择测量类型", trigger: "blur" }], @@ -427,12 +261,12 @@ export default { ywc: "已完成(0)", }, deptUserData: [], - deptUserData2:[], + deptUserData2: [], previewList: [], }; }, computed: {}, - mounted() {}, + mounted() { }, methods: { fileInput(files) { let fileUrls = null; @@ -445,17 +279,17 @@ export default { } this.form.measureFiles = fileUrls; }, - selectMeasureType(val){ - this.form.measureInfo=""; + selectMeasureType(val) { + this.form.measureInfo = ""; }, - showInfoType(dict){ - if(this.form.measureType){ - if(this.form.measureType=='6'){ + showInfoType(dict) { + if (this.form.measureType) { + if (this.form.measureType == '6') { return dict.raw.remark == 'gjgc'; - }else{ + } else { return dict.raw.remark == null; } - }else{ + } else { return false; } }, @@ -476,14 +310,14 @@ export default { this.project = project; this.title = project.projectName; this.isOpen = true; - this.tabs.all="全部数据(0)"; - this.tabs.jxz="进行中(0)"; - this.tabs.ywc="已完成(0)"; + this.tabs.all = "全部数据(0)"; + this.tabs.jxz = "进行中(0)"; + this.tabs.ywc = "已完成(0)"; this.queryParams.projectId = project.id; this.$api.publics .queryUnitList({ projectId: project.id, - unitType: 2 + unitTypes: [2,4] }) .then((d) => { this.nodes = d.rows; @@ -516,6 +350,8 @@ export default { }, // 页签点击 getList() { + let tmps=this.nodes.filter(d=>d.unitId==this.unitActiveName); + this.canCreated=tmps.length>0 && tmps[0].unitType==4?false:true; this.queryParams.deptId = this.unitActiveName; this.queryCount(); this.loading = true; @@ -616,7 +452,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { - this.form.approveStatus="1"; + this.form.approveStatus = "1"; if (this.form.id) { updateProjectMeasure(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -647,7 +483,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -688,8 +524,8 @@ export default { }, /** 审批日志 */ handleAuditinfo(row) { - row.title="实测实量"; - row.logType="2"; + row.title = "实测实量"; + row.logType = "2"; this.$refs.indexDrawer.show(row); } }, diff --git a/ruoyi-ui/src/views/project/surProject/index.vue b/ruoyi-ui/src/views/project/surProject/index.vue index 5c841687..10d9e002 100644 --- a/ruoyi-ui/src/views/project/surProject/index.vue +++ b/ruoyi-ui/src/views/project/surProject/index.vue @@ -1,196 +1,85 @@ - + - + - + - - + + - - + + - - + + - - + + - + - 搜索 + 搜索 重置 - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 - + - + - - + + - - + + @@ -199,353 +88,150 @@ - + - + - + - + - + - + - + - + - - - + + + - + {{ row.plannedCompletionTime }} - + {{ row.scheduledStartTime }} - + {{ row.actualOperatingTime }} - + {{ row.actualCompletionTime }} - + - + - 进度管理 - 修改项目 - 项目人员 - handleCommand(command, scope.row)" - v-hasPermi="[ - 'project:assess:list', - 'project:build_node_data:list', - 'project:projectChecking:list', - 'work:workTrain:list', - 'work:emergencyDrill:list', - 'project:surProjectInsurance:list', - 'project:surProjectSpecial:list', - 'project:projectMeasure:list', - 'project:materialSeal:list', - 'project:projectDeptWroks:list', - 'project:surProjectAttendance:add', - 'video:videoConfig:list', - 'video:aiBoxProjectConfig:list', - 'project:checkDetection:list', - 'project:costOutput:edit', - 'project:projectStandard:edit', - 'project:attendanceWorker:list', - 'project:attendance:list', - 'project:surProject:remove', - ]" - > - 更多操作 + 进度管理 + 修改项目 + 项目人员 + handleCommand(command, scope.row)" v-hasPermi="[ + 'project:assess:list', + 'project:build_node_data:list', + 'project:projectChecking:list', + 'work:workTrain:list', + 'work:emergencyDrill:list', + 'project:surProjectInsurance:list', + 'project:surProjectSpecial:list', + 'project:projectMeasure:list', + 'project:materialSeal:list', + 'project:projectDeptWroks:list', + 'project:surProjectAttendance:add', + 'video:videoConfig:list', + 'video:aiBoxProjectConfig:list', + 'project:checkDetection:list', + 'project:costOutput:edit', + 'project:projectStandard:edit', + 'project:attendanceWorker:list', + 'project:attendance:list', + 'project:surProject:remove', + 'project:projectCommittee:list', + ]"> + 更多操作 - 季度考核管理 - 计划节点管理 - 设计管理 - 举牌验收管理 - 项目教育培训 - 项目应急演练 - 项目保险管理 - 项目特种人员 - 实测实量管理 - 材料封样管理 - 在岗人员管理 - 劳务实名管理 + 季度考核管理 + 计划节点管理 + 工委会管理 + 设计管理 + 举牌验收管理 + 项目教育培训 + 项目应急演练 + 项目保险管理 + 项目特种人员 + 实测实量管理 + 材料封样管理 + 在岗人员管理 + 劳务实名管理 - 视频配置 - AI视频配置 - 项目全景 - 材料取样复试 - 项目成本产值管理 - 标准化管理 - 删除项目 + 视频配置 + AI视频配置 + 项目全景 + 材料取样复试 + 项目成本产值管理 + 标准化管理 + 删除项目 - + - + - - + + @@ -556,10 +242,7 @@ - + @@ -567,17 +250,9 @@ - - + + @@ -588,19 +263,10 @@ - - - + + + @@ -611,29 +277,16 @@ 选择经纬度 - + - - + + @@ -655,71 +308,41 @@ - - + + - + - - + + - - + + - - - - - - - - + + + + + + + + - + - + @@ -761,11 +379,7 @@ - + @@ -783,9 +397,10 @@ - - + + + @@ -821,6 +436,7 @@ import attendanceDataDrawer from '@/views/project/attendance/attendanceDrawer.vu import aiBoxVideoConfigDrawer from '@/views/video/aiBoxProjectConfig/aiBoxVideoConfigDrawer'; import prjPhotographyDrawer from '@/views/video/prjphotography/prjPhotographyDrawer.vue' import projectDesignDrawer from '@/views/project/projectDesign/projectDesignDrawer.vue'; +import CommitteeDrawer from '@/views/project/projectCommittee/projectCommitteeDrawer.vue' import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数 export default { @@ -845,9 +461,10 @@ export default { checkDetectionDrawer, standardDrawer, attendanceDataDrawer, - aiBoxVideoConfigDrawer, + aiBoxVideoConfigDrawer, prjPhotographyDrawer, - projectDesignDrawer + projectDesignDrawer, + CommitteeDrawer }, dicts: [ "sur_project_xmjd", @@ -1059,7 +676,7 @@ export default { this.handleDelete(row); break; case "handleDesign": - this.$refs.designDrawer.show(row); + this.$refs.designDrawer.show(row); break; case "handleAssess": this.$refs.assessDrawer.show(row); @@ -1105,7 +722,7 @@ export default { break; case "handleStandard": this.$refs.standard.show(row); - break; + break; case "handleAttendanceData": this.$refs.attendanceData.show(row); break; @@ -1115,6 +732,9 @@ export default { case "handlePrjPhotography": this.$refs.prjPhotographyDrawer.show(row); break; + case "handleCommittee": + this.$refs.committeeDrawer.show(row); + break; default: break; } @@ -1164,7 +784,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -1225,6 +845,7 @@ export default { .prj-suprj-edit-dialog { .el-dialog__body { padding-bottom: 0px; + .fi-longitude { .el-form-item__content { display: flex; diff --git a/sql/SQL集合.txt b/sql/SQL集合.txt index 45d6bff6..3c7c9910 100644 --- a/sql/SQL集合.txt +++ b/sql/SQL集合.txt @@ -15,8 +15,6 @@ CREATE VIEW vw_smz_ssp_problemmodify_audit AS ( a.*, a.updateTime AS audittime, b.deptId, b.projectName as prjName, - b.projectType as proType, - b.progressVisible as progressVisible, u.nick_name AS createBy FROM smz_ssp_problemmodify a @@ -54,9 +52,7 @@ CREATE VIEW vw_flow_all AS ( DEF.KEY_ AS procDefKey, sp.id AS businessKey, sp.deptId as businessDeptId, - sp.projectType as businessType, sp.projectName AS businessKeyName, - sp.progressVisible AS businessVisible, ru.user_id AS startUserId, ru.nick_name AS startUserName, rd.dept_name AS startDeptName, @@ -111,9 +107,7 @@ CREATE VIEW vw_flow_await AS (SELECT DEF.KEY_ AS procDefKey, sp.id AS businessKey, sp.deptId AS businessDeptId, - sp.projectType AS businessType, sp.projectName AS businessKeyName, - sp.progressVisible AS businessVisible, ru.user_id AS startUserId, ru.nick_name AS startUserName, rd.dept_name AS startDeptName, @@ -155,10 +149,52 @@ WHERE -- ) -- ) - ##审批意见 DROP view vw_flow_comment; CREATE VIEW vw_flow_comment AS ( +SELECT + hc.ID_ AS commentId, + hc.TYPE_ AS commentType, + ht.ID_ AS taskId, + ht.NAME_ AS taskName, + ht.REV_ AS rev, + CASE +WHEN hc.TYPE_ = 1 +AND ht.REV_ != 2 THEN + '通过' +WHEN hc.TYPE_ != 1 THEN + '驳回' +END AS commentResult, + ht.PROC_INST_ID_ AS procInstId, + ht.TASK_DEF_KEY_ AS taskDefKey, + ht.EXECUTION_ID_ AS executionId, + ht.DELETE_REASON_ AS deleteReason, + DATE_FORMAT( + ht.START_TIME_, + '%Y-%m-%d %H:%i:%S' +) AS startTime, + DATE_FORMAT( + ht.END_TIME_, + '%Y-%m-%d %H:%i:%S' +) AS endTime, + ht.DURATION_ AS duration, + hc.MESSAGE_ AS message, + ru.nick_name AS assigneeName, + rd.dept_name AS deptName, +r.role_name as candidate +FROM + act_hi_taskinst ht +LEFT JOIN act_hi_comment hc ON hc.TASK_ID_ = ht.ID_ +LEFT JOIN act_hi_identitylink hi on hi.TASK_ID_ = ht.ID_ and hi.TYPE_ = 'candidate' +left JOIN sys_role r on r.role_id = hi.group_Id_ +LEFT JOIN sys_user ru ON ru.user_id = ht.ASSIGNEE_ +LEFT JOIN sys_dept rd ON rd.dept_id = ru.dept_id +where hc.TYPE_ is null or hc.TYPE_!='event' +) + +##审批意见V2 +DROP view vw_flow_comment; +CREATE VIEW vw_flow_comment AS ( SELECT hc.ID_ AS commentId, hc.TYPE_ AS commentType, @@ -228,9 +264,7 @@ DEF.END_TIME_ as finishTime, pd.KEY_ AS procDefKey, sp.id AS businessKey, sp.deptId AS businessDeptId, - sp.projectType AS businessType, sp.projectName AS businessKeyName, - sp.progressVisible AS businessVisible, ru.user_id AS startUserId, ru.nick_name AS startUserName, rd.dept_name AS startDeptName, @@ -245,7 +279,6 @@ LEFT JOIN sys_dept rd ON rd.dept_id = ru.dept_id WHERE RES.ASSIGNEE_ is not null and RES.END_TIME_ is not null) - ##君哥其它sql CREATE VIEW vw_smz_ssp_problemmodify_audit AS @@ -260,6 +293,8 @@ SELECT * FROM smz_ssp_auditinfo WHERE id IN(SELECT MAX(id) FROM smz_ssp_auditinf GROUP BY mainid) ) a ON p.id=a.mainid +130735741 +559939996 CREATE VIEW vw_sur_project_build_node_data_all AS diff --git a/sql/期刊+工委会.sql b/sql/期刊+工委会.sql new file mode 100644 index 00000000..bc17d267 --- /dev/null +++ b/sql/期刊+工委会.sql @@ -0,0 +1,218 @@ +/* +SQLyog Ultimate v13.1.1 (64 bit) +MySQL - 8.0.22-cynos : Database - yanzhu_jh +********************************************************************* +*/ + +/*!40101 SET NAMES utf8 */; + +/*!40101 SET SQL_MODE=''*/; + +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*Table structure for table `base_mag` */ + +DROP TABLE IF EXISTS `base_mag`; + +CREATE TABLE `base_mag` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` varchar(255) DEFAULT NULL COMMENT '期刊名称', + `imgs` varchar(512) DEFAULT NULL COMMENT '图片', + `ord` int DEFAULT NULL COMMENT '排序', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `is_del` int DEFAULT '0', + `create_by` varchar(255) DEFAULT NULL, + `create_time` datetime DEFAULT NULL, + `update_by` varchar(255) DEFAULT NULL, + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='期刊'; + +/*Data for the table `base_mag` */ + +LOCK TABLES `base_mag` WRITE; + +UNLOCK TABLES; + +/*Table structure for table `base_mag_detail` */ + +DROP TABLE IF EXISTS `base_mag_detail`; + +CREATE TABLE `base_mag_detail` ( + `id` int NOT NULL AUTO_INCREMENT, + `magid` int DEFAULT NULL COMMENT '期刊id', + `topic` int DEFAULT NULL COMMENT '栏目字典mag_topic', + `title` varchar(512) DEFAULT NULL COMMENT '标题', + `deptid` int DEFAULT NULL COMMENT '总包编号', + `authorName` varchar(255) DEFAULT NULL COMMENT '作者', + `authorPhone` varchar(50) DEFAULT NULL COMMENT '作者电话', + `ord` int DEFAULT NULL COMMENT '排序号', + `images` varchar(1024) DEFAULT NULL COMMENT '图片', + `content` text COMMENT '正文', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `is_del` int DEFAULT '0', + `create_by` varchar(255) DEFAULT NULL, + `create_time` datetime DEFAULT NULL, + `update_by` varchar(255) DEFAULT NULL, + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='期刊详情'; + +/*Data for the table `base_mag_detail` */ + +LOCK TABLES `base_mag_detail` WRITE; + +UNLOCK TABLES; + +/*Table structure for table `base_working_committee` */ + +DROP TABLE IF EXISTS `base_working_committee`; + +CREATE TABLE `base_working_committee` ( + `id` int NOT NULL AUTO_INCREMENT, + `name` varchar(255) DEFAULT NULL COMMENT '名称', + `files` varchar(1024) DEFAULT NULL COMMENT '文件', + `ord` int DEFAULT NULL COMMENT '顺序', + `remark` varchar(255) DEFAULT NULL, + `create_by` varchar(255) DEFAULT NULL, + `create_time` datetime DEFAULT NULL, + `update_by` varchar(255) DEFAULT NULL, + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='工委会'; + +/*Data for the table `base_working_committee` */ + +LOCK TABLES `base_working_committee` WRITE; + +UNLOCK TABLES; + +/*Table structure for table `sur_project_working_committee` */ + +DROP TABLE IF EXISTS `sur_project_working_committee`; + +CREATE TABLE `sur_project_working_committee` ( + `id` int NOT NULL AUTO_INCREMENT, + `projectId` int DEFAULT NULL COMMENT '项目ID', + `workingType` int DEFAULT NULL COMMENT '分类字典project_working_type', + `costName` varchar(255) DEFAULT NULL COMMENT '成本名称', + `money` double DEFAULT NULL COMMENT '金额(万元)', + `remark` varchar(255) DEFAULT NULL, + `create_by` varchar(255) DEFAULT NULL, + `create_time` datetime DEFAULT NULL, + `update_by` varchar(255) DEFAULT NULL, + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='项目工委会信息'; + +/*Data for the table `sur_project_working_committee` */ + +LOCK TABLES `sur_project_working_committee` WRITE; + +UNLOCK TABLES; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + + + + + +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊列表', '2108', '1', 'mag', 'base/mag/index', 1, 0, 'C', '0', '0', 'base:mag:list', '#', 'admin', sysdate(), '', null, '期刊列表菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊列表查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'base:mag:query', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊列表新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'base:mag:add', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊列表修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'base:mag:edit', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊列表删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'base:mag:remove', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊列表导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'base:mag:export', '#', 'admin', sysdate(), '', null, ''); + + +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊详情', '2108', '1', 'magDetail', 'base/magDetail/index', 1, 0, 'C', '0', '0', 'base:magDetail:list', '#', 'admin', sysdate(), '', null, '期刊详情菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊详情查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'base:magDetail:query', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊详情新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'base:magDetail:add', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊详情修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'base:magDetail:edit', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊详情删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'base:magDetail:remove', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('期刊详情导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'base:magDetail:export', '#', 'admin', sysdate(), '', null, ''); + +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会列表', '2108', '1', 'committee', 'base/committee/index', 1, 0, 'C', '0', '0', 'base:committee:list', '#', 'admin', sysdate(), '', null, '工委会列表菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会列表查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'base:committee:query', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会列表新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'base:committee:add', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会列表修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'base:committee:edit', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会列表删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'base:committee:remove', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会列表导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'base:committee:export', '#', 'admin', sysdate(), '', null, ''); + + +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会管理', '2108', '1', 'projectCommittee', 'project/projectCommittee/index', 1, 0, 'C', '0', '0', 'project:projectCommittee:list', '#', 'admin', sysdate(), '', null, '工委会管理菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会管理查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'project:projectCommittee:query', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会管理新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'project:projectCommittee:add', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会管理修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'project:projectCommittee:edit', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会管理删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'project:projectCommittee:remove', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('工委会管理导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'project:projectCommittee:export', '#', 'admin', sysdate(), '', null, ''); + diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectBuildNodeController.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectBuildNodeController.java index b1957aba..26b00c43 100644 --- a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectBuildNodeController.java +++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectBuildNodeController.java @@ -45,7 +45,7 @@ public class ProjectBuildNodeController extends BaseController { } List list = surProjectBuildNodeDataService.selectScheduledAlerts(where); - redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); + return AjaxResult.success(); } @@ -69,7 +69,7 @@ public class ProjectBuildNodeController extends BaseController { } List list = surProjectBuildNodeDataService.countCompletionRate(where); - redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); + return AjaxResult.success(list); } @@ -86,7 +86,7 @@ public class ProjectBuildNodeController extends BaseController { return AjaxResult.success(obj); } List list = surProjectBuildNodeDataService.selectCurrent(where); - redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); + return AjaxResult.success(); } @@ -110,7 +110,7 @@ public class ProjectBuildNodeController extends BaseController { } surProjectBuildNodeDataService.addProjectNodes(projectId); list=surProjectBuildNodeDataService.selectSurProjectBuildNodeDataList(surProjectBuildNodeData); - redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); + return AjaxResult.success(list); } @@ -127,7 +127,7 @@ public class ProjectBuildNodeController extends BaseController { return AjaxResult.success(obj); } List list=surProjectBuildNodeDataService.queryByProjectType(type); - redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); + return AjaxResult.success(list); } @@ -140,7 +140,7 @@ public class ProjectBuildNodeController extends BaseController { return AjaxResult.success(obj); } List list=surProjectBuildNodeDataService.queryFinishProject(projectId); - redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES); + return AjaxResult.success(list); } diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectController.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectController.java index 5b3a6757..dcef1542 100644 --- a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectController.java +++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectController.java @@ -1,5 +1,8 @@ package com.yanzhu.jh.bigscreen.web.controller; +import cn.hutool.core.date.DateTime; +import cn.hutool.core.date.DateUnit; +import cn.hutool.core.date.DateUtil; import com.ruoyi.common.constant.Constants; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; @@ -17,6 +20,7 @@ import org.aspectj.weaver.loadtime.Aj; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.Date; import java.util.List; import java.util.concurrent.TimeUnit; @@ -52,7 +56,14 @@ public class ProjectController extends BaseController { if(deptId!=null && deptId.longValue()>0){ surProject.setDeptId(deptId); } - return success(isurProjectService.selectSurProjectList(surProject)); + List list=isurProjectService.selectSurProjectList(surProject); + for (SurProject p :list){ + //DateTime dt1= DateUtil.parse(p.getScheduledStartTime()); + //DateTime dt2=DateUtil.parse(p.getPlannedCompletionTime()); + //long days= DateUtil.between(dt1,dt2, DateUnit.DAY); + //p.setProjectTimeLimit(days); + } + return success(list); } @GetMapping("/getProjectBuildNode") diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/service/impl/SurProjectAttendanceDataServiceImpl.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/service/impl/SurProjectAttendanceDataServiceImpl.java index afefebc4..7d25d9f8 100644 --- a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/service/impl/SurProjectAttendanceDataServiceImpl.java +++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/service/impl/SurProjectAttendanceDataServiceImpl.java @@ -214,7 +214,7 @@ public class SurProjectAttendanceDataServiceImpl implements ISurProjectAttendanc sdata.setCompanyTypeId(group.getCompanyTypeId()); //查询华筑的分组信息 if("huazhu".equals(sdata.getVendorsCode())){ - sdata.setWorkerGender(sdata.getWorkerGender()==1?0l:1l); + sdata.setWorkerGender(sdata.getWorkerGender()); sdata.setCompanyTypeId(getHuazhuCompanyTypeId(group.getCompanyName()));//获取华筑的分包商类型 } if("jgw".equals(sdata.getVendorsCode())){ diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectCostOutputMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectCostOutputMapper.xml index 9b0390c7..51fdfe26 100644 --- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectCostOutputMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectCostOutputMapper.xml @@ -114,7 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT 10 cost_type , SUM(spco.money) money FROM sur_project_cost_output spco left join sur_project sp on sp.id = spco.project_id - WHERE (spco.cost_type=2 AND spco.YEAR <=#{year} ) and sp.isDel=0 and sp.progressVisible=0 + WHERE spco.cost_type=9 AND (spco.YEAR <#{year} or ( spco.Year =#{year} and spco.MONTH <= #{month})) and sp.isDel=0 and sp.progressVisible=0 and sp.deptId = #{id} and sp.projectType = #{proType} diff --git a/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml b/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml index 9d19596f..baf10bb8 100644 --- a/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/project/SurProjectStandardMapper.xml @@ -126,13 +126,12 @@ left join ( select a.standard_type,count(1) cnt from sur_project_standard a ,sur_project sp - where a.is_del =0 and a.project_id=sp.id + where a.is_del =0 and a.project_id=sp.id and sp.progressVisible=0 and a.project_id=#{projectId} - and a.dept_Id= #{deptId} + and sp.deptid= #{deptId} and sp.projectType = #{proType} - and sp.progressVisible = 0 and a.project_id in diff --git a/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml b/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml index b411841e..3e267b0c 100644 --- a/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml @@ -464,7 +464,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select projectId,prjName,count(1) proble from vw_smz_ssp_problemmodify_audit where infoType=#{infoType} AND isDel=0 and projectId=#{projectId} - and projectType = #{proType} + and proType = #{proType} AND deptid = #{deptId} and projectId in @@ -698,7 +698,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select count(1) cnt FROM smz_ssp_problemmodify ssp - left join sur_project sp on p.projectId=sp.id + left join sur_project sp on ssp.projectId=sp.id WHERE ssp.isDel=0 and sp.progressVisible=0 and sp.isDel=0 and ssp.infoType=#{infoType} and ssp.roleType=#{roleType}