123333
This commit is contained in:
@@ -122,6 +122,9 @@ public class CurrentUserManager {
|
||||
LambdaUpdateWrapper<Anchor> update =
|
||||
Wrappers.lambdaUpdate(Anchor.class).eq(Anchor::getUserId, anchorUpdate.getUserId());
|
||||
if(anchorUpdate.getPrice() != null){
|
||||
if(anchorUpdate.getPrice() < 150 || anchorUpdate.getPrice() > 1500){
|
||||
throw new ServiceException("主播价格不能低于150和高于1500");
|
||||
}
|
||||
update.set(Anchor::getPrice,anchorUpdate.getPrice());
|
||||
updateFlag=true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user