This commit is contained in:
张良(004796)
2024-02-05 15:46:29 +08:00
parent 144c5d1335
commit caac9f5cc1
14 changed files with 176 additions and 80 deletions

View File

@@ -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;
}