|
|
@@ -90,4 +90,19 @@ public class AppServiceImpl implements AppService {
|
|
|
appMapper.updateById(app);
|
|
|
return Result.resultOk(RepMessage.GRANT_SUCCESS);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改上架应用信息
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Result<String> updateApp(AppForm form) {
|
|
|
+ YtPlatformUserApp old = appMapper.getByPrimary(form.getAppId());
|
|
|
+ if(Objects.isNull(old)){
|
|
|
+ return Result.resultErr(RepMessage.OBJECT_NOT_EXIST);
|
|
|
+ }
|
|
|
+ YtPlatformUserApp app = new YtPlatformUserApp();
|
|
|
+ BeanUtils.copyProperties(form, app);
|
|
|
+ appMapper.updateById(app);
|
|
|
+ return Result.resultOk(RepMessage.GRANT_SUCCESS);
|
|
|
+ }
|
|
|
}
|