From 6af94c9f2deb77e97ccfca2c83c3c28dac534ae0 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 10 十月 2024 18:57:48 +0800
Subject: [PATCH] 最新版本

---
 admin/src/components/business/OperaPlatformWindow.vue                                                          |    4 ++++
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java                     |    3 +++
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncPushServiceImpl.java |   32 +++++++++++++++++++++++---------
 admin/src/views/platform/platform.vue                                                                          |    1 +
 4 files changed, 31 insertions(+), 9 deletions(-)

diff --git a/admin/src/components/business/OperaPlatformWindow.vue b/admin/src/components/business/OperaPlatformWindow.vue
index b9ebeec..b32724b 100644
--- a/admin/src/components/business/OperaPlatformWindow.vue
+++ b/admin/src/components/business/OperaPlatformWindow.vue
@@ -26,6 +26,9 @@
           </el-option>
         </el-select>
       </el-form-item>
+      <el-form-item label="LED绌洪棽鏂囨锛�" prop="remark">
+        <el-input type="text" v-model="form.remark" placeholder="璇疯緭鍏ED绌洪棽鏂囨" v-trim />
+      </el-form-item>
       <el-form-item label="鍚屾椂浣滀笟鏁伴噺锛�" prop="workingNum">
         <el-input type="number" v-model="form.workingNum" placeholder="璇疯緭鍏ュ悓鏃朵綔涓氭暟閲�" v-trim />
       </el-form-item>
@@ -68,6 +71,7 @@
         startTime: '',
         endTime: '',
         workingNum: 1,
+        remark: '',
         workRate: '',
         stayTimeoutAlarmTime: '',
         workTimeoutAlarmTime: '',
diff --git a/admin/src/views/platform/platform.vue b/admin/src/views/platform/platform.vue
index a9e3979..e5615f6 100644
--- a/admin/src/views/platform/platform.vue
+++ b/admin/src/views/platform/platform.vue
@@ -50,6 +50,7 @@
         </el-table-column> -->
         <el-table-column prop="broadcastNames" label="鍏宠仈骞挎挱" min-width="100px"></el-table-column>
         <el-table-column prop="ledNames" label="鍏宠仈LED" min-width="100px"></el-table-column>
+        <el-table-column prop="remark" label="LED绌洪棽鏂囨" min-width="180px"></el-table-column>
         <el-table-column prop="hkDate" label="鍚屾鏃堕棿" min-width="150px"></el-table-column>
         <el-table-column label="鏈堝彴鐘舵��" fixed="right" width="100px">
           <template slot-scope="{row}">
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
index 64a7346..846bc80 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
@@ -61,6 +61,9 @@
     @ApiModelProperty(value = "鐘舵�� 0寰呯‘璁� 1寰呯鍒� 2绛夊緟鍙彿 3鍏ュ洯绛夊緟 4宸插彨鍙� 5浣滀笟涓� 6浣滀笟瀹屾垚 7杞Щ涓� 8寮傚父鎸傝捣 9宸叉巿鏉冪鍥� 10宸茬鍥� 11 宸茶繃鍙�  12鍙栨秷锛圵MS锛�" , example = "1")
     @ExcelColumn(name="鐘舵�� 0寰呯‘璁� 1寰呯鍒� 2绛夊緟鍙彿 3鍏ュ洯绛夊緟 4宸插彨鍙� 5浣滀笟涓� 6浣滀笟瀹屾垚 7杞Щ涓� 8寮傚父鎸傝捣 9宸叉巿鏉冪鍥� 10宸茬鍥� 11 宸茶繃鍙�  12鍙栨秷锛圵MS锛�")
     private Integer status;
+    @ApiModelProperty(value = "杞﹁締杩涘叆鐘舵�� 0涓嶅湪 1杩涘叆 " , example = "1")
+    @ExcelColumn(name="杞﹁締杩涘叆鐘舵�� 0涓嶅湪 1杩涘叆 ")
+    private Integer inOut;
 
     @ApiModelProperty(value = "鎺掑簭鐮�", example = "1")
     @ExcelColumn(name="鎺掑簭鐮�")
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncPushServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncPushServiceImpl.java
index 144a865..d9cf7a7 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncPushServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncPushServiceImpl.java
@@ -414,7 +414,7 @@
                 member.setLastVisitDate(updateVistis.getInDate());
                 member.setId(visits.getMemberId());
                 memberMapper.updateById(member);
-            }else  if (Constants.formatIntegerNum(request.getEventType()) == HKConstants.EventTypes.VISIT_SIGN_ICCM_OUT.getKey())  {
+            }else if (Constants.formatIntegerNum(request.getEventType()) == HKConstants.EventTypes.VISIT_SIGN_ICCM_OUT.getKey())  {
                 //濡傛灉鏄瀹㈢绂讳簨浠�
                 updateVistis.setStatus(Constants.VisitStatus.signout);
                 updateVistis.setInDate(DateUtil.getISO8601DateByStr(data.getBeginTime()));
@@ -427,7 +427,6 @@
             updateVistis.setEditDate(new Date());
             //鏇存柊璁垮鏉ヨ鎴栬�呯绂绘椂闂翠俊鎭�
             visitsMapper.updateById(updateVistis) ;
-
         }
     }
     private Retention getRetentionModelByVisitRequest(Visits visits, String happentTime,String srcType) {
@@ -890,8 +889,8 @@
                         .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId)
 //                        .eq(StringUtils.equals(status.getStockStatus(),"front"),PlatformJob::getCarCodeFront,status.getPlateNo() )//鍓嶈溅鐗屽彿
 //                        .eq(!StringUtils.equals(status.getStockStatus(),"front"),PlatformJob::getCarCodeBack,status.getPlateNo() )//鍚庤溅鐗屽彿
-                        .eq(PlatformJob::getPlatformId,Constants.ZERO )
-                        .eq(PlatformJob::getIsdeleted,model.getPlatformId() )
+                        .eq(PlatformJob::getIsdeleted,Constants.ZERO )
+                        .eq(PlatformJob::getPlatformId,model.getPlatformId() )
                         .orderByDesc(PlatformJob::getCallDate)
                         .last("limit 1 "));
                 if(job == null){
@@ -917,21 +916,36 @@
                     //濡傛灉鏄鍦ㄤ綔涓氱殑鐘舵�侊紝鏍囪浣滀笟宸插畬鎴�
                     update.setStatus(Constants.PlatformJobStatus.DONE.getKey());//浣滀笟宸插畬鎴�
                     update.setDoneDate(update.getEditDate());*/
+                    if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.DONE.getKey()) ||
+                            Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.AUTHED_LEAVE.getKey())){
+                        if(((StringUtils.equals(status.getStockStatus(),"front") && StringUtils.equals(job.getCarCodeFront(),status.getPlateNo()))
+                                ||(!StringUtils.equals(status.getStockStatus(),"front") && StringUtils.equals(job.getCarCodeBack(),status.getPlateNo()))
+                        )){
+                            //璇存槑杞﹁締杩涢敊鏈堝彴 鎴栬�呰繕鏈彨鍙风姸鎬侊紝鍙戣捣璀﹀憡
+//                          dealCarsInErrorPlatformBiz(job,status);
+                            update.setInOut(Constants.ZERO);//杞﹁締宸茬粡绂诲紑
+                            platformJobMapper.updateById(update);
+                        }
+                    }
                 }else  if(StringUtils.equals(status.getMotionStatus(),"enter")){
                     //濡傛灉鏄溅杈嗚繘鍏�
-                    if(!Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())){
+                    if(Constants.equalsInteger(job.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())){
                         if(!((StringUtils.equals(status.getStockStatus(),"front") && StringUtils.equals(job.getCarCodeFront(),status.getPlateNo()))
                                 ||(!StringUtils.equals(status.getStockStatus(),"front") && StringUtils.equals(job.getCarCodeBack(),status.getPlateNo()))
                         )){
                             //璇存槑杞﹁締杩涢敊鏈堝彴 鎴栬�呰繕鏈彨鍙风姸鎬侊紝鍙戣捣璀﹀憡
                             dealCarsInErrorPlatformBiz(job,status);
+                        }else{
+                            //杞﹁締宸茬粡杩涘叆
+                            update.setInOut(Constants.ONE);//杞﹁締宸茬粡杩涘叆
+                            platformJobMapper.updateById(update);
                         }
-
                     }
-                    if(job.getStartDate() == null){
+                    /*if(job.getStartDate() == null){
                         update.setStartDate(update.getEditDate());
                     }
                     update.setStatus(Constants.PlatformJobStatus.WORKING.getKey());//寮�濮嬩綔涓�
+                    */
                 }else{
                     continue;//鍏朵粬鐘舵�佷笉澶勭悊锛岃烦杩�
                 }
@@ -1061,7 +1075,7 @@
         }
         String content =Constants.PlatformLedContent.WRONG_IN.getInfo();
         content = content.replace("${param2}",model.getPlatformName());
-        content = content.replace("${param}",model.getCarCodeFront());
+        content = content.replace("${param}",status.getPlateNo());
         List<String> broadcastList = new ArrayList<>();
         List<String> ledList = new ArrayList<>();
         String bNames = "";
@@ -1082,7 +1096,7 @@
             }
         }
         if(broadcastList.size()>0){
-            PlatformBroadcastLog log = dealBroadcastBiz(model,broadcastList,bNames,Constants.PlatformBroadcastContent.WRONG_IN.getInfo().replace("${param}",model.getCarCodeFront()));
+            PlatformBroadcastLog log = dealBroadcastBiz(model,broadcastList,bNames,Constants.PlatformBroadcastContent.WRONG_IN.getInfo().replace("${param}",status.getPlateNo()));
             logList.add(log);
         }
         if(logList.size()>0){

--
Gitblit v1.9.3