|
|
@ -158,6 +158,7 @@ public class GrassrootsPartyDevServiceImpl implements GrassrootsPartyDevService |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public BranchBuildRankResultDTO branchBuildRank(BranchBuildRankFormDTO param) { |
|
|
|
//TODO .. 传参为agencyId 返参的横坐标为agencyId数组,传入的agencyId是父Id?还是应该传入customerId
|
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
@ -176,8 +177,8 @@ public class GrassrootsPartyDevServiceImpl implements GrassrootsPartyDevService |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.19 12:46 |
|
|
|
**/ |
|
|
|
private Map<String,String> getX(){ |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("YYYYmm"); |
|
|
|
public Map<String,String> getX(){ |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMM"); |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
calendar.setTime(new Date()); // 设置为当前时间
|
|
|
|
calendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) - 1); // 设置为上一个月
|
|
|
@ -212,7 +213,10 @@ public class GrassrootsPartyDevServiceImpl implements GrassrootsPartyDevService |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyyMM"); |
|
|
|
String currentMonth = format.format(new Date()); |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
calendar.setTime(new Date()); // 设置为当前时间
|
|
|
|
calendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) - 1); // 设置为上一个月
|
|
|
|
String currentMonth = format.format(calendar.getTime()); |
|
|
|
Integer monthCounter = Integer.parseInt(currentMonth); |
|
|
|
Map<String,String> monthMap = new HashMap<>(); |
|
|
|
int i = NumConstant.ONE; |
|
|
@ -233,10 +237,10 @@ public class GrassrootsPartyDevServiceImpl implements GrassrootsPartyDevService |
|
|
|
i++; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> result = Maps.newLinkedHashMap(); |
|
|
|
monthMap.entrySet().stream().sorted(Map.Entry.<String,String>comparingByKey()) |
|
|
|
monthMap.entrySet().stream().sorted(Map.Entry.comparingByKey()) |
|
|
|
.forEachOrdered((e -> result.put(e.getKey(),e.getValue()))); |
|
|
|
|
|
|
|
result.forEach((k,v) -> { |
|
|
|
System.out.print(k); |
|
|
|
System.out.print(" -> "); |
|
|
|