增加数据源测试效果
parent
b2b3405747
commit
fa9a9979ec
|
@ -34,10 +34,9 @@ public class SourceController extends BaseController {
|
|||
* 导出
|
||||
*/
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SourceReq sourceReq) {
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
List<Source> list= sourceService.selectSourceList(sourceReq);
|
||||
ExcelUtil<Source> util = new ExcelUtil<>(Source.class);
|
||||
public void export(HttpServletResponse response, SourceReq source) {
|
||||
List<Source> list = sourceService.selectSourceList(source);
|
||||
ExcelUtil<Source> util = new ExcelUtil<Source>(Source.class);
|
||||
util.exportExcel(response,list,"基础信息");
|
||||
}
|
||||
|
||||
|
@ -57,16 +56,17 @@ public class SourceController extends BaseController {
|
|||
*/
|
||||
@PostMapping("/insert")
|
||||
public Result add(@RequestBody Source sourceReq) {
|
||||
|
||||
return toAjax(sourceService.insertBasicConfigInfo(sourceReq));
|
||||
}
|
||||
|
||||
|
||||
//批量删除
|
||||
@DeleteMapping("{ids}")
|
||||
public Integer delete(@PathVariable("ids") String ids) {
|
||||
return sourceService.deleteByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
|
|
|
@ -9,6 +9,7 @@ import java.util.List;
|
|||
|
||||
@Mapper
|
||||
public interface SourceMapper extends BaseMapper<Source> {
|
||||
|
||||
List<Source> selectSourceList(SourceReq sourceReq);
|
||||
|
||||
Integer updataSource(Source sourceReq);
|
||||
|
|
|
@ -88,6 +88,8 @@ public class SourceServiceImpl extends ServiceImpl<SourceMapper, Source> impleme
|
|||
// .createBy(SecurityUtils.getUsername())
|
||||
// .createTime(new Date())
|
||||
// .build();
|
||||
|
||||
|
||||
} catch (SQLException e) {
|
||||
return 0;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue