return utils.reverseResult(this.result);
对模型的返回结果进行处理
| | |
| | | #{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} |
| | | } |