新增清空表

parent d89843f8
......@@ -113,6 +113,15 @@ public class DqPersonelController {
return new Result<>();
}
@DeleteMapping("delall")
@ApiOperation("清空表")
@LogOperation("清空表")
@RequiresPermissions("dq:dqpersonel:delete")
public Result<Object> delAll(){
dqPersonelService.delAll();
return new Result<>();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
......
......@@ -17,4 +17,6 @@ public interface DqPersonelDao extends BaseDao<DqPersonelEntity> {
boolean saveList(List<DqPersonelEntity> list);
void delAll();
}
\ No newline at end of file
......@@ -15,4 +15,6 @@ public interface DqPersonelService extends CrudService<DqPersonelEntity, DqPerso
void uploadSave(MultipartFile file);
void delAll();
}
\ No newline at end of file
......@@ -94,5 +94,10 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
}
}
@Override
public void delAll() {
baseDao.delAll();
}
}
\ No newline at end of file
......@@ -37,6 +37,10 @@
idcard = values(idcard)
</insert>
<update id="delAll" parameterType="java.util.Map" >
truncate table dq_personel
</update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment