Browse Source

show business logs

anderx 8 years ago
parent
commit
358fb5dc6a

+ 4 - 2
src/main/java/com/goafanti/admin/controller/BusinessProjectController.java

@@ -4,7 +4,8 @@ package com.goafanti.admin.controller;
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 
-
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
@@ -28,7 +29,7 @@ public class BusinessProjectController extends CertifyApiController{
 	@Resource
 	BusinessProjectService businessprojectService;
 	
-	
+	private Logger logger = LoggerFactory.getLogger(BusinessProjectController.class);
 	
 	/**
 	 * 新增项目
@@ -126,6 +127,7 @@ public class BusinessProjectController extends CertifyApiController{
 	@RequestMapping(value = "/getAllCname", method = RequestMethod.GET)
 	public Result getAllCname(Integer flag){
 		Result res=new Result();
+		logger.debug("get all cname come *************************");
 		res.setData(businessprojectService.getAllCnames(flag));
 		return res;
 	}

+ 2 - 3
src/main/java/com/goafanti/admin/service/impl/BusinessProjectServiceImpl.java

@@ -150,7 +150,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 	public List<Map<String, String>> getAllCnames(Integer flag) {
 		List<Map<String, String>> list=new ArrayList<Map<String, String>>();
 		List<String> listcid=businessVarietiesMapper.getListId();
-		
+		System.out.println("this  is service start -----------------------");
 		for (String s : listcid) {
 			Map<String, String> map=new HashMap<>(); 
 			String cname=getAllCname(s);
@@ -166,8 +166,7 @@ public class BusinessProjectServiceImpl extends BaseMybatisDao<BusinessProjectMa
 					list.add(map);
 				}
 			}
-			
-			
+			System.out.println("this  is service end -----------------------");	
 			
 		}
 		return list;