|
@ -1,6 +1,5 @@ |
|
|
package com.example.demo.serviceImpl; |
|
|
package com.example.demo.serviceImpl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.example.demo.domain.entity.Detail; |
|
|
import com.example.demo.domain.entity.Detail; |
|
|
import com.example.demo.domain.entity.User; |
|
|
import com.example.demo.domain.entity.User; |
|
|
import com.example.demo.domain.vo.UserVo; |
|
|
import com.example.demo.domain.vo.UserVo; |
|
@ -13,7 +12,6 @@ import org.springframework.cache.annotation.CacheConfig; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.util.ObjectUtils; |
|
|
import org.springframework.util.ObjectUtils; |
|
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
@Transactional |
|
|
@Transactional |
|
@ -30,7 +28,11 @@ public class UserServiceImpl implements UserSevice { |
|
|
if(ObjectUtils.isEmpty(sUser)){ |
|
|
if(ObjectUtils.isEmpty(sUser)){ |
|
|
throw new Exception("无此精网号"); |
|
|
throw new Exception("无此精网号"); |
|
|
} |
|
|
} |
|
|
// if(sUser.getArea()!=) |
|
|
|
|
|
|
|
|
if(!userVo.getArea().equals("总部")){ |
|
|
|
|
|
if(!sUser.getArea().equals(userVo.getArea())){ |
|
|
|
|
|
throw new Exception("该地区查无此号"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
return userMapper.selectA(userVo); |
|
|
return userMapper.selectA(userVo); |
|
|
} |
|
|
} |
|
|
@Override |
|
|
@Override |
|
|