Commit fc8501cb by guojuxing

好办小程序应用修改

parent ccdf5d22
...@@ -36,4 +36,14 @@ public class MenuProjectConstants { ...@@ -36,4 +36,14 @@ public class MenuProjectConstants {
* 好办小程序 * 好办小程序
*/ */
public final static String HAO_BAN_WECHAT_PROJECT = "haobanWechat"; public final static String HAO_BAN_WECHAT_PROJECT = "haobanWechat";
/**
* 应用后台
*/
public final static String HAO_BAN_PC_PROJECT = "haobanPC";
/**
* 好办小程序应用
*/
public final static String HAO_BAN_WECHAT_APP_PROJECT = "haobanWechatApp";
} }
...@@ -51,7 +51,7 @@ public class MenuListQO extends PageQO{ ...@@ -51,7 +51,7 @@ public class MenuListQO extends PageQO{
private List<Integer> authTypeList; private List<Integer> authTypeList;
/** /**
* 0:gic 1:好办后台 2:好办小程序 * 0:gic 1:好办后台 2:好办小程序 3:好办应用 4:好办小程序应用
*/ */
private Integer platformType; private Integer platformType;
......
...@@ -324,14 +324,27 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -324,14 +324,27 @@ public class MenuApiServiceImpl implements MenuApiService {
@Override @Override
public ServiceResponse<Void> savePageForHaoban(MenuDTO menuDTO) { public ServiceResponse<Void> savePageForHaoban(MenuDTO menuDTO) {
Integer platformType = menuDTO.getPlatformType(); Integer platformType = menuDTO.getPlatformType();
boolean isRight = platformType != null && (platformType.intValue() == 1 || platformType.intValue() == 2); boolean isRight = platformType != null && (
platformType.intValue() == 1
|| platformType.intValue() == 2
|| platformType.intValue() == 3
|| platformType.intValue() == 4);
if (!isRight) { if (!isRight) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "菜单平台类型值非法"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "菜单平台类型值非法");
} }
if (platformType.intValue() == 1) { switch (platformType) {
menuDTO.setProject(MenuProjectConstants.HAO_BAN_PROJECT); case 1:
} else { menuDTO.setProject(MenuProjectConstants.HAO_BAN_PROJECT);
menuDTO.setProject(MenuProjectConstants.HAO_BAN_WECHAT_PROJECT); break;
case 2:
menuDTO.setProject(MenuProjectConstants.HAO_BAN_WECHAT_PROJECT);
break;
case 3:
menuDTO.setProject(MenuProjectConstants.HAO_BAN_PC_PROJECT);
break;
case 4:
menuDTO.setProject(MenuProjectConstants.HAO_BAN_WECHAT_APP_PROJECT);
break;
} }
return savePage(menuDTO, MenuDTO.SavePageValid.class); return savePage(menuDTO, MenuDTO.SavePageValid.class);
} }
......
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