java110 лет назад: 5
Родитель
Сommit
1d02e44fa7

+ 0 - 3
java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml

@@ -137,9 +137,6 @@
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
         </if>
-        <if test="createTime !=null and createTime != ''">
-            , t.create_time= #{createTime}
-        </if>
         <if test="specCd !=null and specCd != ''">
             , t.spec_cd= #{specCd}
         </if>

+ 6 - 1
service-user/src/main/java/com/java110/user/smo/impl/OwnerAttrInnerServiceSMOImpl.java

@@ -2,13 +2,14 @@ package com.java110.user.smo.impl;
 
 
 import com.java110.core.base.smo.BaseServiceSMO;
-import com.java110.intf.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.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 +73,10 @@ public class OwnerAttrInnerServiceSMOImpl extends BaseServiceSMO implements IOwn
                 BeanConvertUtil.covertBean(user, ownerAttr);
             }
         }
+
+        if (StringUtil.isEmpty(ownerAttr.getValueName())) {
+            ownerAttr.setValueName(ownerAttr.getValue());
+        }
     }
 
     /**