Commit ee7afaae by guojuxing

调整字段名

parent 9711b374
...@@ -85,7 +85,7 @@ public class AppletWechatMenuDTO implements Serializable{ ...@@ -85,7 +85,7 @@ public class AppletWechatMenuDTO implements Serializable{
/***********************/ /***********************/
private List<AppletWechatMenuDTO> secondMenuList; private List<AppletWechatMenuDTO> child;
private boolean isFirstLevel; private boolean isFirstLevel;
public Integer getMenuId() { public Integer getMenuId() {
...@@ -200,12 +200,12 @@ public class AppletWechatMenuDTO implements Serializable{ ...@@ -200,12 +200,12 @@ public class AppletWechatMenuDTO implements Serializable{
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public List<AppletWechatMenuDTO> getSecondMenuList() { public List<AppletWechatMenuDTO> getChild() {
return secondMenuList; return child;
} }
public AppletWechatMenuDTO setSecondMenuList(List<AppletWechatMenuDTO> secondMenuList) { public AppletWechatMenuDTO setChild(List<AppletWechatMenuDTO> child) {
this.secondMenuList = secondMenuList; this.child = child;
return this; return this;
} }
......
...@@ -81,7 +81,7 @@ public class WechatMenuController { ...@@ -81,7 +81,7 @@ public class WechatMenuController {
//校验填充后可以保存的实体类 //校验填充后可以保存的实体类
AppletWechatMenuDTO hasValidOfFirst = (AppletWechatMenuDTO) response.getResult(); AppletWechatMenuDTO hasValidOfFirst = (AppletWechatMenuDTO) response.getResult();
List<AppletWechatMenuDTO> secondList = first.getSecondMenuList(); List<AppletWechatMenuDTO> secondList = first.getChild();
if (CollectionUtils.isNotEmpty(secondList)) { if (CollectionUtils.isNotEmpty(secondList)) {
saveItemCount += secondList.size(); saveItemCount += secondList.size();
...@@ -104,7 +104,7 @@ public class WechatMenuController { ...@@ -104,7 +104,7 @@ public class WechatMenuController {
//校验填充后可以保存的实体类 //校验填充后可以保存的实体类
listSecondOfHasValid.add((AppletWechatMenuDTO) responseOfSecond.getResult()); listSecondOfHasValid.add((AppletWechatMenuDTO) responseOfSecond.getResult());
} }
hasValidOfFirst.setSecondMenuList(listSecondOfHasValid); hasValidOfFirst.setChild(listSecondOfHasValid);
} }
listOfHasValid.add(hasValidOfFirst); listOfHasValid.add(hasValidOfFirst);
} }
...@@ -122,7 +122,7 @@ public class WechatMenuController { ...@@ -122,7 +122,7 @@ public class WechatMenuController {
temp.setSort(i + 1); temp.setSort(i + 1);
ServiceResponse<Integer> response = appletWechatMenuApiService.saveOfHasValid(temp); ServiceResponse<Integer> response = appletWechatMenuApiService.saveOfHasValid(temp);
Integer parentId = response.getResult(); Integer parentId = response.getResult();
List<AppletWechatMenuDTO> tempSecond = temp.getSecondMenuList(); List<AppletWechatMenuDTO> tempSecond = temp.getChild();
if (CollectionUtils.isNotEmpty(tempSecond)) { if (CollectionUtils.isNotEmpty(tempSecond)) {
for (int j = 0, length = tempSecond.size(); j < length; j ++) { for (int j = 0, length = tempSecond.size(); j < length; j ++) {
AppletWechatMenuDTO tempOfSecond = tempSecond.get(j); AppletWechatMenuDTO tempOfSecond = tempSecond.get(j);
......
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