This commit is contained in:
张良(004796)
2024-01-23 10:28:43 +08:00
parent 219ee646a9
commit c207732467
7 changed files with 59 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.math.BigDecimal;
/**
* 用户Service业务层处理
@@ -124,13 +125,16 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
vo.setAvatar(user.getAvatar());
vo.setPrice(0L);
vo.setServiceCount(0L);
vo.setAge(user.getAge());
vo.setOrderSwitch(1);
vo.setGiveScore(BigDecimal.valueOf(5));
if(anchor != null){
vo.setPrice(anchor.getPrice());
if(anchor.getOrderSwitch() == 2){ // 不隐藏接单数
vo.setServiceCount(anchor.getServiceCount());
}
vo.setOrderSwitch(anchor.getOrderSwitch());
vo.setGiveScore(anchor.getGiveScore());
}
vo.setCity(user.getCity());
vo.setCityId(user.getCityId());