From 600fd0d3b4a676fa071743196fe0f8407d57c491 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 14 十月 2024 09:33:01 +0800 Subject: [PATCH] return utils.reverseResult(this.result); 对模型的返回结果进行处理 --- iailab-module-model/iailab-module-model-biz/src/main/resources/template/impl.java.vm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/impl.java.vm b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/impl.java.vm index c9ae8bc..0ffc252 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/impl.java.vm +++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/impl.java.vm @@ -22,12 +22,12 @@ #{end} if (#{foreach} ($column in [1..$entity.dataLength])#{if}($column==1)data${column} == null || data${column}.length == 0 || data${column}[0].length == 0#{else} || data${column} == null || data${column}.length == 0 || data${column}[0].length == 0#{end}#{end}) { result = new HashMap<String, Object>(); - result.put("status_code", -4); + result.put("status_code", "400"); return result; } result = ${pyName}${entity.methodName}(#foreach ($column in [1..$entity.dataLength])data${column}, #{end}#{if}($entity.model==1)model, #{end}settings); - return result; + return utils.reverseResult(this.result); } #{end} } \ No newline at end of file -- Gitblit v1.9.3