GeezerVison is showing github.com — Java:APIJSONDemo 和 APIJSONFinal 都升级 APIJSON, apijson-framework, 自身 至最… · liusy-bd/APIJSON-Demo@a91c417
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONDemo/pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 |
| 6 | 6 | <groupId>apijson.demo</groupId> | 7 | 7 | <artifactId>apijson-demo</artifactId> | 8 | | - <version>4.5.3</version> | | 8 | + <version>4.6.0</version> | 9 | 9 | <packaging>jar</packaging> | 10 | 10 |
| 11 | 11 | <name>APIJSONDemo</name> | |
Collapse file Copy file name to clipboard Collapse file Copy file name to clipboard Collapse file Copy file name to clipboard Collapse file Copy file name to clipboard Collapse file Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONFinal/pom.xml +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | <groupId>apijson.jfinal</groupId> | 5 | 5 | <artifactId>apijson-final</artifactId> | 6 | 6 | <packaging>jar</packaging> | 7 | | - <version>4.5.3</version> | | 7 | + <version>4.6.0</version> | 8 | 8 | <name>Demo project for APIJSON Server based on JFinal</name> | 9 | 9 | <url>http://maven.apache.org</url> | 10 | 10 | <dependencies> | | 26 | 26 | <dependency> | 27 | 27 | <groupId>com.github.Tencent</groupId> | 28 | 28 | <artifactId>APIJSON</artifactId> | 29 | | - <version>4.5.2</version> | | 29 | + <version>4.6.0</version> | 30 | 30 | </dependency> | 31 | 31 | <dependency> | 32 | 32 | <groupId>com.github.APIJSON</groupId> | 33 | 33 | <artifactId>apijson-framework</artifactId> | 34 | | - <version>4.5.2</version> | | 34 | + <version>4.6.0</version> | 35 | 35 | </dependency> | 36 | 36 | <!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> --> | 37 | 37 |
| |
Collapse file Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoObjectParser.java +5-10Lines changed: 5 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 |
| 15 | 15 | package apijson.demo; | 16 | 16 |
| | 17 | +import com.alibaba.fastjson.JSONObject; | | 18 | + | 17 | 19 | import java.util.List; | 18 | 20 |
| 19 | 21 | import javax.servlet.http.HttpSession; | 20 | 22 |
| 21 | | -import com.alibaba.fastjson.JSONObject; | 22 | | - | 23 | 23 | import apijson.NotNull; | 24 | 24 | import apijson.RequestMethod; | 25 | 25 | import apijson.orm.AbstractObjectParser; | | 33 | 33 | */ | 34 | 34 | public class DemoObjectParser extends AbstractObjectParser { | 35 | 35 |
| 36 | | - /**for single object | 37 | | - * @param parentPath | 38 | | - * @param request | 39 | | - * @param name | 40 | | - * @throws Exception | 41 | | - */ | 42 | | - public DemoObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, String name, SQLConfig arrayConfig, boolean isSubquery) throws Exception { | 43 | | - super(request, parentPath, name, arrayConfig, isSubquery); | | 36 | + public DemoObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, SQLConfig arrayConfig | | 37 | + , boolean isSubquery, boolean isTable, boolean isArrayMainTable) throws Exception { | | 38 | + super(request, parentPath, arrayConfig, isSubquery, isTable, isArrayMainTable); | 44 | 39 | } | 45 | 40 |
| 46 | 41 | @Override | |
|