|
|
@@ -107,7 +107,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
List<Role> roles = roleService.findByEnUUAndUserUU(enuu, useruu);
|
|
|
if(!CollectionUtils.isEmpty(roles)) {
|
|
|
for(Role role : roles) {
|
|
|
- if(role.getName().equals("业务员") || role.getName().equals("销售经理")) {
|
|
|
+ if(role.getDesc().equals("业务员") || role.getDesc().equals("销售经理")) {
|
|
|
prodInfo.setIsSale(Constant.YES);
|
|
|
} else if(role.getName().equals("采购员")) {
|
|
|
prodInfo.setIsPurchase(Constant.YES);
|
|
|
@@ -255,7 +255,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
List<Role> roles = roleService.findByEnUUAndUserUU(enuu, useruu);
|
|
|
if(!CollectionUtils.isEmpty(roles)) {
|
|
|
for(Role role : roles) {
|
|
|
- if(role.getName().equals("业务员") || role.getName().equals("销售经理")) {
|
|
|
+ if(role.getDesc().equals("业务员") || role.getDesc().equals("销售经理")) {
|
|
|
product.setIsSale(Constant.YES);
|
|
|
} else if(role.getName().equals("采购员")) {
|
|
|
product.setIsPurchase(Constant.YES);
|