|
|
|
@ -28,8 +28,8 @@ public class UpgradeController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("listAll")
|
|
|
|
|
@ApiOperation("查询全部列表")
|
|
|
|
|
public ResponseReult<List<MntnUpgrades>> listAll() {
|
|
|
|
|
List<MntnUpgrades> result = service.listAll();
|
|
|
|
|
public ResponseReult<List<MntnUpgrades>> listAll(Integer type) {
|
|
|
|
|
List<MntnUpgrades> result = service.listAll(type);
|
|
|
|
|
return ResponseReult.success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -41,7 +41,8 @@ public class UpgradeController extends BaseController {
|
|
|
|
|
if (file == null) {
|
|
|
|
|
throw new ApiException("缺少上传的文件");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isBlank(file.getOriginalFilename()) || !file.getOriginalFilename().endsWith(".apk")) {
|
|
|
|
|
if (StringUtils.isBlank(file.getOriginalFilename()) ||
|
|
|
|
|
!file.getOriginalFilename().endsWith(".apk") && !file.getOriginalFilename().endsWith(".zip")) {
|
|
|
|
|
throw new ApiException("文件格式不正确");
|
|
|
|
|
}
|
|
|
|
|
MntnUpgrades record = new MntnUpgrades();
|
|
|
|
|