ソースを参照

库端url配置添加更新状态查询条件

hefeng 5 年 前
コミット
a32a17110a

+ 4 - 2
src/main/java/com/chinaitop/depot/system/controller/UrlConfigController.java

@@ -65,10 +65,11 @@ public class UrlConfigController {
65
 			@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
65
 			@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
66
 			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
66
 			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
67
 			@ApiImplicitParam(name = "intranetUrl", value = "内网url", paramType = "query"),
67
 			@ApiImplicitParam(name = "intranetUrl", value = "内网url", paramType = "query"),
68
-			@ApiImplicitParam(name = "orgName", value = "所属库", paramType = "query")
68
+			@ApiImplicitParam(name = "orgName", value = "所属库", paramType = "query"),
69
+			@ApiImplicitParam(name = "updateStatus", value = "更新状态", paramType = "query")
69
 	})
70
 	})
70
 	public PageInfo<TUrlConfig> getUrlConfig(HttpServletRequest request, Integer pageNum, Integer pageSize,
71
 	public PageInfo<TUrlConfig> getUrlConfig(HttpServletRequest request, Integer pageNum, Integer pageSize,
71
-    	String intranetUrl, String orgName) {
72
+    	String intranetUrl, String orgName, String updateStatus) {
72
 		
73
 		
73
 		if (pageNum!=null && pageSize!=null) {
74
 		if (pageNum!=null && pageSize!=null) {
74
 			PageHelper.startPage(pageNum, pageSize);
75
 			PageHelper.startPage(pageNum, pageSize);
@@ -77,6 +78,7 @@ public class UrlConfigController {
77
 		HashMap<String, Object> map = new HashMap<String, Object>();
78
 		HashMap<String, Object> map = new HashMap<String, Object>();
78
 		map.put("intranetUrl", intranetUrl);
79
 		map.put("intranetUrl", intranetUrl);
79
 		map.put("orgName", orgName);
80
 		map.put("orgName", orgName);
81
+		map.put("updateStatus", updateStatus);
80
 		List<TUrlConfig> listAll=tUrlConfigService.queryAll(map);
82
 		List<TUrlConfig> listAll=tUrlConfigService.queryAll(map);
81
 		PageInfo<TUrlConfig> pageInfo = new PageInfo<TUrlConfig>(listAll);
83
 		PageInfo<TUrlConfig> pageInfo = new PageInfo<TUrlConfig>(listAll);
82
 		return pageInfo;
84
 		return pageInfo;

+ 8 - 0
src/main/java/com/chinaitop/depot/system/mapper/TUrlConfigMapper.xml

@@ -284,6 +284,14 @@
284
 				<if test="orgName != null and orgName != ''">
284
 				<if test="orgName != null and orgName != ''">
285
 					and org_name like '%${orgName}%'
285
 					and org_name like '%${orgName}%'
286
 				</if>
286
 				</if>
287
+				<if test="updateStatus != null and updateStatus != ''">
288
+					<if test="updateStatus == 0">
289
+						and dv.updateStatus is null
290
+					</if>
291
+					<if test="updateStatus == 1">
292
+						and dv.updateStatus = '已更新'
293
+					</if>
294
+				</if>
287
 		</where>
295
 		</where>
288
 		ORDER BY tuc.time DESC
296
 		ORDER BY tuc.time DESC
289
   </select>
297
   </select>