|
@@ -67,6 +67,7 @@ public class FarmController {
|
|
if (userId != 1){
|
|
if (userId != 1){
|
|
return new Result(10001,"该账号不能操作牧场",false);
|
|
return new Result(10001,"该账号不能操作牧场",false);
|
|
}
|
|
}
|
|
|
|
+ farm.setLocation(farm.getFrontLocation());
|
|
farmService.updateById(farm);
|
|
farmService.updateById(farm);
|
|
return new Result(10000,"修改成功",true);
|
|
return new Result(10000,"修改成功",true);
|
|
}
|
|
}
|