diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml index b2b39bf7..f4c59909 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosAlarmMapper.xml @@ -42,7 +42,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - @@ -51,12 +50,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId + SELECT a.*, b.project_id AS projectId, pi.project_name as prjName FROM dev_pitmonit_southsmos_data a JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id - JOIN sur_project p ON b.project_id =p.id - JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId - WHERE a.is_del = 0 + JOIN pro_project_info pi on pi.id=b.project_id + and a.cfgId = #{cfgId} and a.dataType = #{dataType} and a.dataId = #{dataId} @@ -62,7 +60,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and date(a.collectTime) >= date(#{createTime}) and date(a.collectTime) <= date(#{updateTime}) and b.project_id= #{projectId} - and b.sub_dept_id= #{subDeptId} + and a.is_del = 0 + order by a.collectTime desc diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml index e63c5a8e..bde78218 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosDeviceMapper.xml @@ -38,7 +38,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - @@ -56,15 +55,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - SELECT a.*,c.unitName AS deptName,b.project_id AS projectId,p.projectName prjName,c.unitName AS deptName,b.sub_dept_id subDeptId, - it.id itemId,it.name itemName,it.step itemStep,it.unit itemUnit,it.valueRange itemValueRange,it.gmtCreate itemGmtCreate,it.gmtModified itemGmtModified + SELECT a.*, b.project_id AS projectId, pi.project_name as prjName, + it.id as itemId,it.name as itemName,it.step as itemStep,it.unit as itemUnit,it.valueRange as itemValueRange,it.gmtCreate as itemGmtCreate,it.gmtModified as itemGmtModified FROM dev_pitmonit_southsmos_element a JOIN sur_project_pit_monit_cfg b ON a.cfgId = b.id - JOIN sur_project p ON b.project_id =p.id - JOIN sur_project_unit_info c ON b.sub_dept_id = c.unitId AND b.project_id = c.projectId + JOIN pro_project_info pi on pi.id=b.project_id JOIN dev_pitmonit_southsmos_element_item it ON a.srvId=monitorElementId AND it.is_del=0 - WHERE a.is_del = 0 + and a.cfgId = #{cfgId} and a.srvId = #{srvId} and a.maxSp = #{maxSp} @@ -58,6 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.state = #{state} and b.project_id= #{projectId} and b.sub_dept_id= #{subDeptId} + and a.is_del = 0 + order by srvId desc diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml index 3eb8298c..f9025f55 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosSurveypointMapper.xml @@ -27,7 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - @@ -37,12 +36,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml index 95d4bc8d..550e0886 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/device/PitmonitSouthsmosThresholdMapper.xml @@ -39,13 +39,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProPlanController.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProPlanController.java index 8c0ab848..44ceb0f8 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProPlanController.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProPlanController.java @@ -141,8 +141,6 @@ public class ProPlanController extends BaseController plan.setTaskDuation(task.getDuration().toDouble()); plan.setPlanStartDate(task.getStart()); plan.setPlanFinishDate(task.getFinish()); - plan.setStartDate(task.getStart()); - plan.setFinishDate(task.getFinish()); TaskCollection task_predecessors = task.getPredecessors(); //4. 获取前置任务(任务流) StringBuilder beforeTaskId = new StringBuilder(); diff --git a/yanzhu-ui-vue3/src/api/device/pitAlarm.js b/yanzhu-ui-vue3/src/api/device/pitAlarm.js index b1664e08..c832c765 100644 --- a/yanzhu-ui-vue3/src/api/device/pitAlarm.js +++ b/yanzhu-ui-vue3/src/api/device/pitAlarm.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询报警信息列表 export function listPitAlarm(query) { return request({ - url: '/device/pitAlarm/list', + url: '/manage/device/pitAlarm/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitAlarm(query) { // 查询报警信息详细 export function getPitAlarm(id) { return request({ - url: '/device/pitAlarm/' + id, + url: '/manage/device/pitAlarm/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitAlarm(id) { // 新增报警信息 export function addPitAlarm(data) { return request({ - url: '/device/pitAlarm', + url: '/manage/device/pitAlarm', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitAlarm(data) { // 修改报警信息 export function updatePitAlarm(data) { return request({ - url: '/device/pitAlarm', + url: '/manage/device/pitAlarm', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitAlarm(data) { // 删除报警信息 export function delPitAlarm(id) { return request({ - url: '/device/pitAlarm/' + id, + url: '/manage/device/pitAlarm/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitConfig.js b/yanzhu-ui-vue3/src/api/device/pitConfig.js index a6398c6e..67158905 100644 --- a/yanzhu-ui-vue3/src/api/device/pitConfig.js +++ b/yanzhu-ui-vue3/src/api/device/pitConfig.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询项目基坑监测配置列表 export function listPitConfig(query) { return request({ - url: '/device/pitConfig/list', + url: '/manage/device/pitConfig/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitConfig(query) { // 查询项目基坑监测配置详细 export function getPitConfig(id) { return request({ - url: '/device/pitConfig/' + id, + url: '/manage/device/pitConfig/' + id, method: 'get' }) } @@ -21,7 +21,7 @@ export function getPitConfig(id) { export function addPitConfig(data) { return request({ - url: '/device/pitConfig', + url: '/manage/device/pitConfig', method: 'post', data: data }) @@ -31,7 +31,7 @@ export function addPitConfig(data) { export function updatePitConfig(data) { return request({ - url: '/device/pitConfig', + url: '/manage/device/pitConfig', method: 'put', data: data }) @@ -41,7 +41,7 @@ export function updatePitConfig(data) { export function delPitConfig(id) { return request({ - url: '/device/pitConfig/' + id, + url: '/manage/device/pitConfig/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitData.js b/yanzhu-ui-vue3/src/api/device/pitData.js index 5acdb8a1..3d1f85f0 100644 --- a/yanzhu-ui-vue3/src/api/device/pitData.js +++ b/yanzhu-ui-vue3/src/api/device/pitData.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询测点数据列表 export function listPitData(query) { return request({ - url: '/device/pitData/list', + url: '/manage/device/pitData/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitData(query) { // 查询测点数据详细 export function getPitData(id) { return request({ - url: '/device/pitData/' + id, + url: '/manage/device/pitData/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitData(id) { // 新增测点数据 export function addPitData(data) { return request({ - url: '/device/pitData', + url: '/manage/device/pitData', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitData(data) { // 修改测点数据 export function updatePitData(data) { return request({ - url: '/device/pitData', + url: '/manage/device/pitData', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitData(data) { // 删除测点数据 export function delPitData(id) { return request({ - url: '/device/pitData/' + id, + url: '/manage/device/pitData/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitDevice.js b/yanzhu-ui-vue3/src/api/device/pitDevice.js index e448d91c..f4dd3851 100644 --- a/yanzhu-ui-vue3/src/api/device/pitDevice.js +++ b/yanzhu-ui-vue3/src/api/device/pitDevice.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询设备管理列表 export function listPitDevice(query) { return request({ - url: '/device/pitDevice/list', + url: '/manage/device/pitDevice/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitDevice(query) { // 查询设备管理详细 export function getPitDevice(id) { return request({ - url: '/device/pitDevice/' + id, + url: '/manage/device/pitDevice/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitDevice(id) { // 新增设备管理 export function addPitDevice(data) { return request({ - url: '/device/pitDevice', + url: '/manage/device/pitDevice', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitDevice(data) { // 修改设备管理 export function updatePitDevice(data) { return request({ - url: '/device/pitDevice', + url: '/manage/device/pitDevice', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitDevice(data) { // 删除设备管理 export function delPitDevice(id) { return request({ - url: '/device/pitDevice/' + id, + url: '/manage/device/pitDevice/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitDeviceSurveyPoint.js b/yanzhu-ui-vue3/src/api/device/pitDeviceSurveyPoint.js index 3e41edb8..22a3a88e 100644 --- a/yanzhu-ui-vue3/src/api/device/pitDeviceSurveyPoint.js +++ b/yanzhu-ui-vue3/src/api/device/pitDeviceSurveyPoint.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询设测点关系列表 export function listPitDeviceSurveyPoint(query) { return request({ - url: '/device/pitDeviceSurveyPoint/list', + url: '/manage/device/pitDeviceSurveyPoint/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitDeviceSurveyPoint(query) { // 查询设测点关系详细 export function getPitDeviceSurveyPoint(id) { return request({ - url: '/device/pitDeviceSurveyPoint/' + id, + url: '/manage/device/pitDeviceSurveyPoint/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitDeviceSurveyPoint(id) { // 新增设测点关系 export function addPitDeviceSurveyPoint(data) { return request({ - url: '/device/pitDeviceSurveyPoint', + url: '/manage/device/pitDeviceSurveyPoint', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitDeviceSurveyPoint(data) { // 修改设测点关系 export function updatePitDeviceSurveyPoint(data) { return request({ - url: '/device/pitDeviceSurveyPoint', + url: '/manage/device/pitDeviceSurveyPoint', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitDeviceSurveyPoint(data) { // 删除设测点关系 export function delPitDeviceSurveyPoint(id) { return request({ - url: '/device/pitDeviceSurveyPoint/' + id, + url: '/manage/device/pitDeviceSurveyPoint/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitElement.js b/yanzhu-ui-vue3/src/api/device/pitElement.js index bcbf0cbf..8ce1c8a5 100644 --- a/yanzhu-ui-vue3/src/api/device/pitElement.js +++ b/yanzhu-ui-vue3/src/api/device/pitElement.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询监测项管理列表 export function listPitElement(query) { return request({ - url: '/device/pitElement/list', + url: '/manage/device/pitElement/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitElement(query) { // 查询监测项管理详细 export function getPitElement(id) { return request({ - url: '/device/pitElement/' + id, + url: '/manage/device/pitElement/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitElement(id) { // 新增监测项管理 export function addPitElement(data) { return request({ - url: '/device/pitElement', + url: '/manage/device/pitElement', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitElement(data) { // 修改监测项管理 export function updatePitElement(data) { return request({ - url: '/device/pitElement', + url: '/manage/device/pitElement', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitElement(data) { // 删除监测项管理 export function delPitElement(id) { return request({ - url: '/device/pitElement/' + id, + url: '/manage/device/pitElement/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitElementItem.js b/yanzhu-ui-vue3/src/api/device/pitElementItem.js index 3755fd80..060bfe7f 100644 --- a/yanzhu-ui-vue3/src/api/device/pitElementItem.js +++ b/yanzhu-ui-vue3/src/api/device/pitElementItem.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询测项明细列表 export function listPitElementItem(query) { return request({ - url: '/device/pitElementItem/list', + url: '/manage/device/pitElementItem/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitElementItem(query) { // 查询测项明细详细 export function getPitElementItem(id) { return request({ - url: '/device/pitElementItem/' + id, + url: '/manage/device/pitElementItem/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitElementItem(id) { // 新增测项明细 export function addPitElementItem(data) { return request({ - url: '/device/pitElementItem', + url: '/manage/device/pitElementItem', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitElementItem(data) { // 修改测项明细 export function updatePitElementItem(data) { return request({ - url: '/device/pitElementItem', + url: '/manage/device/pitElementItem', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitElementItem(data) { // 删除测项明细 export function delPitElementItem(id) { return request({ - url: '/device/pitElementItem/' + id, + url: '/manage/device/pitElementItem/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitSurveyPoint.js b/yanzhu-ui-vue3/src/api/device/pitSurveyPoint.js index 0bdb1885..0fe9c4a3 100644 --- a/yanzhu-ui-vue3/src/api/device/pitSurveyPoint.js +++ b/yanzhu-ui-vue3/src/api/device/pitSurveyPoint.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询测点管理列表 export function listPitSurveyPoint(query) { return request({ - url: '/device/pitSurveyPoint/list', + url: '/manage/device/pitSurveyPoint/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitSurveyPoint(query) { // 查询测点管理详细 export function getPitSurveyPoint(id) { return request({ - url: '/device/pitSurveyPoint/' + id, + url: '/manage/device/pitSurveyPoint/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitSurveyPoint(id) { // 新增测点管理 export function addPitSurveyPoint(data) { return request({ - url: '/device/pitSurveyPoint', + url: '/manage/device/pitSurveyPoint', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitSurveyPoint(data) { // 修改测点管理 export function updatePitSurveyPoint(data) { return request({ - url: '/device/pitSurveyPoint', + url: '/manage/device/pitSurveyPoint', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitSurveyPoint(data) { // 删除测点管理 export function delPitSurveyPoint(id) { return request({ - url: '/device/pitSurveyPoint/' + id, + url: '/manage/device/pitSurveyPoint/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/api/device/pitThreshold.js b/yanzhu-ui-vue3/src/api/device/pitThreshold.js index e221f7d6..aa5b7b05 100644 --- a/yanzhu-ui-vue3/src/api/device/pitThreshold.js +++ b/yanzhu-ui-vue3/src/api/device/pitThreshold.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询报警阈值列表 export function listPitThreshold(query) { return request({ - url: '/device/pitThreshold/list', + url: '/manage/device/pitThreshold/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listPitThreshold(query) { // 查询报警阈值详细 export function getPitThreshold(id) { return request({ - url: '/device/pitThreshold/' + id, + url: '/manage/device/pitThreshold/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getPitThreshold(id) { // 新增报警阈值 export function addPitThreshold(data) { return request({ - url: '/device/pitThreshold', + url: '/manage/device/pitThreshold', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addPitThreshold(data) { // 修改报警阈值 export function updatePitThreshold(data) { return request({ - url: '/device/pitThreshold', + url: '/manage/device/pitThreshold', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updatePitThreshold(data) { // 删除报警阈值 export function delPitThreshold(id) { return request({ - url: '/device/pitThreshold/' + id, + url: '/manage/device/pitThreshold/' + id, method: 'delete' }) } diff --git a/yanzhu-ui-vue3/src/components/Chart/index.vue b/yanzhu-ui-vue3/src/components/Chart/index.vue new file mode 100644 index 00000000..0fd867de --- /dev/null +++ b/yanzhu-ui-vue3/src/components/Chart/index.vue @@ -0,0 +1,60 @@ + + + + \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/device/pitAlarm/index.vue b/yanzhu-ui-vue3/src/views/device/pitAlarm/index.vue index ae36654e..d57a84e3 100644 --- a/yanzhu-ui-vue3/src/views/device/pitAlarm/index.vue +++ b/yanzhu-ui-vue3/src/views/device/pitAlarm/index.vue @@ -1,18 +1,6 @@