Переглянути джерело

Merge branch 'dev' of http://101.36.160.140:21044/province-qinghai/province-all into dev

ZeroLiYi 3 місяців тому
батько
коміт
524f18d8f7

+ 1 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/equipmentOnlineRateAssessment/modular/hk/controller/PreviewPlaybackController.java

@@ -91,7 +91,7 @@ public class PreviewPlaybackController {
91 91
 
92 92
     @ApiOperation(value="*云台控制", notes = "云台控制")
93 93
     @GetMapping("/previewPlayback/controlling")
94
-    @SaCheckPermission("/previewPlayback/controlling")
94
+    //@SaCheckPermission("/previewPlayback/controlling")
95 95
     public void controlling(ControllerReqDTO controllerReqDTO) {
96 96
         hkService.controlling(controllerReqDTO);
97 97
     }

+ 16 - 19
unis-plugin/unis-plugin-biz/src/main/java/com/unis/equipmentOnlineRateAssessment/modular/monitorNvr/mapper/mapping/MonitorNvrMapper.xml

@@ -24,26 +24,23 @@
24 24
 
25 25
     <select id="selectByNVRDates" resultType="java.util.HashMap" parameterType="java.util.Map" >
26 26
         SELECT
27
-        camera.id camera_id,
28
-        camera.alias,
29
-        camera.factory,
30
-        camera.live,
31
-        camera.ip camera_ip,
32
-        camera.username camera_name,
33
-        camera.password camera_password,
34
-        camera.port camera_port,
35
-        camera.type camera_type,
36
-        nvr.ip nvr_ip,
37
-        nvr.username nvr_name,
38
-        nvr. PASSWORD nvr_password,
39
-        nvr. PORT nvr_port,
40
-        nvr.factory nvr_factory,
41
-        camera.channel_number,
42
-        camera.org_id
27
+            camera.id camera_id,
28
+            camera.alias,
29
+            camera.factory,
30
+            camera.live,
31
+            camera.ip camera_ip,
32
+            camera.username camera_name,
33
+            camera.password camera_password,
34
+            camera.port camera_port,
35
+            camera.type camera_type,
36
+            camera.channel_number,
37
+            camera.org_id,
38
+            camera.camera_index_code cameraIndexCode,
39
+            s.storehouse_id storehouseId
43 40
         FROM
44
-        depot_qh.monitor_camera camera
45
-        LEFT JOIN depot_qh.monitor_nvr nvr ON nvr.id = camera.nvr_id
46
-        WHERE camera.isremove = '1' AND nvr.delete_mark = '1' AND camera.org_id = #{orgId,jdbcType=VARCHAR} AND nvr.org_id = #{orgId,jdbcType=VARCHAR}
41
+            monitor_camera camera
42
+                LEFT JOIN camera_storehouse s on s.camera_id = camera.id
43
+        WHERE camera.isremove = '1' AND camera.org_id = #{orgid,jdbcType=VARCHAR}
47 44
         group by camera.id
48 45
     </select>
49 46
 </mapper>

+ 6 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/lawEnforcementSupervision/modular/lesJointInspectionTask/service/impl/LesJointInspectionTaskServiceImpl.java

@@ -42,6 +42,7 @@ import com.unis.lawEnforcementSupervision.modular.lesJointInspectionTask.param.L
42 42
 import com.unis.lawEnforcementSupervision.modular.lesJointInspectionTask.service.LesJointInspectionTaskService;
43 43
 
44 44
 import javax.annotation.Resource;
45
+import java.util.Date;
45 46
 import java.util.List;
46 47
 
47 48
 /**
@@ -180,7 +181,10 @@ public class LesJointInspectionTaskServiceImpl extends ServiceImpl<LesJointInspe
180 181
         Integer status = lesJointInspectionTask.getStatus();
181 182
         if (1 == status) {
182 183
             // 判断驳回在提交
183
-            if (StringUtils.isEmpty(lesJointInspectionTask.getId())) {
184
+            QueryWrapper<AuditRequest> wrapper = new QueryWrapper<>();
185
+            wrapper.lambda().eq(AuditRequest::getRequestId, lesJointInspectionTask.getId());
186
+            AuditRequest request1 = auditRequestMapper.selectOne(wrapper);
187
+            if (ObjectUtils.isEmpty(request1)) {
184 188
                 // 添加审批(状态 0:待审核;1:已审核;2:驳回)
185 189
                 AuditRequest request = this.addAuditRequest(lesJointInspectionTask);
186 190
                 // 添加审批流程记录
@@ -205,6 +209,7 @@ public class LesJointInspectionTaskServiceImpl extends ServiceImpl<LesJointInspe
205 209
         request.setAuditStatus(0);
206 210
         request.setAuditAdvice(lesJointInspectionTask.getAuditAdvice());
207 211
         request.setAuditUserId(lesJointInspectionTask.getAuditUserId());
212
+        request.setAuditTime(new Date());
208 213
         auditRequestMapper.insert(request);
209 214
         return request;
210 215
     }

+ 41 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/mobileInfo/modular/qcqualityinspection/enums/GradeEnum.java

@@ -0,0 +1,41 @@
1
+package com.unis.mobileInfo.modular.qcqualityinspection.enums;
2
+
3
+public enum GradeEnum {
4
+
5
+    FIRST("一等", "1"),
6
+    TWO("二等", "2"),
7
+    THREE("三等", "3"),
8
+    FOUR("四等", "4"),
9
+    FIVE("五等", "5"),
10
+    ENDURES("等外", "6");
11
+
12
+
13
+    GradeEnum(String key, String value) {
14
+        this.key = key;
15
+        this.value = value;
16
+    }
17
+
18
+    private String key;
19
+    private String value;
20
+
21
+
22
+    public String getKey() {
23
+        return key;
24
+    }
25
+
26
+    public String getValue() {
27
+        return value;
28
+    }
29
+
30
+
31
+    //获取对应值
32
+    public static String getIntValue(String key) {
33
+        GradeEnum[] values = GradeEnum.values();
34
+        for (GradeEnum value : values) {
35
+            if (value.getKey().equals(key)) {
36
+                return value.getValue();
37
+            }
38
+        }
39
+        return null;
40
+    }
41
+}

+ 3 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/mobileInfo/modular/qcqualityinspection/service/impl/BusinessQcQualityInspectionServiceImpl.java

@@ -31,6 +31,7 @@ import com.unis.basic.info.modular.storehouseInfo.mapper.StorehouseInfoMapper;
31 31
 import com.unis.basic.info.modular.unitInfo.mapper.EnumMapper;
32 32
 import com.unis.basic.info.modular.warehouseInfo.entity.WarehouseInfo;
33 33
 import com.unis.basic.info.modular.warehouseInfo.mapper.WarehouseInfoMapper;
34
+import com.unis.mobileInfo.modular.qcqualityinspection.enums.GradeEnum;
34 35
 import com.unis.mobileInfo.modular.qcqualityinspection.param.*;
35 36
 import com.unis.mobileInfo.modular.qcqualityinspection.vo.ReserveQualityCityPageVO;
36 37
 import com.unis.mobileInfo.modular.qcqualityinspection.vo.ReserveQualityOrgPageVO;
@@ -231,9 +232,10 @@ public class BusinessQcQualityInspectionServiceImpl extends ServiceImpl<Business
231 232
     public Page<ReserveQualityStoreHousePageVO> reserveQualityStoreHousePage(ReserveQualityStoreHousePageParam pageParam) {
232 233
 
233 234
         Page<BusinessQcQualityInspection> page = new Page<>(pageParam.getCurrent(), pageParam.getSize());
235
+        String ypdj = GradeEnum.getIntValue(pageParam.getYpdj());
234 236
 
235 237
         return businessQcQualityInspectionMapper.selectMyPage(page, pageParam.getBasicStorehouseName(), pageParam.getGrainVarietyName(),
236
-                pageParam.getReceiveYear(), pageParam.getYpdj(), pageParam.getOrgId());
238
+                pageParam.getReceiveYear(), ypdj, pageParam.getOrgId());
237 239
     }
238 240
 
239 241