|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.ytpm.agent.model.YtPlatformUserApp;
|
|
|
+import com.ytpm.app.enums.AppTypeEnums;
|
|
|
import com.ytpm.app.model.YtAppDefaultConfig;
|
|
|
import com.ytpm.app.param.AppConfigUpdateParam;
|
|
|
import com.ytpm.general.RepMessage;
|
|
|
@@ -60,11 +61,13 @@ public class AppServiceImpl implements AppService {
|
|
|
*/
|
|
|
@Override
|
|
|
public Result<String> addApp(AppForm form) {
|
|
|
- // 20251118 反馈移除包名唯一校验
|
|
|
-// YtPlatformUserApp old = appMapper.getByPackName(form.getPackageName());
|
|
|
-// if(Objects.nonNull(old)){
|
|
|
-// return Result.resultErr(RepMessage.OBJECT_ALREADY_EXIST);
|
|
|
-// }
|
|
|
+ // 20251118 反馈IOS应用移除包名唯一校验
|
|
|
+ if (form.getAppType() == null || form.getAppType() != 2) {
|
|
|
+ YtPlatformUserApp old = appMapper.getByPackName(form.getPackageName());
|
|
|
+ if (Objects.nonNull(old)) {
|
|
|
+ return Result.resultErr(RepMessage.OBJECT_ALREADY_EXIST);
|
|
|
+ }
|
|
|
+ }
|
|
|
YtPlatformUserApp app = new YtPlatformUserApp();
|
|
|
BeanUtils.copyProperties(form, app);
|
|
|
app.setCreateTime(new Date());
|