|
@@ -90,8 +90,13 @@ public class ExecutorInit extends FormulaExecutor {
|
|
|
|
|
|
//变更令部分
|
|
|
List<ChangeToken> changeTokenList = changeTokenFc.apply(tec.getContractId());
|
|
|
+ tec.meterInfo.setChangeTokenList(changeTokenList) ;
|
|
|
+ if (changeTokenList.size() > 0) {
|
|
|
+ List<ChangeToken> changeTokenList0 = getFilteredChangeTokens(changeTokenList,tec.periodInfo,0);
|
|
|
+ List<ChangeToken> changeTokenList1 = getFilteredChangeTokens(changeTokenList,tec.periodInfo,1);
|
|
|
+ System.out.println();
|
|
|
+ }
|
|
|
|
|
|
- //List<ChangeToken> changeTokenList1 = getFilteredChangeTokens(changeTokenList,tec.periodInfo,0);
|
|
|
|
|
|
/*每页内容都一样*/
|
|
|
tec.getRepeatKeys().addAll(periodMap.keySet());
|
|
@@ -116,6 +121,20 @@ public class ExecutorInit extends FormulaExecutor {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * type=0 返回本期
|
|
|
+ * periodInfo.startDate < changeApprovalDate <= periodInfo.endDate 的changeTokenList
|
|
|
+ *
|
|
|
+ * type=1 返回上期末
|
|
|
+ * changeApprovalDate < periodInfo.startDate 的changeTokenList
|
|
|
+ *
|
|
|
+ * type=2 返回本期末
|
|
|
+ * changeApprovalDate <= periodInfo.startDate 的changeTokenList
|
|
|
+ * @param changeTokenList
|
|
|
+ * @param periodInfo
|
|
|
+ * @param type
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public List<ChangeToken> getFilteredChangeTokens(List<ChangeToken> changeTokenList, MeterPeriodInfo periodInfo, int type) {
|
|
|
switch (type) {
|
|
|
case 0:
|