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