1、报表公式开发

This commit is contained in:
16358 2025-01-14 13:22:29 +08:00
parent 0db6e3f4c5
commit 6cda406213
1 changed files with 4 additions and 4 deletions

View File

@ -64,9 +64,9 @@ public class FormulaOperatipnImpl implements FormulaOperatipnService {
int actualAmount = jsonObject.getInt("actual"); int actualAmount = jsonObject.getInt("actual");
log.info("actual: " + actualAmount); log.info("actual: " + actualAmount);
resultStr = "{\n" + resultStr = "{\n" +
" \"id\":"+key+"\n" + " \""+key+"\":\n" +
" {\n" + " {\n" +
" \"v\":"+actualAmount+"\n" + " \"v\":"+actualAmount+",\n" +
" \"type\":1\n" + " \"type\":1\n" +
" }\n" + " }\n" +
" } "; " } ";
@ -76,9 +76,9 @@ public class FormulaOperatipnImpl implements FormulaOperatipnService {
} }
} catch (IOException e) { } catch (IOException e) {
resultStr = "{\n" + resultStr = "{\n" +
" \"id\":"+key+"\n" + " \""+key+"\":\n" +
" {\n" + " {\n" +
" \"v\":"+0+"\n" + " \"v\":"+0+",\n" +
" \"type\":-1\n" + " \"type\":-1\n" +
" }\n" + " }\n" +
" } "; " } ";