Commit 05acdf49 by guojuxing

代码优化

parent 1e873f59
......@@ -984,8 +984,7 @@ public class MenuApiServiceImpl implements MenuApiService {
// setMenuAuthType(menuDTO);
setNormalFieldValue(menuDTO);
//3:好办应用
Integer appType = app.getAppType();
boolean isGicApp = appType == null || app.getAppType().equals(MenuPlatformTypeEnum.GIC.getCode());
boolean isGicApp =MenuPlatformTypeEnum.GIC.getCode().equals(app.getAppType());
menuDTO.setPlatformType(isGicApp ? MenuPlatformTypeEnum.GIC.getCode() : MenuPlatformTypeEnum.HAOBAN_APP.getCode());
menuService.savePage(menuDTO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment