xiaoyong931011
2021-06-29 357f148f73eed2b25da6ecd13bc3e632c07d4c11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
package com.xzx.gc.order.service;
 
import cn.hutool.core.codec.Base64;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xzx.gc.common.constant.Constants;
import com.xzx.gc.common.constant.OrderEnum;
import com.xzx.gc.common.constant.SysConfigConstant;
import com.xzx.gc.common.utils.BusinessSimpleUtil;
import com.xzx.gc.common.utils.BusinessUtil;
import com.xzx.gc.common.utils.StringUtils;
import com.xzx.gc.entity.ConfigInfo;
import com.xzx.gc.entity.OrderAppraiseInfo;
import com.xzx.gc.entity.OrderInfo;
import com.xzx.gc.entity.ResourceInfo;
import com.xzx.gc.model.admin.AppraiseInfoTotalModel;
import com.xzx.gc.model.admin.XzxOrderAppraiseInfoModel;
import com.xzx.gc.model.order.QueryReceiverTotalListDTO;
import com.xzx.gc.model.order.QueryReceiverTotalListResDTO;
import com.xzx.gc.order.mapper.ConfigMapper;
import com.xzx.gc.order.mapper.OrderAppraiseInfoMapper;
import com.xzx.gc.order.mapper.OrderMapper;
import com.xzx.gc.order.mapper.ResourceInfoMapper;
import com.xzx.gc.util.DateUtil;
import com.xzx.gc.util.DoubleUtil;
import com.xzx.gc.util.enums.EvaluationLabelType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
import tk.mybatis.mapper.entity.Example;
import tk.mybatis.mapper.util.StringUtil;
 
import javax.servlet.http.HttpServletRequest;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
 
@Service
@Transactional
public class OrderAppraiseInfoService {
 
    @Autowired
    private OrderAppraiseInfoMapper orderAppraiseInfoMapper;
 
    @Autowired
    private OrderMapper orderMapper;
 
    @Autowired
    private ResourceInfoMapper resourceInfoMapper;
 
    @Autowired
    private ConfigMapper configMapper;
 
    @Autowired
    private CityPartnerService cityPartnerService;
 
    @Autowired
    private HttpServletRequest request;
 
    @Autowired
    private BusinessUtil businessUtil;
 
    @Autowired
    private ConfigService configService;
 
 
    /**
     * 根据订单查询评价 目前仅支持1次评价
     * @param orderId
     * @return
     */
    public OrderAppraiseInfo findByOrderId(String orderId){
        OrderAppraiseInfo orderAppraiseInfo = new OrderAppraiseInfo();
        orderAppraiseInfo.setOrderId(orderId);
        orderAppraiseInfo.setDelFlag(Convert.toShort(Constants.DEL_NOT_FLAG));
        List<OrderAppraiseInfo> orderAppraiseInfo1 = orderAppraiseInfoMapper.select(orderAppraiseInfo);
        if(CollUtil.isNotEmpty(orderAppraiseInfo1)){
            return orderAppraiseInfo1.get(0);
        }
        return null;
    }
 
    public OrderAppraiseInfo findById(Long id){
        OrderAppraiseInfo orderAppraiseInfo = orderAppraiseInfoMapper.selectByPrimaryKey(id);
        if(orderAppraiseInfo!=null){
            orderAppraiseInfo.setContent(encodeOrDecode(orderAppraiseInfo.getContent(), 1));
        }
        return orderAppraiseInfo;
    }
 
    /**
     * 查询回收员的评价
     * @param receiver
     * @return
     */
    public List<OrderAppraiseInfo> findByReceiver(String receiver){
        Example example=new Example(OrderAppraiseInfo.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("delFlag",Convert.toShort(Constants.DEL_NOT_FLAG));
        criteria.andEqualTo("receiverId",receiver);
        example.setOrderByClause("create_time desc");
        return orderAppraiseInfoMapper.selectByExample(example);
    }
 
    /**
     * 查询综合评分、完成订单数 总共被评价数
     * @param receiver 回收员ID
     * @return
     */
    public OrderAppraiseInfo findStarInfo(String receiver,String createUserId){
        OrderAppraiseInfo orderAppraiseInfo = new OrderAppraiseInfo();
        orderAppraiseInfo.setDelFlag(Convert.toShort(Constants.DEL_NOT_FLAG));
        orderAppraiseInfo.setReceiverId(receiver);
        List<OrderAppraiseInfo> select = findByReceiver(receiver);
        if (CollUtil.isNotEmpty(select)) {
            Double sum = select.stream().mapToDouble(x -> Convert.toDouble(x.getStar())).sum();
            double div = NumberUtil.div(sum, Convert.toDouble(select.size()));
            orderAppraiseInfo.setNum(select.size());
            String s = NumberUtil.roundStr(div, 1, RoundingMode.DOWN);
            orderAppraiseInfo.setStar(s);
        } else {
            orderAppraiseInfo.setStar("0.0");
            orderAppraiseInfo.setNum(0);
        }
 
        Example example = new Example(OrderInfo.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("receiver", receiver);
        List<String> list = new ArrayList<>();
        list.add(OrderEnum.待入库.getValue());
        list.add(OrderEnum.入库中.getValue());
        list.add(OrderEnum.完成.getValue());
        criteria.andIn("orderStatus", list);
        int i = orderMapper.selectCountByExample(example);
        orderAppraiseInfo.setCompleteOrderNum(i);
        //预计时间 服务中多一个用户多1小时
        int fwzNum;
        List<OrderInfo> listReceive = orderMapper.findListOrderReceiveTime(receiver);
        if(CollUtil.isEmpty(listReceive)){
            fwzNum= 0;
        }else {
            List<String> collect = listReceive.stream().map(x -> x.getCreateUserId()).collect(Collectors.toList());
            if(StrUtil.isNotBlank(createUserId)) {
                fwzNum= collect.indexOf(createUserId);
                fwzNum=fwzNum==-1?collect.size():fwzNum;
            }else {
                fwzNum= collect.size();
            }
        }
        orderAppraiseInfo.setQueueNum(fwzNum);
        return orderAppraiseInfo;
    }
 
 
    /**
     * 处理资源和标签信息
     * @param orderAppraiseInfo1
     * @return
     */
    public void changeResouceAndTag(OrderAppraiseInfo orderAppraiseInfo1){
        String resourceIds = orderAppraiseInfo1.getResourceIds();
 
        List<ResourceInfo> resourceList=new ArrayList<>();
 
        List<String> tagValues=new ArrayList<>();
 
 
        if(StrUtil.isNotBlank(resourceIds)){
            for (String id:resourceIds.split(",")) {
                ResourceInfo resourceInfo = resourceInfoMapper.selectByPrimaryKey(id);
                resourceList.add(resourceInfo);
            }
            orderAppraiseInfo1.setResourceList(resourceList);
        }
        String tagCodes = orderAppraiseInfo1.getTagCodes();
 
        if(StrUtil.isNotBlank(tagCodes)){
            for (String id:tagCodes.split(",")) {
                ConfigInfo configInfo=new ConfigInfo();
                configInfo.setConfigTypeCode(id);
                ConfigInfo configInfo1 = configMapper.selectOne(configInfo);
                if(configInfo1!=null){
                    tagValues.add(configInfo1.getConfigValue());
                    String configTypeName = configInfo1.getConfigTypeName();
                    orderAppraiseInfo1.setTagSummary(configTypeName);
 
                }
            }
            orderAppraiseInfo1.setTagValues(tagValues);
        }
    }
 
 
 
 
    public Map<String,Object> queryAppraiseInfolist(@RequestBody XzxOrderAppraiseInfoModel model){
        List<String> partnerIds = cityPartnerService.queryPartnerByCurrent();
        model.setPartnerIds(partnerIds);
        Map<String,Object> map = new HashMap<>();
        PageHelper.startPage(model.getPage(),model.getLimit());
        List<XzxOrderAppraiseInfoModel> list = orderAppraiseInfoMapper.queryAppraiseInfoList(model);
        for(XzxOrderAppraiseInfoModel infoModel:list) {
            String nickName = infoModel.getUserName();
            if(nickName!=null&&!"".equals(nickName)){
                nickName =Base64.decodeStr(nickName);
 
            }
 
 
            infoModel.setUserName(nickName);
            infoModel.setRelaName(infoModel.getUserName());
            infoModel.setMobilePhone(infoModel.getUserPhone());
            infoModel.setName(infoModel.getReceiverName());
 
            String value ="tagAppraise"+infoModel.getStar();
            infoModel.setStarDesc(orderAppraiseInfoMapper.queryConfigByAppraseInfo(value));
            String tag = infoModel.getTagCodes();
            if(null!=tag&&!"".equals(tag)){
                String[] strs = tag.split(",");
                List<String> codes = new ArrayList<>();
                for (String str:strs) {
                    codes.add(str);
                }
                List<String> tagValues = orderAppraiseInfoMapper.queryConfigByTagCode(codes);
                //拼接服务打标
                StringBuffer buf = new StringBuffer();
                for (int i=0;i<tagValues.size();i++) {
                    if(i==0){
                        buf.append(tagValues.get(i)) ;
                    }else{
                        buf.append("、").append(tagValues.get(i));
                    }
                }
                infoModel.setTagDesc(buf.toString());
            }else{
                infoModel.setTagCodes("-");
                infoModel.setTagDesc("-");
            }
            //拼接图片
            List<String> urls = new ArrayList<>();
            String resourceIds = infoModel.getResourceIds();
            if(null!=resourceIds&&!"".equals(resourceIds)){
                String[] resIds = resourceIds.split(",");
                List<String> resArr = new ArrayList<>();
                for (String res:resIds) {
                    resArr.add(res);
                }
                if(resArr.size()>0){
                     urls = orderAppraiseInfoMapper.queryResourceUrls(resArr);
                    infoModel.setImgUrls(urls);
                }
 
            }
            if(null!=infoModel.getContent()&&!"".equals(infoModel.getContent())){
                    if(StringUtils.isBase64(infoModel.getContent())){
                        infoModel.setContent(Base64.decodeStr(infoModel.getContent()));
                    }
 
            }else{
                infoModel.setContent("-");
 
            }
 
        }
 
        PageInfo<XzxOrderAppraiseInfoModel> pageInfo=new PageInfo<>(list);
        map.put("data",list);
        map.put("code",0);
        map.put("count",pageInfo.getTotal());
        return map;
    }
 
    public Map<String,Object> queryReceiverTotalList(XzxOrderAppraiseInfoModel model){
        String partnerId = model.getPartnerId();
        String name = model.getName();
        String receiverId = model.getReceiverId();
 
        List<String> partnerIds = new ArrayList<>();
 
        if(businessUtil.isWeb(request.getHeader("clientType"))){
            if(null!=partnerId&&!"".equals(partnerId)){
                partnerIds.add(partnerId);
            }else{
                partnerIds = cityPartnerService.queryPartnerByCurrent();
            }
        }
 
        PageHelper.startPage(model.getPage(),model.getLimit());
        List<Map<String,Object>> list = orderAppraiseInfoMapper.queryReceiverTotalList(name,partnerIds,receiverId);
        PageInfo<Map<String,Object>> pageInfo=new PageInfo<>(list);
 
        for (Map<String,Object> map:list) {
            String star = DoubleUtil.roundOne(map.get("star").toString());
            map.put("star",star);
        }
        Map<String,Object> map = new HashMap<>();
        map.put("code",0);
        map.put("data",list);
        map.put("count",pageInfo.getTotal());
        return map;
    }
 
    public AppraiseInfoTotalModel queryAppraiseInfoTotalList(AppraiseInfoTotalModel paramModel){
        List<String> partnerIds=new ArrayList<>();
        if(businessUtil.isWeb(request.getHeader("clientType"))) {
            partnerIds = cityPartnerService.queryPartnerByCurrent();
        }
        AppraiseInfoTotalModel model = new AppraiseInfoTotalModel();
        model.setBehaveBadlyNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.ONE_TYPE));
        model.setSeriousTardinessNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.TWO_TYPE));
        model.setLowProcessingEfficiencyNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.THREE_TYPE));
        model.setPoorServiceAwarenessNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.FOUR_TYPE));
        model.setBadAttitudeNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.FIVE_TYPE));
        model.setLateArrivalNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.SIX_TYPE));
        model.setLowProcessingNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.SENVEN_TYPE));
        model.setLowServiceNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.EIGHT_TYPE));
        model.setSoAttitudeNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.NINE_TYPE));
        model.setNoLateNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.TEN_TYPE));
        model.setProcessingNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.ELE_TYPE));
        model.setServiceAwarenessNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.TELF_TYPE));
        model.setGoodAttitudeNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.THR_TYPE));
        model.setOnTimeNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.FOR_TYPE));
        model.setGoodProcessingNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.FIV_TYPE));
        model.setGoodServiceAwarenessNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.SI_TYPE));
        model.setGoodPaySatisfiedNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.SEV_TYPE));
        model.setGoodServiceSatisfiedNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.EIG_TYPE));
        model.setGreatRecyclerNumDesc(orderAppraiseInfoMapper.queryConfigByTagCodeOne(EvaluationLabelType.NIG_TYPE));
        //保存星级个数汇总
        List<Map<String,Object>> starList = orderAppraiseInfoMapper.queryStarTotalNum(partnerIds,paramModel.getReceiverId());
        for (Map<String,Object> obj:starList) {
            String star = obj.get("star").toString();
            String starNum = obj.get("num").toString();
            if(star.equals("1")){
                model.setOneStarNum(starNum);
            }else if(star.equals("2")){
                model.setTwoStarNum(starNum);
            }else if(star.equals("3")){
                model.setThreeStarNum(starNum);
            }else if(star.equals("4")){
                model.setFourStarNum(starNum);
            }else if(star.equals("5")){
                model.setFiveStarNum(starNum);
            }
            List<String> codesList = getModelCodeList(star);
            if(codesList.size()>0){
                for (String codesl:codesList) {
                    String[] codesStrs = codesl.split(",");
                    for (String codes:codesStrs) {
                        getConfigNum(model,codes);
 
                    }
                }
 
            }
 
        }
        return model;
    }
 
    private List<String> getModelCodeList(String star){
        return orderAppraiseInfoMapper.getModelCodeList(star);
    }
 
    private AppraiseInfoTotalModel getConfigNum(AppraiseInfoTotalModel model, String configTypeCode){
 
        //无法直接使用switch case,因为是String类型
        switch (DateUtil.getCaseByType(configTypeCode)) {
            case 1:model.setBehaveBadlyNum((Integer.parseInt(model.getBehaveBadlyNum())+1)+""); break;
            case 2:model.setSeriousTardinessNum((Integer.parseInt(model.getSeriousTardinessNum())+1)+""); break;
            case 3:model.setLowProcessingEfficiencyNum((Integer.parseInt(model.getLowProcessingEfficiencyNum())+1)+""); break;
            case 4:model.setPoorServiceAwarenessNum((Integer.parseInt(model.getPoorServiceAwarenessNum())+1)+""); break;
            case 5:model.setBadAttitudeNum((Integer.parseInt(model.getBadAttitudeNum())+1)+""); break;
            case 6:model.setLateArrivalNum((Integer.parseInt(model.getLateArrivalNum())+1)+""); break;
            case 7:model.setLowProcessingNum((Integer.parseInt(model.getLowProcessingNum())+1)+""); break;
            case 8:model.setLowServiceNum((Integer.parseInt(model.getLowServiceNum())+1)+""); break;
            case 9:model.setSoAttitudeNum((Integer.parseInt(model.getSoAttitudeNum())+1)+""); break;
            case 10:model.setNoLateNum((Integer.parseInt(model.getNoLateNum())+1)+""); break;
            case 11:model.setProcessingNum((Integer.parseInt(model.getProcessingNum())+1)+""); break;
            case 12:model.setServiceAwarenessNum((Integer.parseInt(model.getServiceAwarenessNum())+1)+""); break;
            case 13:model.setGoodAttitudeNum((Integer.parseInt(model.getGoodAttitudeNum())+1)+""); break;
            case 14:model.setOnTimeNum((Integer.parseInt(model.getOnTimeNum())+1)+""); break;
            case 15:model.setGoodProcessingNum((Integer.parseInt(model.getGoodProcessingNum())+1)+""); break;
            case 16:model.setGoodServiceAwarenessNum((Integer.parseInt(model.getGoodServiceAwarenessNum())+1)+""); break;
            case 17:model.setGoodPaySatisfiedNum((Integer.parseInt(model.getGoodPaySatisfiedNum())+1)+""); break;
            case 18:model.setGoodServiceSatisfiedNum((Integer.parseInt(model.getGoodServiceSatisfiedNum())+1)+""); break;
            case 19:model.setGreatRecyclerNum((Integer.parseInt(model.getGreatRecyclerNum())+1)+""); break;
            default:
                break;
        }
        return model;
    }
 
    /**
     * 添加评价
     * @param orderAppraiseInfo
     */
    public void add(OrderAppraiseInfo orderAppraiseInfo){
        orderAppraiseInfo.setCreateTime(cn.hutool.core.date.DateUtil.now());
        orderAppraiseInfo.setDelFlag(Convert.toShort(Constants.DEL_NOT_FLAG));
        orderAppraiseInfo.setContent(encodeOrDecode(orderAppraiseInfo.getContent(), 0));
        orderAppraiseInfoMapper.insertSelective(orderAppraiseInfo);
    }
 
 
    /**
     * 进行编码或解码
     * @param type 0 :编码 1解码
     */
    public String encodeOrDecode(String content,int type){
 
        if(type==0){
            //编码
            if(StrUtil.isNotBlank(content)){
                return Base64.encode(content);
            }
        }else if(type==1){
            //解码
            if(StrUtil.isNotBlank(content)&&StringUtils.isBase64(content)){
                return Base64.decodeStr(content);
            }
        }
        return content;
    }
 
    public List<QueryReceiverTotalListResDTO> findTagByReceive(QueryReceiverTotalListDTO queryReceiverTotalListDTO) {
        String receiverId = queryReceiverTotalListDTO.getReceiverId();
        List<QueryReceiverTotalListResDTO> resList=new ArrayList<>();
        List<QueryReceiverTotalListResDTO> list=new ArrayList<>();
        List<OrderAppraiseInfo> byReceiver = findByReceiver(receiverId);
 
        List<ConfigInfo> tag1 = configService.findByGroup(SysConfigConstant.TAGAPPRAISE1);
        List<ConfigInfo> tag2 =configService.findByGroup(SysConfigConstant.TAGAPPRAISE2);
        List<ConfigInfo> tag3 =configService.findByGroup(SysConfigConstant.TAGAPPRAISE3);
        List<ConfigInfo> tag4 =configService.findByGroup(SysConfigConstant.TAGAPPRAISE4);
        List<ConfigInfo> tag5 = configService.findByGroup(SysConfigConstant.TAGAPPRAISE5);
 
        aggreation(list,tag5,false);
        aggreation(list,tag4,false);
        aggreation(list,tag3,false);
        aggreation(list,tag2,true);
        aggreation(list,tag1,true);
 
        if(CollUtil.isEmpty(byReceiver)){
            return CollUtil.sub(list,0,8);
        }else {
            for (OrderAppraiseInfo orderAppraiseInfo : byReceiver) {
                String tagCodes = orderAppraiseInfo.getTagCodes();
                if (StrUtil.isNotBlank(tagCodes)) {
                    String[] split = tagCodes.split(",");
                    for (String s : split) {
                        //出现当前标签的次数
                        List<QueryReceiverTotalListResDTO> forList = resList.stream().filter(x -> x.getConfigTypeCode().equals(s)).collect(Collectors.toList());
                        QueryReceiverTotalListResDTO config = list.stream().filter(x -> x.getConfigTypeCode().equals(s)).collect(Collectors.toList()).get(0);
                        if (CollUtil.isEmpty(forList)) {
                            config.setTagNum(1);
                            resList.add(config);
                        } else {
                            int num = forList.get(0).getTagNum();
                            forList.get(0).setTagNum(++num);
                        }
                    }
                }
            }
            return resList;
        }
 
 
    }
 
    private void aggreation(List<QueryReceiverTotalListResDTO> list,List<ConfigInfo> tag,boolean negativeCommentFlag){
        for (ConfigInfo configInfo : tag) {
            QueryReceiverTotalListResDTO dto=new QueryReceiverTotalListResDTO();
            dto.setConfigTypeCode(configInfo.getConfigTypeCode());
            dto.setTagName(configInfo.getConfigValue());
            dto.setNegativeCommentFlag(negativeCommentFlag);
            list.add(dto);
        }
    }
}