username@email.com
2022-06-15 0e6d0e8975e92a6395d2d9f692edd5a7d0984c5a
zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
@@ -797,6 +797,36 @@
                    expertTestTopicpeizhiDTO.zongFenshu = aaaa.HasValue? aaaa.Value.ToString("0.##"):"";
                    expertTestTopicpeizhiDTO.zongFenzhi = expertTestTopicpeizhiDTO.Fenzhi.HasValue ? expertTestTopicpeizhiDTO.Fenzhi.Value.ToString("0.##") : "";
                }
                foreach (var zhishitype in zhishitypes)
                {
                    var bbbb = expertTestTopicpeizhiDTOs.Where(x => x.Zhishitype == zhishitype.CodeSn).ToList();
                    if (bbbb.Count <= 0)
                    {
                        foreach (var topictype in topictypes)
                        {
                            ExpertTestTopicpeizhiDTO expertTestTopicpeizhiDTO = new ExpertTestTopicpeizhiDTO();
                            expertTestTopicpeizhiDTO.ShijianId = "01";
                            expertTestTopicpeizhiDTO.Topictype = topictype.CodeSn;
                            expertTestTopicpeizhiDTO.TopictypeName = topictype.Comments;
                            expertTestTopicpeizhiDTO.Zhishitype = zhishitype.CodeSn;
                            expertTestTopicpeizhiDTO.ZhishitypeName = zhishitype.Comments;
                            expertTestTopicpeizhiDTO.Fenshu = 0;
                            expertTestTopicpeizhiDTO.Fenzhi = 0;
                            expertTestTopicpeizhiDTO.FenshuName = "0";
                            expertTestTopicpeizhiDTO.FenzhiName = "0";
                            expertTestTopicpeizhiDTO.zongFenshu = "0";
                            expertTestTopicpeizhiDTO.zongFenzhi = "0";
                            expertTestTopicpeizhiDTOs.Add(expertTestTopicpeizhiDTO);
                        }
                        expertTestTopicpeizhiDTOs = expertTestTopicpeizhiDTOs.OrderBy(x => x.Topictype).ThenBy(x => x.Zhishitype).ToList();
                    }
                }
            }