Sfoglia il codice sorgente

增加应用信息修改接口

marxjaw 3 mesi fa
parent
commit
3485d68d66

+ 15 - 0
yt-middle/middle-platform/src/main/java/com/ytpm/middle/service/impl/AppServiceImpl.java

@@ -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);
+    }
 }