From 4686841f5b8803b04c6debaf6c7d5c50cae25d18 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期五, 28 八月 2020 16:16:31 +0800 Subject: [PATCH] #v2.1.1 --- src/main/java/com/zy/core/model/protocol/StaProtocol.java | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/core/model/protocol/StaProtocol.java b/src/main/java/com/zy/core/model/protocol/StaProtocol.java index 436f03b..4cc0e75 100644 --- a/src/main/java/com/zy/core/model/protocol/StaProtocol.java +++ b/src/main/java/com/zy/core/model/protocol/StaProtocol.java @@ -1,5 +1,6 @@ package com.zy.core.model.protocol; +import com.zy.asrs.entity.BasDevp; import lombok.Data; /** @@ -40,7 +41,20 @@ private boolean inreq1; // 閿佸畾鏍囪 - private boolean pakMk; + private boolean pakMk = true; + + public BasDevp toSqlModel(){ + BasDevp basDevp = new BasDevp(); + basDevp.setDevNo(siteId); + basDevp.setWrkNo(workNo.intValue()); + // 绔欑偣 todo:luxiaotao + basDevp.setAutoing(autoing?"Y":"N"); + basDevp.setLoading(loading?"Y":"N"); + basDevp.setInEnable(inEnable?"Y":"N"); + basDevp.setOutEnable(outEnable?"Y":"N"); + basDevp.setInreq1(inreq1?"Y":"N"); + return basDevp; + } } -- Gitblit v1.9.1