Commit 0149b627 by ruyun.zhang

手工录入数据工作量项目去重

parent c3ff947b
......@@ -7,8 +7,8 @@
},
"AppConnection": {
//"PerformanceConnectionString": "server=112.124.13.17;database=db_performance;uid=suvalue;pwd=suvalue2016;pooling=true;charset=utf8;convert zero datetime=true;port=3306;connection timeout=120;max pool size=512;allow user variables=true;",
//"PerformanceConnectionString": "server=192.168.18.166;database=db_test_beiliu;uid=root;pwd=1234qwer;pooling=true;charset=utf8;convert zero datetime=true;port=3306;connection timeout=120;max pool size=512;allow user variables=true;"
"PerformanceConnectionString": "server=116.62.245.55;database=db_performance_cxjx;uid=cxjx;pwd=Suvalue@cxjx;pooling=true;charset=utf8;convert zero datetime=true;port=3306;connection timeout=120;max pool size=512;allow user variables=true;"
"PerformanceConnectionString": "server=192.168.18.166;database=db_test_beiliu;uid=root;pwd=1234qwer;pooling=true;charset=utf8;convert zero datetime=true;port=3306;connection timeout=120;max pool size=512;allow user variables=true;"
//"PerformanceConnectionString": "server=116.62.245.55;database=db_performance_cxjx;uid=cxjx;pwd=Suvalue@cxjx;pooling=true;charset=utf8;convert zero datetime=true;port=3306;connection timeout=120;max pool size=512;allow user variables=true;"
},
"AppOptions": {
"OpenOAuth": true
......
......@@ -1593,10 +1593,7 @@ public List<GatherDropResponse> GetGatherDrop(Gather gather)
result = sheetHeads.GroupBy(t => t.ModuleName).Select(s => new GatherDropResponse
{
Value = s.Key,
Children = sheetHeads.Where(t => t.ModuleName == s.Key).Select(t => new GatherDropResponse()
{
Value = t.HeadName
}).ToList()
Children = sheetHeads.Where(t => t.ModuleName == s.Key).Select(w => w.HeadName).Distinct().Select(t => new GatherDropResponse() { Value = t }).ToList()
}).ToList();
}
else
......@@ -1607,10 +1604,7 @@ public List<GatherDropResponse> GetGatherDrop(Gather gather)
result = permissions.GroupBy(t => t.SheetName).Select(s => new GatherDropResponse
{
Value = s.Key,
Children = permissions.Where(t => t.SheetName == s.Key).Select(t => new GatherDropResponse()
{
Value = t.HeadName
}).ToList()
Children = permissions.Where(t => t.SheetName == s.Key).Select(w => w.HeadName).Distinct().Select(t => new GatherDropResponse() { Value = t }).ToList()
}).ToList();
}
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment