|
|
@@ -270,7 +270,19 @@ public class ZnbZlLogService extends ServiceImpl<ZnbZlLogMapper, ZnbZlLog> {
|
|
|
if (jsonObject.getBoolean("requestCode")) {
|
|
|
YatFkcxxx yatFkcxxx = JSONObject.parseObject(jsondata, YatFkcxxx.class);
|
|
|
if (yatFkcxxx != null) {
|
|
|
- if ("等待".equals(yatFkcxxx.getCommandStatus())) {
|
|
|
+ if (yatFkcxxx.getValStatus().contains("无阀门")) {
|
|
|
+ this.lambdaUpdate()
|
|
|
+ .set(ZnbZlLog::getClLock, "0")
|
|
|
+ .set(ZnbZlLog::getClCljg, "1")
|
|
|
+ .set(ZnbZlLog::getClRemessage, "无阀门")
|
|
|
+ .set(ZnbZlLog::getClClsj, new Date())
|
|
|
+ .eq(ZnbZlLog::getId, item.getId())
|
|
|
+ .update();
|
|
|
+ yhCbkxxService.lambdaUpdate()
|
|
|
+ .set(YhCbkxx::getFmzt, "0")
|
|
|
+ .in(YhCbkxx::getCbkid, item.getCbkid())
|
|
|
+ .update();
|
|
|
+ } else if ("等待".equals(yatFkcxxx.getCommandStatus())) {
|
|
|
this.lambdaUpdate()
|
|
|
.set(ZnbZlLog::getClLock, "0")
|
|
|
.set(ZnbZlLog::getClCljg, "8")
|
|
|
@@ -284,11 +296,16 @@ public class ZnbZlLogService extends ServiceImpl<ZnbZlLogMapper, ZnbZlLog> {
|
|
|
if ("成功".equals(yatFkcxxx.getCommandStatus())) {
|
|
|
clcljg = "1";
|
|
|
message = "";
|
|
|
+ yhCbkxxService.lambdaUpdate()
|
|
|
+ .set(YhCbkxx::getFmzt, item.getZlvalue().equals("1") ? "0" : "2")
|
|
|
+ .in(YhCbkxx::getCbkid, item.getCbkid())
|
|
|
+ .update();
|
|
|
}
|
|
|
if ("撤销".equals(yatFkcxxx.getCommandStatus())) {
|
|
|
clcljg = "-2";
|
|
|
message = "指令已撤销";
|
|
|
}
|
|
|
+
|
|
|
this.lambdaUpdate()
|
|
|
.set(ZnbZlLog::getClLock, "0")
|
|
|
.set(ZnbZlLog::getClCljg, clcljg)
|
|
|
@@ -298,6 +315,7 @@ public class ZnbZlLogService extends ServiceImpl<ZnbZlLogMapper, ZnbZlLog> {
|
|
|
.update();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
} else {
|
|
|
this.lambdaUpdate()
|
|
|
.set(ZnbZlLog::getClLock, "0")
|