From 22e8a676ee42c0d78b3526bcd9a635abbe8dca03 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 28 六月 2022 11:28:21 +0800
Subject: [PATCH] 优化databus bug
---
service-user/src/main/java/com/java110/user/smo/impl/OwnerAttrInnerServiceSMOImpl.java | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/service-user/src/main/java/com/java110/user/smo/impl/OwnerAttrInnerServiceSMOImpl.java b/service-user/src/main/java/com/java110/user/smo/impl/OwnerAttrInnerServiceSMOImpl.java
old mode 100644
new mode 100755
index b5e4060..e9ff191
--- a/service-user/src/main/java/com/java110/user/smo/impl/OwnerAttrInnerServiceSMOImpl.java
+++ b/service-user/src/main/java/com/java110/user/smo/impl/OwnerAttrInnerServiceSMOImpl.java
@@ -2,13 +2,15 @@
import com.java110.core.base.smo.BaseServiceSMO;
-import com.java110.core.smo.user.IOwnerAttrInnerServiceSMO;
import com.java110.dto.PageDto;
import com.java110.dto.owner.OwnerAttrDto;
import com.java110.dto.user.UserDto;
+import com.java110.intf.user.IOwnerAttrInnerServiceSMO;
import com.java110.intf.user.IUserInnerServiceSMO;
+import com.java110.po.owner.OwnerAttrPo;
import com.java110.user.dao.IOwnerAttrServiceDao;
import com.java110.utils.util.BeanConvertUtil;
+import com.java110.utils.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@@ -72,6 +74,10 @@
BeanConvertUtil.covertBean(user, ownerAttr);
}
}
+
+ if (StringUtil.isEmpty(ownerAttr.getValueName())) {
+ ownerAttr.setValueName(ownerAttr.getValue());
+ }
}
/**
@@ -93,6 +99,14 @@
public int queryOwnerAttrsCount(@RequestBody OwnerAttrDto ownerAttrDto) {
return ownerAttrServiceDaoImpl.queryOwnerAttrsCount(BeanConvertUtil.beanCovertMap(ownerAttrDto));
}
+ @Override
+ public int saveOwnerAttr(@RequestBody OwnerAttrPo ownerAttrPo) {
+ return ownerAttrServiceDaoImpl.saveOwnerAttr(BeanConvertUtil.beanCovertMap(ownerAttrPo));
+ }
+ @Override
+ public int updateOwnerAttrInfoInstance(@RequestBody OwnerAttrPo ownerAttrPo) {
+ return ownerAttrServiceDaoImpl.updateOwnerAttrInfoInstance(BeanConvertUtil.beanCovertMap(ownerAttrPo));
+ }
public IOwnerAttrServiceDao getOwnerAttrServiceDaoImpl() {
return ownerAttrServiceDaoImpl;
--
Gitblit v1.8.0