|
@@ -48,10 +48,12 @@ public class AppFosterRecordController {
|
|
|
*/
|
|
|
@PutMapping("")
|
|
|
public R update(@RequestBody FosterRecord updateDTO) {
|
|
|
+ String appUserId = StpAppUtil.getLoginId().toString();
|
|
|
return R.ok().result(
|
|
|
iFosterRecordService.lambdaUpdate()
|
|
|
.set(FosterRecord::getName, updateDTO.getName())
|
|
|
- .eq(FosterRecord::getId, updateDTO.getId())
|
|
|
+ .eq(FosterRecord::getAppUserId, appUserId)
|
|
|
+ .eq(FosterRecord::getGardenId, updateDTO.getGardenId())
|
|
|
.update());
|
|
|
}
|
|
|
|