修复更改PLC版本时不生效的问题
This commit is contained in:
parent
527bb45705
commit
37476b94ba
|
|
@ -103,6 +103,7 @@ public class AppBasePlcDao extends ServiceImpl<AppBasePlcMapper, AppBasePlc> imp
|
||||||
updateWrapper.eq(AppBasePlc::getPlcId, appBasePlc.getPlcId());
|
updateWrapper.eq(AppBasePlc::getPlcId, appBasePlc.getPlcId());
|
||||||
updateWrapper.set(AppStringUtils.isNotEmpty(appBasePlc.getPlcName()), AppBasePlc::getPlcName, appBasePlc.getPlcName())
|
updateWrapper.set(AppStringUtils.isNotEmpty(appBasePlc.getPlcName()), AppBasePlc::getPlcName, appBasePlc.getPlcName())
|
||||||
.set(appBasePlc.getPlcType() != null, AppBasePlc::getPlcType, appBasePlc.getPlcType())
|
.set(appBasePlc.getPlcType() != null, AppBasePlc::getPlcType, appBasePlc.getPlcType())
|
||||||
|
.set(appBasePlc.getPlcVersion() != null, AppBasePlc::getPlcVersion, appBasePlc.getPlcVersion())
|
||||||
.set(appBasePlc.getPlcStatus() != null, AppBasePlc::getPlcStatus, appBasePlc.getPlcStatus())
|
.set(appBasePlc.getPlcStatus() != null, AppBasePlc::getPlcStatus, appBasePlc.getPlcStatus())
|
||||||
.set(AppStringUtils.isNotEmpty(appBasePlc.getIp()), AppBasePlc::getIp, appBasePlc.getIp())
|
.set(AppStringUtils.isNotEmpty(appBasePlc.getIp()), AppBasePlc::getIp, appBasePlc.getIp())
|
||||||
.set(appBasePlc.getPort() != null, AppBasePlc::getPort, appBasePlc.getPort())
|
.set(appBasePlc.getPort() != null, AppBasePlc::getPort, appBasePlc.getPort())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user