Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
354318d9
Commit
354318d9
authored
Jul 31, 2025
by
zhuxiang
Browse files
人员基础代码
parent
799a5186
Changes
4
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/mapper/UserMapper.java
0 → 100644
View file @
354318d9
package
com.platform.mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.platform.model.entity.UserEntity
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
UserMapper
extends
BaseMapper
<
UserEntity
>
{
}
src/main/java/com/platform/model/entity/UserEntity.java
0 → 100644
View file @
354318d9
package
com.platform.model.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
@Data
@TableName
(
"user"
)
public
class
UserEntity
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
int
id
;
private
String
userName
;
private
String
sex
;
private
Integer
age
;
private
String
idCard
;
private
String
idType
;
private
String
basicInfo
;
}
src/main/java/com/platform/service/UserService.java
0 → 100644
View file @
354318d9
package
com.platform.service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.platform.model.entity.UserEntity
;
public
interface
UserService
extends
IService
<
UserEntity
>
{
}
src/main/java/com/platform/service/impl/UserServiceImpl.java
0 → 100644
View file @
354318d9
package
com.platform.service.impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.platform.mapper.UserMapper
;
import
com.platform.model.entity.UserEntity
;
import
com.platform.service.UserService
;
import
org.springframework.stereotype.Service
;
@Service
public
class
UserServiceImpl
extends
ServiceImpl
<
UserMapper
,
UserEntity
>
implements
UserService
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment