|
|
@@ -109,7 +109,7 @@ public class NewsService implements INewsService {
|
|
|
// 遍历列表,为每个用户插入一条记录
|
|
|
for (String targetUserId : scopeUserIds) {
|
|
|
String insertSql= "";
|
|
|
- if(!Objects.equals(targetUserId, "ALL")){
|
|
|
+ if((!Objects.equals(targetUserId, "ALL"))&&(targetUserId.length()>0)){
|
|
|
insertFlag = true;
|
|
|
insertSql = "INSERT INTO t_ggfwb (id_, create_by_, create_time_, gong_gao_id_, gong_gao_lei_xing, gong_gao_mu_biao_) " +
|
|
|
"VALUES ('%s', '%s', NOW(), '%s', '%s', '%s')";
|