no commit message

This commit is contained in:
ICEC 2020-07-15 11:23:18 +08:00
parent f9677e45e8
commit 8118ab4dbe
2 changed files with 28 additions and 3 deletions

View File

@ -30,6 +30,11 @@
sortable sortable
label="热销区域"> label="热销区域">
</el-table-column> </el-table-column>
<el-table-column
prop="CustomerNum"
sortable
label="客户数量">
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
@ -64,6 +69,11 @@
sortable sortable
label="热销区域"> label="热销区域">
</el-table-column> </el-table-column>
<el-table-column
prop="CustomerNum"
sortable
label="客户数量">
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
@ -98,6 +108,11 @@
sortable sortable
label="热销区域"> label="热销区域">
</el-table-column> </el-table-column>
<el-table-column
prop="CustomerNum"
sortable
label="客户数量">
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
@ -156,6 +171,8 @@
MouldingStyleCode: response.data[i].MouldingStyleCode, MouldingStyleCode: response.data[i].MouldingStyleCode,
CNY: ((response.data[i].CNY)*1).toFixed(2), CNY: ((response.data[i].CNY)*1).toFixed(2),
Area: response.data[i].Area, Area: response.data[i].Area,
CustomerNum: response.data[i].CustomerNum,
}) })
} }
@ -171,6 +188,8 @@
MouldingStyleCode: response.data[i].MouldingStyleCode, MouldingStyleCode: response.data[i].MouldingStyleCode,
CNY: ((response.data[i].CNY)*1).toFixed(2), CNY: ((response.data[i].CNY)*1).toFixed(2),
Area: response.data[i].Area, Area: response.data[i].Area,
CustomerNum: response.data[i].CustomerNum,
}) })
} }
}) })
@ -185,6 +204,8 @@
MouldingStyleCode: response.data[i].MouldingStyleCode, MouldingStyleCode: response.data[i].MouldingStyleCode,
CNY: ((response.data[i].CNY)*1).toFixed(2), CNY: ((response.data[i].CNY)*1).toFixed(2),
Area: response.data[i].Area, Area: response.data[i].Area,
CustomerNum: response.data[i].CustomerNum,
}) })
} }
}) })

View File

@ -459,9 +459,9 @@ public class DB_Ajax_DashBoard_Technologist_48102 {
String sql = "SELECT DISTINCT TOP\n" + String sql = "SELECT DISTINCT TOP\n" +
"\t20 chen_12个月_A版本BOM销售额.MouldingStyleCode,\n" + "\t20 chen_12个月_A版本BOM销售额.MouldingStyleCode,\n" +
"\tchen_12个月_A版本BOM销售额.[折算人民币价税合计] AS CNY,\n" + "\tchen_12个月_A版本BOM销售额.[折算人民币价税合计] AS CNY,\n" +
"\tchen_打样分析汇总.[客户数量],\n" + "\tchen_打样分析汇总.[客户数量] as CustomerNum,\n" +
"\tMouldingSampleMakingMasterSchedule.ProductionLine ,\n" + "\tMouldingSampleMakingMasterSchedule.ProductionLine ,\n" +
"\t( SELECT TOP 1 SHCountry FROM MouldingDataStatistics WHERE MouldingCode = reverse( SUBSTRING ( reverse( chen_12个月_A版本BOM销售额.MouldingStyleCode ), charindex( '-', reverse( chen_12个月_A版本BOM销售额.MouldingStyleCode ) ) + 1, 500 ) ) GROUP BY SHCountry ORDER BY SUM ( SHMouldingSaleLength ) DESC ) AS Area \n" + "\t( SELECT TOP 1 SHCountry FROM MouldingDataStatistics WHERE MouldingCode = reverse( SUBSTRING ( reverse( chen_12个月_A版本BOM销售额.MouldingStyleCode ), charindex( '-', reverse( chen_12个月_A版本BOM销售额.MouldingStyleCode ) ) + 1, 500 ) ) and SHCountry is not null GROUP BY SHCountry ORDER BY SUM ( SHMouldingSaleLength ) DESC ) AS Area \n" +
"FROM\n" + "FROM\n" +
"\t[chen_12个月_A版本BOM销售额]\n" + "\t[chen_12个月_A版本BOM销售额]\n" +
"\tLEFT JOIN MouldingSampleMakingMasterSchedule ON MouldingSampleMakingMasterSchedule.MouldingStyleCode = chen_12个月_A版本BOM销售额.MouldingStyleCode\n" + "\tLEFT JOIN MouldingSampleMakingMasterSchedule ON MouldingSampleMakingMasterSchedule.MouldingStyleCode = chen_12个月_A版本BOM销售额.MouldingStyleCode\n" +
@ -479,6 +479,8 @@ public class DB_Ajax_DashBoard_Technologist_48102 {
map.put("MouldingStyleCode",rs.getString("MouldingStyleCode")); map.put("MouldingStyleCode",rs.getString("MouldingStyleCode"));
map.put("CNY",rs.getString("CNY")); map.put("CNY",rs.getString("CNY"));
map.put("Area",rs.getString("Area")); map.put("Area",rs.getString("Area"));
map.put("CustomerNum",rs.getString("CustomerNum"));
hashMapList.add(map); hashMapList.add(map);
} }
@ -502,7 +504,7 @@ public class DB_Ajax_DashBoard_Technologist_48102 {
Connection conn = getSQLConnection(); Connection conn = getSQLConnection();
String sql = "SELECT DISTINCT TOP\n" + String sql = "SELECT DISTINCT TOP\n" +
"\t20 chen_12个月_A版本BOM销售额.MouldingStyleCode,\n" + "\t20 chen_12个月_A版本BOM销售额.MouldingStyleCode,\n" +
"\tchen_12个月_A版本BOM销售额.[折算人民币价税合计] AS CNY,\tchen_打样分析汇总.[客户数量],\n" + "\tchen_12个月_A版本BOM销售额.[折算人民币价税合计] AS CNY,\tchen_打样分析汇总.[客户数量] as CustomerNum,\n" +
"\tMouldingSampleMakingMasterSchedule.ProductionLine ,\n" + "\tMouldingSampleMakingMasterSchedule.ProductionLine ,\n" +
"\n" + "\n" +
"\t(SELECT TOP\n" + "\t(SELECT TOP\n" +
@ -531,6 +533,8 @@ public class DB_Ajax_DashBoard_Technologist_48102 {
map.put("MouldingStyleCode",rs.getString("MouldingStyleCode")); map.put("MouldingStyleCode",rs.getString("MouldingStyleCode"));
map.put("CNY",rs.getString("CNY")); map.put("CNY",rs.getString("CNY"));
map.put("Area",rs.getString("Area")); map.put("Area",rs.getString("Area"));
map.put("CustomerNum",rs.getString("CustomerNum"));
hashMapList.add(map); hashMapList.add(map);
} }