|
|
@@ -112,7 +112,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
for(Role role : roles) {
|
|
|
if(role.getDesc().equals("业务员") || role.getDesc().equals("销售经理")) {
|
|
|
prodInfo.setIsSale(Constant.YES);
|
|
|
- } else if(role.getName().equals("采购员")) {
|
|
|
+ } else if(role.getDesc().equals("采购员")) {
|
|
|
prodInfo.setIsPurchase(Constant.YES);
|
|
|
}
|
|
|
}
|
|
|
@@ -264,7 +264,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
for(Role role : roles) {
|
|
|
if(role.getDesc().equals("业务员") || role.getDesc().equals("销售经理")) {
|
|
|
product.setIsSale(Constant.YES);
|
|
|
- } else if(role.getName().equals("采购员")) {
|
|
|
+ } else if(role.getDesc().equals("采购员")) {
|
|
|
product.setIsPurchase(Constant.YES);
|
|
|
}
|
|
|
}
|
|
|
@@ -331,7 +331,7 @@ public class ProductUsersServiceImpl implements ProductUsersService {
|
|
|
product.setIsSale(Constant.YES);
|
|
|
productDao.save(product);
|
|
|
}
|
|
|
- } else if(role.getName().equals("采购员")) {
|
|
|
+ } else if(role.getDesc().equals("采购员")) {
|
|
|
if(product.getIsPurchase() == null || product.getIsPurchase().equals(Constant.NO)) {
|
|
|
product.setIsPurchase(Constant.YES);
|
|
|
productDao.save(product);
|