瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/civilized_city/service

Your Name 2 年之前
父節點
當前提交
f864c4d3d6
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/main/java/com/example/civilizedcity/controller/TdLocTypeController.java

+ 1
- 0
src/main/java/com/example/civilizedcity/controller/TdLocTypeController.java 查看文件

83
     @PutMapping("/tdLocType/{id}")
83
     @PutMapping("/tdLocType/{id}")
84
     public ResponseBean edit(@ApiParam("对象实体") @RequestBody TdLocType tdLocType,
84
     public ResponseBean edit(@ApiParam("对象实体") @RequestBody TdLocType tdLocType,
85
                             @ApiParam("对象ID") @PathVariable String id ) throws Exception {
85
                             @ApiParam("对象ID") @PathVariable String id ) throws Exception {
86
+        tdLocType.setTypeId(id);
86
         tdLocTypeService.updateById(tdLocType);
87
         tdLocTypeService.updateById(tdLocType);
87
         return ResponseBean.success(tdLocType);
88
         return ResponseBean.success(tdLocType);
88
     }
89
     }