Browse Source

测试包管理

master
zhouyl 1 year ago
parent
commit
1abfe9b8f6
  1. 4
      tp-admin/src/main/java/com/inscloudtech/web/controller/system/ToolManageController.java
  2. 2
      tp-system/src/main/java/com/inscloudtech/system/service/IToolManageService.java
  3. 2
      tp-system/src/main/java/com/inscloudtech/system/service/impl/ToolManageServiceImpl.java

4
tp-admin/src/main/java/com/inscloudtech/web/controller/system/ToolManageController.java

@ -106,8 +106,8 @@ public class ToolManageController extends BaseController {
if (StrUtil.isEmpty(toolName)) {
return R.fail("文件名不能为空!");
}
iToolManageService.uploadToolOrTips(file,tipsFile,toolName,moduleName, toolManageId);
return R.ok("上传成功!");
iToolManageService.uploadToolAndTips(file,tipsFile,toolName,moduleName, toolManageId);
return R.ok("操作成功!");
}

2
tp-system/src/main/java/com/inscloudtech/system/service/IToolManageService.java

@ -52,7 +52,7 @@ public interface IToolManageService {
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
Boolean uploadToolOrTips(MultipartFile file, MultipartFile tipsFile, String toolName,String moduleName,Long toolManageId);
Boolean uploadToolAndTips(MultipartFile file, MultipartFile tipsFile, String toolName,String moduleName,Long toolManageId);
void downloadByToolName(DownloadToolRequest downloadToolRequest,HttpServletResponse response);
}

2
tp-system/src/main/java/com/inscloudtech/system/service/impl/ToolManageServiceImpl.java

@ -125,7 +125,7 @@ public class ToolManageServiceImpl implements IToolManageService {
}
@Override
public Boolean uploadToolOrTips(MultipartFile file, MultipartFile tipsFile, String toolName,String moduleName,Long toolManageId) {
public Boolean uploadToolAndTips(MultipartFile file, MultipartFile tipsFile, String toolName,String moduleName,Long toolManageId) {
ToolManage toolManage;
if(null != toolManageId && toolManageId != 0L){
toolManage = baseMapper.selectById(toolManageId);

Loading…
Cancel
Save