首页>代码>spring+spring mvc+hibernate+bootstrap开发小型物业管理系统>/物业管理系统/propertysystem/src/com/www/controller/MaintainCategoryController.java
                
                package com.www.controller;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.google.gson.Gson;
import com.www.service.MaintainCategoryService;
import com.www.service.ProjectService;
@Controller
@RequestMapping("/category")
public class MaintainCategoryController {
	@Resource
private  MaintainCategoryService categoryService;
	@RequestMapping(value ="/tojson")
	@ResponseBody
	protected List jsontest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		System.out.println("进来了?。。。category   jsontest。。");
		String reqBody = request.getParameter("parentId");
		System.out.println(reqBody+"req....................");
		StringBuffer hql = new StringBuffer(" from Maintaincategory where 1=1 ");
		System.out.println(hql+"hql================");
		List param = new ArrayList();
		if(reqBody != null && !"".equals(reqBody)){
			hql.append(" and parentId =?");
			param.add(reqBody);
			System.out.println(param+"param'''''''''''''333===");
		}
		List  list=categoryService.findAll(hql.toString(), param.toArray());
		System.out.println(list+">>>>>>>>>>>>>list");
		return categoryService.findAll(hql.toString(), param.toArray());
	}
	
}
 最近下载更多
最近下载更多
                
                 YhXyHx523     LV6
                2024年4月13日
            
            
        
                768881787     LV7
                2024年4月10日
            
            
        
                A-sunny-day     LV4
                2023年6月11日
            
            
        
                张真狗     LV9
                2023年6月10日
            
            
        
                wangjiedashuaige     LV1
                2023年3月1日
            
            
        
                pangxiangdong     LV4
                2023年1月23日
            
            
        
                2385649653     LV7
                2022年11月2日
            
            
        
                oulingqiao     LV13
                2022年10月20日
            
            
        
                LYLHYC     LV5
                2022年10月12日
            
            
        
                17683946472     LV9
                2022年7月3日
            
            
         最近浏览更多
最近浏览更多
                
                597117933     LV9
                4月24日
            
            
        
                xianyu091012     LV5
                2024年12月26日
            
            
        
                qpzmla    
                2024年12月13日
            
            
                    暂无贡献等级
            
        
                微信网友_6779541724286976    
                2024年11月15日
            
            
                    暂无贡献等级
            
        
                WBelong     LV8
                2024年9月19日
            
            
        
                9631196311    
                2024年9月2日
            
            
                    暂无贡献等级
            
        
                xiao小果     LV13
                2024年8月29日
            
            
        
                xuweisong2010     LV28
                2024年6月5日
            
            
        
                happySuperman     LV2
                2024年6月4日
            
            
        
                gidfsgs    
                2024年6月3日
            
            
                    暂无贡献等级
            
        
 
                 
                 
                