fangmingyue 2 lat temu
rodzic
commit
2ea5ec1e25

+ 1
- 0
src/main/java/com/example/civilizedcity/controller/TdLocTypeController.java Wyświetl plik

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