|
@@ -18,10 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -46,16 +43,6 @@ public class VerManageController {
|
|
|
@Autowired
|
|
|
private DictService dictService;
|
|
|
|
|
|
- /**
|
|
|
- * 查询app版本信息
|
|
|
- * @return 单条数据
|
|
|
- */
|
|
|
- @RequestMapping(value = "selectVer", method = RequestMethod.GET)
|
|
|
- @ApiOperation(value = "查询app版本信息")
|
|
|
- public AjaxMessage<VerManageEntity> selectVer() {
|
|
|
- return new AjaxMessage<>(ResultStatus.OK, verManageService.selectVer());
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 查询app版本信息
|
|
|
* @return 单条数据
|
|
@@ -109,6 +96,26 @@ public class VerManageController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除APP版本信息
|
|
|
+ */
|
|
|
+ @PostMapping(value = "deleteVerManage")
|
|
|
+ @ApiOperation(value = "删除版本管理")
|
|
|
+ public AjaxMessage<Object> deleteVerManage(
|
|
|
+ @ApiParam(value = "要删除的版本ID,多个ID之间用逗号隔开", required = true) @RequestBody String ids){
|
|
|
+ String [] idArray = ids.split(",");
|
|
|
+ if(idArray.length==0){
|
|
|
+ return new AjaxMessage<>(ResultStatus.ERROR,"参数异常");
|
|
|
+ }
|
|
|
+ List<String> idList = Arrays.asList(idArray);
|
|
|
+ int result = verManageService.deleteSelective(idList);
|
|
|
+ if(result>0){
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK);
|
|
|
+ }
|
|
|
+ return new AjaxMessage<>(ResultStatus.ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 获取并设置用户、任务工单类型名称
|
|
|
* @param result
|