Explorar el Código

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

hefeng hace 5 años
padre
commit
a32a17110a

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

@@ -65,10 +65,11 @@ public class UrlConfigController {
65 65
 			@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
66 66
 			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
67 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 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 74
 		if (pageNum!=null && pageSize!=null) {
74 75
 			PageHelper.startPage(pageNum, pageSize);
@@ -77,6 +78,7 @@ public class UrlConfigController {
77 78
 		HashMap<String, Object> map = new HashMap<String, Object>();
78 79
 		map.put("intranetUrl", intranetUrl);
79 80
 		map.put("orgName", orgName);
81
+		map.put("updateStatus", updateStatus);
80 82
 		List<TUrlConfig> listAll=tUrlConfigService.queryAll(map);
81 83
 		PageInfo<TUrlConfig> pageInfo = new PageInfo<TUrlConfig>(listAll);
82 84
 		return pageInfo;

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

@@ -284,6 +284,14 @@
284 284
 				<if test="orgName != null and orgName != ''">
285 285
 					and org_name like '%${orgName}%'
286 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 295
 		</where>
288 296
 		ORDER BY tuc.time DESC
289 297
   </select>