|
@@ -252,8 +252,8 @@ public class EquipmentSendNotifyServiceImpl implements EquipmentSendNotifyServic
|
|
|
|
|
|
// 发送人
|
|
|
List<String> userId;
|
|
|
- List<String> useDeptRoleUserIds = commonDao.getRoleUserIds("'车间主任','车间维修主管','车间保养主管'", "so.ID='" + aspCheckItems.getUsedeptid() + "'");
|
|
|
- List<String> factoryRoleUserIds = commonDao.getRoleUserIds("'设备部部门长'", "(so.FULLPID like '," + aspCheckItems.getTenantid() + "%' or so.ID='" + aspCheckItems.getTenantid() + "')");
|
|
|
+ List<String> useDeptRoleUserIds = commonDao.getRoleUserIds("'lczg','wms','role054'", "so.ID='" + aspCheckItems.getUsedeptid() + "'");
|
|
|
+ List<String> factoryRoleUserIds = commonDao.getRoleUserIds("'hoed'", "(so.FULLPID like '," + aspCheckItems.getTenantid() + "%' or so.ID='" + aspCheckItems.getTenantid() + "')");
|
|
|
if (useDeptRoleUserIds.size() > 0 && factoryRoleUserIds.size() > 0) {
|
|
|
userId = Stream.of(useDeptRoleUserIds, factoryRoleUserIds).flatMap(Collection::stream).distinct().collect(Collectors.toList());
|
|
|
} else if (useDeptRoleUserIds.size() == 0) {
|
|
@@ -292,8 +292,8 @@ public class EquipmentSendNotifyServiceImpl implements EquipmentSendNotifyServic
|
|
|
|
|
|
// 发送人
|
|
|
List<String> userId;
|
|
|
- List<String> useDeptRoleUserIds = commonDao.getRoleUserIds("'车间主任','车间维修主管'", "so.ID='" + equMaintenanceOrderDo.getWorkshopid() + "'");
|
|
|
- List<String> factoryRoleUserIds = commonDao.getRoleUserIds("'设备部部门长','设备部维修主管'", "(so.FULLPID like '," + equMaintenanceOrderDo.getTenantid() + "%' or so.ID='" + equMaintenanceOrderDo.getTenantid() + "')");
|
|
|
+ List<String> useDeptRoleUserIds = commonDao.getRoleUserIds("'lczg','wms'", "so.ID='" + equMaintenanceOrderDo.getWorkshopid() + "'");
|
|
|
+ List<String> factoryRoleUserIds = commonDao.getRoleUserIds("'hoed','edms'", "(so.FULLPID like '," + equMaintenanceOrderDo.getTenantid() + "%' or so.ID='" + equMaintenanceOrderDo.getTenantid() + "')");
|
|
|
if (useDeptRoleUserIds.size() > 0 && factoryRoleUserIds.size() > 0) {
|
|
|
userId = Stream.of(useDeptRoleUserIds, factoryRoleUserIds).flatMap(Collection::stream).distinct().collect(Collectors.toList());
|
|
|
} else if (useDeptRoleUserIds.size() == 0) {
|
|
@@ -597,11 +597,11 @@ public class EquipmentSendNotifyServiceImpl implements EquipmentSendNotifyServic
|
|
|
}
|
|
|
// 需接收提醒用户ID
|
|
|
List<String> userIds = commonDao.getRoleUserIds(
|
|
|
- "'车间主任','车间保养主管'", "so.ID IN (" + stringBuilder + ")"
|
|
|
+ "'lczg','role054'", "so.ID IN (" + stringBuilder + ")"
|
|
|
);
|
|
|
userIds.addAll(
|
|
|
commonDao.getRoleUserIds(
|
|
|
- "'设备部部门长','设备部保养主管'", "(so.FULLPID like '," + plantId + "%' or so.ID='" + plantId + "')"
|
|
|
+ "'hoed','equ_byzg'", "(so.FULLPID like '," + plantId + "%' or so.ID='" + plantId + "')"
|
|
|
)
|
|
|
);
|
|
|
|