From c39ebc6929077845c588a7ea8b0fbaa4188a5e1a Mon Sep 17 00:00:00 2001
From: wuzeyu <1223318623@qq.com>
Date: 星期二, 11 六月 2024 16:52:39 +0800
Subject: [PATCH] 修改 平台远程开阀接口 数据库添加传入取水口ID字段      平台远程关阀接口  给取水口字段赋null      完善代码

---
 pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/valve/ValveCtrl.java |  355 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 315 insertions(+), 40 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/valve/ValveCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/valve/ValveCtrl.java
index f79bf18..3d9cbf5 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/valve/ValveCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/valve/ValveCtrl.java
@@ -17,11 +17,15 @@
 import com.dy.pipIrrGlobal.command.ComSupport;
 import com.dy.pipIrrGlobal.daoSe.SeVirtualCardMapper;
 import com.dy.pipIrrGlobal.pojoRm.RmCommandHistory;
+import com.dy.pipIrrGlobal.pojoSe.SeVirtualCard;
+import com.dy.pipIrrGlobal.voRm.VoUnclosedParam;
 import com.dy.pipIrrGlobal.voRm.VoUnclosedValve;
 import com.dy.pipIrrGlobal.voSe.VoVirtualCard;
 import com.dy.pipIrrRemote.common.CommandSv;
+import com.dy.pipIrrRemote.common.dto.DtoBase;
 import com.dy.pipIrrRemote.common.dto.ValveClose;
 import com.dy.pipIrrRemote.common.dto.ValveOpen;
+import com.dy.pipIrrRemote.common.enums.LastOperateENUM;
 import com.dy.pipIrrRemote.result.RemoteResultCode;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import jakarta.validation.Valid;
@@ -33,6 +37,7 @@
 import org.springframework.web.bind.annotation.*;
 
 import java.time.format.DateTimeFormatter;
+import java.util.Date;
 import java.util.List;
 import java.util.Objects;
 
@@ -90,8 +95,6 @@
         if(!setuped) {
             setUp();
         }
-// 鍙栨按鍙D鎹㈠彇姘村彛瀵硅薄
-// 濡傛灉鍙栨按鍙d负鎵撳紑鐘舵�侊紝鍒欎笉鍏佽琚紑闃�
 
         // 铏氭嫙鍗D鎹㈣櫄鎷熷崱瀵硅薄
         VoVirtualCard vc = commandSv.getVcById(vcId);
@@ -174,16 +177,24 @@
                  * 鎵ц鎴愬姛
                  * 鏇存敼铏氭嫙鍗$姸鎬侊細鏄惁浣跨敤涓�佹渶鍚庢搷浣溿�佹渶鍚庢搷浣滄椂闂�
                  */
-                //SeVirtualCard virtualCard = new SeVirtualCard();
-                //virtualCard.setId(vcId);
-                //virtualCard.setInUse((byte) 1);
-                //virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
-                //virtualCard.setLastOperateTime(new Date());
-                //seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
+//                SeVirtualCard virtualCard = new SeVirtualCard();
+//                virtualCard.setId(vcId);
+//                virtualCard.setInUse((byte) 1);
+//                virtualCard.setIntakeId(intakeId);
+//                virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
+//                virtualCard.setLastOperateTime(new Date());
+//                seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
 
                 // 鍥炶皟杩斿洖鐨勫唴瀹�
-                Data myData = (Data)response_CallBack.getContent();
-                return BaseResponseUtils.buildSuccess(myData) ;
+                //Data myData = (Data)response_CallBack.getContent();
+                //return BaseResponseUtils.buildSuccess(myData);
+
+                JSONObject job_response = new JSONObject();
+                job_response.put("rtuAddr", rtuAddr);
+                job_response.put("vcNum", vc.getVcNum());
+                job_response.put("orderNo", orderNo);
+                //job_response.put("operator", operator);
+                return BaseResponseUtils.buildSuccess(job_response);
             } else {
                 // 璇锋眰澶辫触
                 JSONObject job_param = response_SendCom.getJSONObject("content").getJSONObject("param");
@@ -217,15 +228,46 @@
                 // 澶勭悊鍥炶皟
                 BaseResponse response_CallBack = dealWithCallBack(comId);
 
-                //鍥炶皟澶辫触
+                //鍥炶皟寮傚父
                 if(!response_CallBack.getCode().equals("0001")) {
                     // 鍛戒护鏃ュ織鎵ц缁撴灉鏀逛负澶辫触
-                    //rmCommandHistory = new RmCommandHistory();
-                    //rmCommandHistory.setId(comId);
-                    //rmCommandHistory.setResult((byte)0);
-                    //commandSv.updateCommandResult(rmCommandHistory);
-                    return BaseResponseUtils.buildFail(response_CallBack.getMsg());
-                    //return BaseResponseUtils.buildFail(response_CallBack.getContent().toString());
+                    rmCommandHistory = new RmCommandHistory();
+                    rmCommandHistory.setId(comId);
+                    rmCommandHistory.setResult((byte)0);
+                    commandSv.updateCommandResult(rmCommandHistory);
+                    return BaseResponseUtils.buildFail(response_CallBack.getContent().toString());
+                }
+
+                // 鍥炶皟瓒呮椂
+                if(response_CallBack.getContent().toString().equals(RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage())) {
+                    /**
+                     * 鍥炶皟瓒呮椂锛屾殏鏃惰涓烘墽琛屽け璐�
+                     * 鍛戒护缃负澶辫触
+                     * 铏氭嫙鍗′緷鏃т繚鎸佷娇鐢ㄤ腑鐨勭姸鎬�
+                     * 涓嶈繑鍥炲叧闃�鍙傛暟
+                     */
+
+                    rmCommandHistory = new RmCommandHistory();
+                    rmCommandHistory.setId(comId);
+                    rmCommandHistory.setResult((byte)0);
+                    commandSv.updateCommandResult(rmCommandHistory);
+
+                    //SeVirtualCard virtualCard = new SeVirtualCard();
+                    //virtualCard.setId(vcId);
+                    //virtualCard.setInUse((byte) 1);
+                    //virtualCard.setIntakeId(intakeId);
+                    //virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
+                    //virtualCard.setLastOperateTime(new Date());
+                    //seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
+
+                    //JSONObject job_response = new JSONObject();
+                    //job_response.put("message", RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage());
+                    //job_response.put("rtuAddr", rtuAddr);
+                    //job_response.put("vcNum", vc.getVcNum());
+                    //job_response.put("orderNo", orderNo);
+                    //return BaseResponseUtils.buildSuccess(job_response);
+                    return BaseResponseUtils.buildFail(RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage());
+
                 }
 
                 // 鍥炶皟鎴愬姛锛屽啀鍒ゆ柇鎵ц鏄惁鎴愬姛
@@ -242,16 +284,26 @@
                  * 鎵ц鎴愬姛
                  * 鏇存敼铏氭嫙鍗$姸鎬侊細鏄惁浣跨敤涓�佹渶鍚庢搷浣溿�佹渶鍚庢搷浣滄椂闂�
                  */
-                //SeVirtualCard virtualCard = new SeVirtualCard();
-                //virtualCard.setId(vcId);
-                //virtualCard.setInUse((byte) 1);
-                //virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
-                //virtualCard.setLastOperateTime(new Date());
-                //seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
+                SeVirtualCard virtualCard = new SeVirtualCard();
+                virtualCard.setId(vcId);
+                virtualCard.setInUse((byte) 1);
+                virtualCard.setIntakeId(intakeId);
+                virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
+                virtualCard.setLastOperateTime(new Date());
+                seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
 
                 // 鍥炶皟杩斿洖鐨勫唴瀹�
-                Data myData = (Data)response_CallBack.getContent();
-                return BaseResponseUtils.buildSuccess(myData) ;
+                //Data myData = (Data)response_CallBack.getContent();
+                //return BaseResponseUtils.buildSuccess(myData) ;
+
+                JSONObject job_response = new JSONObject();
+                job_response.put("message", "ok");
+                job_response.put("rtuAddr", rtuAddr);
+                job_response.put("vcNum", vc.getVcNum());
+                job_response.put("orderNo", orderNo);
+                //job_response.put("operator", operator);
+                return BaseResponseUtils.buildSuccess(job_response);
+
             } else {
                 // 璇锋眰澶辫触
                 JSONObject job_param = response_SendCom.getJSONObject("content").getJSONObject("param");
@@ -263,7 +315,7 @@
     }
 
     /**
-     * 骞冲彴杩滅▼鍏抽榾
+     * 骞冲彴杩滅▼鍏抽榾_鍙傛暟妯″紡
      * @param valve
      * @param bindingResult
      * @return
@@ -294,6 +346,207 @@
             return BaseResponseUtils.buildError(RemoteResultCode.RTU_NOT_EXIST.getMessage());
         }
         Long intakeId = job_rtu.getLong("intakeId");
+        String protocol = job_rtu.getString("protocol");
+
+        String commandCode = null;
+        if(protocol.equals("p206V202404")) {
+            // 鑾峰彇鍔熻兘鐮�
+            commandCode = CodeV202404.cd_93;
+
+            // 鍒涘缓瑙嗗浘
+            ComCd93_A3Vo param = new ComCd93_A3Vo();
+            param.controllerType = controllerType;
+            param.projectNo = projectNo;
+            param.icCardNo = vcNum;
+            param.orderNo = orderNo;
+
+            // 鏋勯�犲懡浠�
+            Command com = command(comId, commandCode, rtuAddr, protocol, rtuResultSendWebUrl, param);
+
+            // 鍙戦�佸懡浠�
+            JSONObject response_SendCom= (JSONObject) JSON.toJSON(sendCom2Mw(com));
+            if(response_SendCom != null && response_SendCom.getString("code").equals("0001")) {
+                // 璇锋眰鎴愬姛
+
+                // 鍒涘缓鍛戒护鏃ュ織瀵硅薄骞舵坊鍔犲埌鏁版嵁搴撲腑
+                String commandName = CodeV202404.getCodeName(commandCode);
+                RmCommandHistory rmCommandHistory = getComHistory(comId, commandCode, commandName, intakeId, rtuAddr, protocol, param, operator);
+                commandSv.insert(rmCommandHistory);
+
+                // 澶勭悊鍥炶皟
+                BaseResponse response_CallBack = dealWithCallBack(comId);
+
+                // 鍥炶皟澶辫触
+                if(!response_CallBack.getCode().equals("0001")) {
+                    // 鍛戒护鏃ュ織鎵ц缁撴灉鏀逛负澶辫触
+                    //rmCommandHistory = new RmCommandHistory();
+                    //rmCommandHistory.setId(comId);
+                    //rmCommandHistory.setResult((byte)0);
+                    //commandSv.updateCommandResult(rmCommandHistory);
+                    return BaseResponseUtils.buildFail(response_CallBack.getMsg());
+                    //return BaseResponseUtils.buildError(WechatResultCode.GET_RESULT_ERROR.getMessage());
+                }
+
+                // 鍥炶皟鎴愬姛锛屽啀鍒ゆ柇鎵ц鏄惁鎴愬姛
+                JSONObject job_content = (JSONObject)JSON.toJSON(response_CallBack.getContent());
+                System.out.println(job_content);
+                JSONObject job_subData = (JSONObject) job_content.getJSONObject("subData").getJSONObject("subData");
+                System.out.println(job_subData);
+                Boolean dealResult = job_subData.getBoolean("success");
+                if(!dealResult) {
+                    return BaseResponseUtils.buildFail(response_CallBack.getContent().toString());
+                }
+
+                /**
+                 * 鎵ц鎴愬姛
+                 * 鏇存敼铏氭嫙鍗$姸鎬侊細鏄惁浣跨敤涓�佹渶鍚庢搷浣溿�佹渶鍚庢搷浣滄椂闂�
+                 */
+                //SeVirtualCard virtualCard = seVirtualCardMapper.getVcCardByNum(vcNum);
+                //virtualCard.setInUse((byte) 0);
+                //virtualCard.setIntakeId(null);
+                //virtualCard.setLastOperate(LastOperateENUM.CLOSE_VALVE.getCode());
+                //virtualCard.setLastOperateTime(new Date());
+                //seVirtualCardMapper.updateByPrimaryKey(virtualCard);
+
+                // 鍥炶皟杩斿洖鐨勫唴瀹�
+                Data myData = (Data)response_CallBack.getContent();
+                return BaseResponseUtils.buildSuccess(myData) ;
+            } else {
+                // 璇锋眰澶辫触
+                JSONObject job_param = response_SendCom.getJSONObject("content").getJSONObject("param");
+                return BaseResponseUtils.buildFail(job_param.getString("message"));
+            }
+        } else if(protocol.equals("p206V1_0_1")) {
+            // 鑾峰彇鍔熻兘鐮�
+            commandCode = CodeV1_0_1.cd_93;
+
+            // 鍒涘缓瑙嗗浘
+            Com98Vo param = new Com98Vo() ;
+            param.icCardNo = vcNum;
+            param.orderNo = orderNo;
+
+            // 鏋勯�犲懡浠�
+            Command com = command(comId, commandCode, rtuAddr, protocol, rtuResultSendWebUrl, param);
+
+            // 鍙戦�佸懡浠�
+            JSONObject response_SendCom= (JSONObject) JSON.toJSON(sendCom2Mw(com));
+            if(response_SendCom != null && response_SendCom.getString("code").equals("0001")) {
+                //if(1 > 0) {
+                // 璇锋眰鎴愬姛
+
+                // 鍒涘缓鍛戒护鏃ュ織瀵硅薄骞舵坊鍔犲埌鏁版嵁搴撲腑
+                String commandName = CodeV1_0_1.getCodeName(commandCode);
+                RmCommandHistory rmCommandHistory = getComHistory(comId, commandCode, commandName, intakeId, rtuAddr, protocol, param, operator);
+                commandSv.insert(rmCommandHistory);
+
+                // 澶勭悊鍥炶皟
+                BaseResponse response_CallBack = dealWithCallBack(comId);
+
+                // 鍥炶皟寮傚父
+                if(!response_CallBack.getCode().equals("0001")) {
+                    // 鍛戒护鏃ュ織鎵ц缁撴灉鏀逛负澶辫触
+                    rmCommandHistory = new RmCommandHistory();
+                    rmCommandHistory.setId(comId);
+                    rmCommandHistory.setResult((byte)0);
+                    commandSv.updateCommandResult(rmCommandHistory);
+                    return BaseResponseUtils.buildFail(response_CallBack.getContent().toString());
+                }
+
+                // 鍥炶皟瓒呮椂
+                if(response_CallBack.getContent().toString().equals(RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage())) {
+                    /**
+                     * 鍥炶皟瓒呮椂锛屾殏鏃惰涓烘墽琛屽け璐�
+                     * 鍛戒护缃负澶辫触
+                     * 铏氭嫙鍗′緷鏃т繚鎸佷娇鐢ㄤ腑鐨勭姸鎬�
+                     */
+
+                    rmCommandHistory = new RmCommandHistory();
+                    rmCommandHistory.setId(comId);
+                    rmCommandHistory.setResult((byte)0);
+                    commandSv.updateCommandResult(rmCommandHistory);
+
+
+                    //SeVirtualCard virtualCard = seVirtualCardMapper.getVcCardByNum(vcNum);
+                    //virtualCard.setInUse((byte) 0);
+                    //virtualCard.setIntakeId(null);
+                    //virtualCard.setLastOperate(LastOperateENUM.CLOSE_VALVE.getCode());
+                    //virtualCard.setLastOperateTime(new Date());
+                    //seVirtualCardMapper.updateByPrimaryKey(virtualCard);
+                    return BaseResponseUtils.buildFail(RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage());
+                }
+
+                // 鍥炶皟鎴愬姛锛屽啀鍒ゆ柇鎵ц鏄惁鎴愬姛
+                JSONObject job_content = (JSONObject)JSON.toJSON(response_CallBack.getContent());
+                System.out.println(job_content);
+                JSONObject job_subData = (JSONObject) job_content.getJSONObject("subData").getJSONObject("subData");
+                System.out.println(job_subData);
+                Boolean dealResult = job_subData.getBoolean("success");
+                if(!dealResult) {
+                    return BaseResponseUtils.buildFail(response_CallBack.getContent().toString());
+                }
+
+                /**
+                 * 鎵ц鎴愬姛
+                 * 鏇存敼铏氭嫙鍗$姸鎬侊細鏄惁浣跨敤涓�佹渶鍚庢搷浣溿�佹渶鍚庢搷浣滄椂闂�
+                 */
+                SeVirtualCard virtualCard = seVirtualCardMapper.getVcCardByNum(vcNum);
+                virtualCard.setInUse((byte) 0);
+                virtualCard.setIntakeId(null);
+                virtualCard.setLastOperate(LastOperateENUM.CLOSE_VALVE.getCode());
+                virtualCard.setLastOperateTime(new Date());
+                seVirtualCardMapper.updateByPrimaryKey(virtualCard);
+
+                // 鍥炶皟杩斿洖鐨勫唴瀹�
+                Data myData = (Data)response_CallBack.getContent();
+                return BaseResponseUtils.buildSuccess(myData) ;
+            } else {
+                // 璇锋眰澶辫触
+                JSONObject job_param = response_SendCom.getJSONObject("content").getJSONObject("param");
+                return BaseResponseUtils.buildFail(job_param.getString("message"));
+            }
+        } else {
+            return BaseResponseUtils.buildFail("绯荤粺鏆備笉鏀寔璇ュ崗璁�");
+        }
+    }
+
+    /**
+     * 骞冲彴杩滅▼鍏抽榾_鍙栨按鍙fā寮�
+     * @param dtoBase
+     * @param bindingResult
+     * @return
+     */
+    @PostMapping(path = "close_intake", consumes = MediaType.APPLICATION_JSON_VALUE)
+    @Transactional(rollbackFor = Exception.class)
+    @SsoAop()
+    public BaseResponse<Boolean> closeByIntake(@RequestBody @Valid DtoBase dtoBase, BindingResult bindingResult) {
+        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyMMddHHmmss");
+        if(bindingResult != null && bindingResult.hasErrors()){
+            return BaseResponseUtils.buildFail(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage());
+        }
+
+        Long intakeId = dtoBase.getIntakeId();
+        Long operator = dtoBase.getOperator();
+
+        VoUnclosedParam voUnclosedParam = commandSv.getUncloseParam(intakeId);
+        if(voUnclosedParam == null) {
+            return BaseResponseUtils.buildSuccess(RemoteResultCode.VALVE_CLOSED.getMessage());
+        }
+        String rtuAddr = voUnclosedParam.getRtuAddr();
+        String vcNum = voUnclosedParam.getVcNum();
+        String orderNo = voUnclosedParam.getOrderNo();
+        Long comId = idLongGenerator.generate();
+
+        // 鑾峰彇绯荤粺鍙傛暟
+        if(!setuped) {
+            setUp();
+        }
+
+        // 闃�鎺у櫒鍦板潃鎹㈠彇姘村彛ID鍜岄�氳鍗忚
+        JSONObject job_rtu = getRtu(null, rtuAddr);
+        if(job_rtu == null) {
+            return BaseResponseUtils.buildError(RemoteResultCode.RTU_NOT_EXIST.getMessage());
+        }
+        //Long intakeId = job_rtu.getLong("intakeId");
         String protocol = job_rtu.getString("protocol");
 
         String commandCode = null;
@@ -391,15 +644,37 @@
                 // 澶勭悊鍥炶皟
                 BaseResponse response_CallBack = dealWithCallBack(comId);
 
-                // 鍥炶皟澶辫触
+                // 鍥炶皟寮傚父
                 if(!response_CallBack.getCode().equals("0001")) {
                     // 鍛戒护鏃ュ織鎵ц缁撴灉鏀逛负澶辫触
-                    //rmCommandHistory = new RmCommandHistory();
-                    //rmCommandHistory.setId(comId);
-                    //rmCommandHistory.setResult((byte)0);
-                    //commandSv.updateCommandResult(rmCommandHistory);
-                    return BaseResponseUtils.buildFail(response_CallBack.getMsg());
-                    //return BaseResponseUtils.buildError(WechatResultCode.GET_RESULT_ERROR.getMessage());
+                    rmCommandHistory = new RmCommandHistory();
+                    rmCommandHistory.setId(comId);
+                    rmCommandHistory.setResult((byte)0);
+                    commandSv.updateCommandResult(rmCommandHistory);
+                    return BaseResponseUtils.buildFail(response_CallBack.getContent().toString());
+                }
+
+                // 鍥炶皟瓒呮椂
+                if(response_CallBack.getContent().toString().equals(RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage())) {
+                    /**
+                     * 鍥炶皟瓒呮椂锛屾殏鏃惰涓烘墽琛屽け璐�
+                     * 鍛戒护缃负澶辫触
+                     * 铏氭嫙鍗′緷鏃т繚鎸佷娇鐢ㄤ腑鐨勭姸鎬�
+                     */
+
+                    rmCommandHistory = new RmCommandHistory();
+                    rmCommandHistory.setId(comId);
+                    rmCommandHistory.setResult((byte)0);
+                    commandSv.updateCommandResult(rmCommandHistory);
+
+                    //Long vcId = seVirtualCardMapper.getVcIdByNum(vcNum);
+                    //SeVirtualCard virtualCard = new SeVirtualCard();
+                    //virtualCard.setId(vcId);
+                    //virtualCard.setInUse((byte) 0);
+                    //virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
+                    //virtualCard.setLastOperateTime(new Date());
+                    //seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
+                    return BaseResponseUtils.buildFail(RemoteResultCode.GET_RESULT_IN_ONE_MINUTE.getMessage());
                 }
 
                 // 鍥炶皟鎴愬姛锛屽啀鍒ゆ柇鎵ц鏄惁鎴愬姛
@@ -416,13 +691,13 @@
                  * 鎵ц鎴愬姛
                  * 鏇存敼铏氭嫙鍗$姸鎬侊細鏄惁浣跨敤涓�佹渶鍚庢搷浣溿�佹渶鍚庢搷浣滄椂闂�
                  */
-                //Long vcId = seVirtualCardMapper.getVcIdByNum(vcNum);
-                //SeVirtualCard virtualCard = new SeVirtualCard();
-                //virtualCard.setId(vcId);
-                //virtualCard.setInUse((byte) 0);
-                //virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
-                //virtualCard.setLastOperateTime(new Date());
-                //seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
+                Long vcId = seVirtualCardMapper.getVcIdByNum(vcNum);
+                SeVirtualCard virtualCard = new SeVirtualCard();
+                virtualCard.setId(vcId);
+                virtualCard.setInUse((byte) 0);
+                virtualCard.setLastOperate(LastOperateENUM.OPEN_VALVE.getCode());
+                virtualCard.setLastOperateTime(new Date());
+                seVirtualCardMapper.updateByPrimaryKeySelective(virtualCard);
 
                 // 鍥炶皟杩斿洖鐨勫唴瀹�
                 Data myData = (Data)response_CallBack.getContent();

--
Gitblit v1.8.0