| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | } |
| | | if (Constant.USER_TYPE_30.equals(user.getUserType())) { |
| | | //库区用户 |
| | | return this.listCompany(user.getDeptId()+"",null,null); |
| | | |
| | | List<Company> companies = new ArrayList<>(); |
| | | if (user.getDeptId() != null && StringUtils.isNotBlank(user.getDeptId().toString())) { |
| | | String substring = user.getDeptId().toString().substring(0, user.getDeptId().toString().length() - 3); |
| | | companies = this.listCompany(substring, null, null); |
| | | } |
| | | return companies; |
| | | } |
| | | return this.listCompany(null,user.getCompanyId(),null); |
| | | } |