123
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user