Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
b4418eed
Commit
b4418eed
authored
Nov 01, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台新增用户
parent
535f55bf
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
459 additions
and
539 deletions
+459
-539
ch-dao/src/main/java/com/wwdz/ch/db/domain/Admin.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Admin.java
+290
-72
ch-dao/src/main/java/com/wwdz/ch/db/domain/AdminExample.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/AdminExample.java
+145
-281
ch-dao/src/main/java/com/wwdz/ch/db/impl/dts/DtsAdminDaoImpl.java
...rc/main/java/com/wwdz/ch/db/impl/dts/DtsAdminDaoImpl.java
+5
-3
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AdminMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AdminMapper.java
+7
-73
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/AdminMapper.xml
.../src/main/resources/com/wwdz/ch/db/mapper/AdminMapper.xml
+12
-110
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/domain/Admin.java
View file @
b4418eed
This diff is collapsed.
Click to expand it.
ch-dao/src/main/java/com/wwdz/ch/db/domain/AdminExample.java
View file @
b4418eed
This diff is collapsed.
Click to expand it.
ch-dao/src/main/java/com/wwdz/ch/db/impl/dts/DtsAdminDaoImpl.java
View file @
b4418eed
...
...
@@ -11,6 +11,7 @@ import org.springframework.util.StringUtils;
import
javax.annotation.Resource
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.List
;
@Service
...
...
@@ -57,7 +58,7 @@ public class DtsAdminDaoImpl implements DtsAdminDao {
@Override
public
int
updateById
(
Admin
admin
)
{
admin
.
setUpdateTime
(
LocalDateTime
.
now
());
admin
.
setUpdateTime
(
new
Date
());
return
adminMapper
.
updateByPrimaryKeySelective
(
admin
);
}
...
...
@@ -68,8 +69,9 @@ public class DtsAdminDaoImpl implements DtsAdminDao {
@Override
public
void
add
(
Admin
admin
)
{
admin
.
setAddTime
(
LocalDateTime
.
now
());
admin
.
setUpdateTime
(
LocalDateTime
.
now
());
Date
now
=
new
Date
();
admin
.
setAddTime
(
now
);
admin
.
setUpdateTime
(
now
);
adminMapper
.
insertSelective
(
admin
);
}
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/AdminMapper.java
View file @
b4418eed
...
...
@@ -6,49 +6,19 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
public
interface
AdminMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
long
countByExample
(
AdminExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
deleteByExample
(
AdminExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
insert
(
Admin
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
insertSelective
(
Admin
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -57,7 +27,7 @@ public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -66,82 +36,46 @@ public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
Admin
>
selectByExampleSelective
(
@Param
(
"example"
)
AdminExample
example
,
@Param
(
"selective"
)
Admin
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
List
<
Admin
>
selectByExample
(
AdminExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Admin
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
Admin
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
Admin
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Admin
selectByPrimaryKeyWithLogicalDelete
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"andLogicalDeleted"
)
boolean
andLogicalDeleted
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
Admin
record
,
@Param
(
"example"
)
AdminExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
Admin
record
,
@Param
(
"example"
)
AdminExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
Admin
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
Admin
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
@@ -150,7 +84,7 @@ public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table
dts_
admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/AdminMapper.xml
View file @
b4418eed
This diff is collapsed.
Click to expand it.
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