public class RecursionTest {
public String updateCategrotyRel(Integer idMerchant)
throws Exception{
String str = "[{\"idOpeCate\":1,\"name\":\"手机\",\"parentId\":0,"
+ "\"children\":[{\"idOpeCate\":2,\"name\":\"苹果\",\"parentId\":1},"
+ "{\"idOpeCate\":3,\"name\":\"小米\",\"parentId\":1}]},"
+ "{\"idOpeCate\":4,\"name\":\"电脑\",\"parentId\":0}]";
//根据idMerchant获取表中已经勾选的ID
List checkedIds = xxService.getCheckedIds(idMerchant);
str = this.SetCatChecked(str,checkedIds);
return str;
}
private String SetCatChecked(String str, List checkedIds)
throws JsonParseException, JsonMappingException, IOException {
List strList = Js