//后台 [HttpPost] public ActionResult GetNextLazyLoadProduct(int[] productIdList) { var products = _productService.GetProductsByIds(productIdList); var preparedModel = PrepareProductOverviewModels(products);
实体类: public class AddressTreeDto { private Long id; private String text;//位置名称 private Long pId;//上一级 private Integer able; private List<AddressTreeDto> nodes; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public St
JsonResult类的定义: /*生成Json串*/ public class JsonResult { /** * 返回错误状态的json串 * * @param status 错误代码,非零数值 * @param message 错误消息 * @return CodeMessage */ public static CodeMessage getErrorMessage(final int status, final String message) { return new CodeMes
public ResultBean getSpfl(Integer yyb) { ResultBean res = new ResultBean(); try { JSONArray data = new JSONArray(); String sql = "select * from tspfl_wx where yyb = " + yyb; sql += " and zt=" + GlobalStatusType.SPFlZT_QY; // 一级分类 List&