Commit ee7afaae by guojuxing

调整字段名

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