Browse Source

素材审核列表页

Signed-off-by: jiapeng.dong <jiapeng.dong@cloudcross.com>
jiapeng.dong 9 years ago
parent
commit
eddf2ceaf4

+ 2 - 16
src/main/java/com/cloudcross/ssp/model/mapper/audit-banner.sql.xml

@@ -257,14 +257,7 @@
 			and b.name like #{value}
 		</if>
 		<if test="operatorChecked!=null">
-		<choose>
-			<when test="operatorChecked == 0">
-				and ISNULL(bo.checked) or bo.checked =0
-			</when>
-			<otherwise>
-				and bo.checked=#{operatorChecked}
-			</otherwise>	
-		</choose>
+			and bo.checked=#{operatorChecked}
 		</if>
 		<if test="agentId!=null">
 			and b.agent_id = #{agentId}
@@ -295,14 +288,7 @@
 			and b.name like #{value}
 		</if>
 		<if test="operatorChecked!=null">
-		<choose>
-			<when test="operatorChecked == 0">
-				and ISNULL(bo.checked) or bo.checked =0
-			</when>
-			<otherwise>
-				and bo.checked=#{operatorChecked}
-			</otherwise>	
-		</choose>
+			and bo.checked=#{operatorChecked}
 		</if>
 		<if test="agentId!=null">
 			and b.agent_id = #{agentId}

+ 18 - 18
src/main/java/com/cloudcross/ssp/web/back/main/audit/AuditController.java

@@ -39,24 +39,24 @@ public class AuditController extends SimpleController{
 	/**
 	 * @return 返回到广告主资质审核第一页。
 	 */
-	@RequestMapping
-	public String index(Model model,
-			@RequestParam HashMap<String, Object> paramMap,
-			@RequestParam(defaultValue="1") int page) {	
-		int totalRow = auditService.countByParams(paramMap);
-		Pager pager = new Pager();
-		pager.setPage(page);
-		System.out.println("luo0:" + paramMap);
-		pager.setTotalRow(totalRow);
-		List<Audit> auditList = auditService.findByParams(paramMap, pager);
-		
-		System.out.println(auditList.toString());
-		model.addAllAttributes(paramMap);
-		model.addAttribute("pager", pager);
-		model.addAttribute("auditList", auditList);
-		return page("index");
-	}
-	
+//	@RequestMapping
+//	public String index(Model model,
+//			@RequestParam HashMap<String, Object> paramMap,
+//			@RequestParam(defaultValue="1") int page) {	
+//		int totalRow = auditService.countByParams(paramMap);
+//		Pager pager = new Pager();
+//		pager.setPage(page);
+//		System.out.println("luo0:" + paramMap);
+//		pager.setTotalRow(totalRow);
+//		List<Audit> auditList = auditService.findByParams(paramMap, pager);
+//		
+//		System.out.println(auditList.toString());
+//		model.addAllAttributes(paramMap);
+//		model.addAttribute("pager", pager);
+//		model.addAttribute("auditList", auditList);
+//		return page("index");
+//	}
+//	
 	@RequestMapping("/list")
 	public String list(Model model,
 			@RequestParam HashMap<String, Object> paramMap,