Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
dqms
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuhuanchao
dqms
Commits
f6ae235e
Commit
f6ae235e
authored
Nov 14, 2022
by
PC-202210251227\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增清空表
parent
d89843f8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
0 deletions
+22
-0
DqPersonelController.java
...a/io/hmit/modules/dq/controller/DqPersonelController.java
+9
-0
DqPersonelDao.java
...n/src/main/java/io/hmit/modules/dq/dao/DqPersonelDao.java
+2
-0
DqPersonelService.java
...in/java/io/hmit/modules/dq/service/DqPersonelService.java
+2
-0
DqPersonelServiceImpl.java
...o/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
+5
-0
DqPersonelDao.xml
hmit-admin/src/main/resources/mapper/dq/DqPersonelDao.xml
+4
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqPersonelController.java
View file @
f6ae235e
...
@@ -113,6 +113,15 @@ public class DqPersonelController {
...
@@ -113,6 +113,15 @@ public class DqPersonelController {
return
new
Result
<>();
return
new
Result
<>();
}
}
@DeleteMapping
(
"delall"
)
@ApiOperation
(
"清空表"
)
@LogOperation
(
"清空表"
)
@RequiresPermissions
(
"dq:dqpersonel:delete"
)
public
Result
<
Object
>
delAll
(){
dqPersonelService
.
delAll
();
return
new
Result
<>();
}
@GetMapping
(
"export"
)
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@LogOperation
(
"导出"
)
...
...
hmit-admin/src/main/java/io/hmit/modules/dq/dao/DqPersonelDao.java
View file @
f6ae235e
...
@@ -16,5 +16,7 @@ import java.util.List;
...
@@ -16,5 +16,7 @@ import java.util.List;
public
interface
DqPersonelDao
extends
BaseDao
<
DqPersonelEntity
>
{
public
interface
DqPersonelDao
extends
BaseDao
<
DqPersonelEntity
>
{
boolean
saveList
(
List
<
DqPersonelEntity
>
list
);
boolean
saveList
(
List
<
DqPersonelEntity
>
list
);
void
delAll
();
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/dq/service/DqPersonelService.java
View file @
f6ae235e
...
@@ -15,4 +15,6 @@ public interface DqPersonelService extends CrudService<DqPersonelEntity, DqPerso
...
@@ -15,4 +15,6 @@ public interface DqPersonelService extends CrudService<DqPersonelEntity, DqPerso
void
uploadSave
(
MultipartFile
file
);
void
uploadSave
(
MultipartFile
file
);
void
delAll
();
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/dq/service/impl/DqPersonelServiceImpl.java
View file @
f6ae235e
...
@@ -94,5 +94,10 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
...
@@ -94,5 +94,10 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
}
}
}
}
@Override
public
void
delAll
()
{
baseDao
.
delAll
();
}
}
}
\ No newline at end of file
hmit-admin/src/main/resources/mapper/dq/DqPersonelDao.xml
View file @
f6ae235e
...
@@ -37,6 +37,10 @@
...
@@ -37,6 +37,10 @@
idcard = values(idcard)
idcard = values(idcard)
</insert>
</insert>
<update
id=
"delAll"
parameterType=
"java.util.Map"
>
truncate table dq_personel
</update>
...
...
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