Browse Source

提交CAN_WORK代码

zyf 2 years ago
parent
commit
ccc7c55bcb

+ 6 - 1
src/main/java/com/steerinfo/dil/controller/AMScontroller.java

@@ -1697,7 +1697,12 @@ public class AMScontroller{
         return amsFeign.deleteNotice(id);
     }
 
-
+    @ApiOperation(value="获取名字", notes="根据url的id来获取对象名字")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
+    @PostMapping(value = "/queryName/{userId}")//BigDecimal
+    public Map<String, Object> queryName(@PathVariable("userId") String userId) {
+        return amsFeign.queryName(userId);
+    }
 
     @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
     @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")

+ 5 - 0
src/main/java/com/steerinfo/dil/feign/AmsFeign.java

@@ -1477,6 +1477,11 @@ public interface AmsFeign {
     @PostMapping(value = "api/v1/ams/dilnotices/deleteNotice/{id}")
     Map<String, Object> deleteNotice(@PathVariable("id") BigDecimal id);
 
+
+    //获取公告名字
+    @PostMapping(value = "api/v1/ams/dilnotices/queryName/{userId}")
+    Map<String, Object> queryName(@PathVariable("userId") String userId);
+
     //更新公告
     @PostMapping(value = "api/v1/ams/dilnotices/updateNotice")
     Map<String, Object> updateNotice(@RequestBody(required = false) Map<String, Object> map);