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
e0fe1f97
Commit
e0fe1f97
authored
Sep 01, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类目新增字段
parent
be9309db
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
226 additions
and
817 deletions
+226
-817
ch-dao/src/main/java/com/wwdz/ch/db/domain/Category.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Category.java
+41
-377
ch-dao/src/main/java/com/wwdz/ch/db/domain/CategoryExample.java
.../src/main/java/com/wwdz/ch/db/domain/CategoryExample.java
+21
-265
ch-dao/src/main/java/com/wwdz/ch/db/impl/CategoryDaoImpl.java
...ao/src/main/java/com/wwdz/ch/db/impl/CategoryDaoImpl.java
+4
-3
ch-dao/src/main/java/com/wwdz/ch/db/mapper/CategoryMapper.java
...o/src/main/java/com/wwdz/ch/db/mapper/CategoryMapper.java
+11
-61
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CategoryMapper.xml
...c/main/resources/com/wwdz/ch/db/mapper/CategoryMapper.xml
+149
-111
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/domain/Category.java
View file @
e0fe1f97
This diff is collapsed.
Click to expand it.
ch-dao/src/main/java/com/wwdz/ch/db/domain/CategoryExample.java
View file @
e0fe1f97
This diff is collapsed.
Click to expand it.
ch-dao/src/main/java/com/wwdz/ch/db/impl/CategoryDaoImpl.java
View file @
e0fe1f97
...
...
@@ -14,6 +14,7 @@ import javax.annotation.Resource;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
@Service
...
...
@@ -94,7 +95,7 @@ public class CategoryDaoImpl implements CategoryDao {
}
public
int
updateById
(
Category
category
)
{
category
.
setUpdated
(
LocalDateTime
.
now
());
category
.
setUpdated
(
new
Date
());
return
categoryMapper
.
updateByPrimaryKeySelective
(
category
);
}
...
...
@@ -103,8 +104,8 @@ public class CategoryDaoImpl implements CategoryDao {
}
public
void
add
(
Category
category
)
{
category
.
setCreated
(
LocalDateTime
.
now
());
category
.
setUpdated
(
LocalDateTime
.
now
());
category
.
setCreated
(
new
Date
());
category
.
setUpdated
(
new
Date
());
categoryMapper
.
insertSelective
(
category
);
}
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/CategoryMapper.java
View file @
e0fe1f97
...
...
@@ -6,46 +6,17 @@ import java.util.List;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
CategoryMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
long
countByExample
(
CategoryExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
deleteByExample
(
CategoryExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
insert
(
Category
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
insertSelective
(
Category
record
);
/**
...
...
@@ -73,14 +44,19 @@ public interface CategoryMapper {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
Category
>
selectByExampleSelective
(
@Param
(
"example"
)
CategoryExample
example
,
@Param
(
"selective"
)
Category
.
Column
...
selectiv
e
);
Category
selectOneByExampleWithBLOBs
(
CategoryExample
exampl
e
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
Category
>
selectByExampleSelective
(
@Param
(
"example"
)
CategoryExample
example
,
@Param
(
"selective"
)
Category
.
Column
...
selective
);
List
<
Category
>
selectByExampleWithBLOBs
(
CategoryExample
example
);
List
<
Category
>
selectByExample
(
CategoryExample
example
);
/**
...
...
@@ -92,44 +68,18 @@ public interface CategoryMapper {
*/
Category
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
Category
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
Category
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
Category
record
,
@Param
(
"example"
)
CategoryExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
Category
record
,
@Param
(
"example"
)
CategoryExample
example
);
int
updateByExample
(
@Param
(
"record"
)
Category
record
,
@Param
(
"example"
)
CategoryExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
Category
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table category
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
Category
record
);
int
updateByPrimaryKey
(
Category
record
);
/**
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CategoryMapper.xml
View file @
e0fe1f97
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