hexiao 2 سال پیش
والد
کامیت
ffefc58637

+ 2 - 0
purchase-system/src/main/java/com/ozs/system/mapper/SysUserMapper.java

@@ -4,6 +4,7 @@ import java.util.List;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.ozs.common.core.domain.entity.SysRole;
+import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import com.ozs.common.core.domain.entity.SysUser;
 
@@ -12,6 +13,7 @@ import com.ozs.common.core.domain.entity.SysUser;
  *
  * @author ruoyi
  */
+@Mapper
 public interface SysUserMapper extends BaseMapper<SysUser>
 {
     /**

+ 12 - 5
purchase-system/src/main/java/com/ozs/system/service/impl/SysUserServiceImpl.java

@@ -545,15 +545,22 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
                 log.error(msg, e);
             }
         }
-        if (failureNum > 0)
-        {
+        if (failureNum > 0) {
             failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
             throw new ServiceException(failureMsg.toString());
-        }
-        else
-        {
+        } else {
             successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
         }
         return successMsg.toString();
     }
+
+    @Override
+    public int saveUser(SysUser user) {
+        return 0;
+    }
+
+    @Override
+    public int updateUsers(SysUser user) {
+        return 0;
+    }
 }