Commit 14077d85 by guojuxing

小程序装修页面调整

parent 71c71699
......@@ -63,6 +63,15 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
//如今新增操作流程调整,第一步只新增页面公用参数,组件不会有。
boolean isAddOperation = pageId == null;
TabAppletCustomPage getById = null;
if (!isAddOperation) {
getById = exist(pageId);
if (getById.getEnterpriseId().intValue() == -1) {
isAddOperation = true;
pageId = null;
}
}
ServiceResponse valiParams = this.validParams(enterpriseId, saveType, appType, appId, param);
if(!valiParams.isSuccess()){
return valiParams;
......@@ -130,10 +139,6 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
record.setDeleteFlag(0);
pageId = appletCustomPageService.save(record);
} else {
TabAppletCustomPage getById = appletCustomPageService.getByPageId(pageId);
if (getById == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "页面ID错误,查无数据");
}
if (getById.getEnterpriseId().intValue() == -1) {
//如果编辑的是默认数据,则变成新增一条一摸一样的数据
record.setStatus(1);
......
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