Commit 0a16656a by 郭旭

修改后端教案

parent 6f0054cd
# 后端项目开发文档
# 后端项目开发文档
# 后端项目开发文档
## 模型转换代码结构介绍(gjjs-business)
## 项目结构介绍
***视频说明***
http://114.115.138.98:9497/gjjs-book/assets/videos/rear-end-file.mp4
......@@ -23,25 +23,7 @@ com.ceb.gjjs.mda包下
| template | 用户面函中相关PDF生成的模板 |
| application.yml | 应用程序配置信息 |
## Spring/Mybatis运行时开发介绍
### SpringMVC简介
SpringMVC就是一个Spring内置的MVC框架。
MVC框架,它解决WEB开发中常见的问题(参数接收、文件上传、表单验证、国际化等等),而且使用简单,与Spring无缝集成。支持 RESTful风格的URL请求。
MVC是一种软件架构的思想,将软件按照模型、视图、控制器来划分
```
M:Model,模型层,指工程中的JavaBean,作用是处理数据
V:View,视图层,指工程中的html或jsp等页面,作用是与用户进行交互,展示数据
C:Controller,控制层,指工程中的servlet,作用是接收请求和响应浏览器
```
### mybatis简介
MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过程以及高级映射,MyBatis 可以通过简单的 XML 或注解来配置和映射原始类型为数据库中的记录。
### 项目相关依赖
## 项目依赖
在gjjs-business模块下的pom.xml文件中引入相关依赖
......@@ -56,26 +38,25 @@ MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过
### 1、IBaseObject说明
| 函数 | 描述 |
|-----------------------------|:--------------------------|
| ---------------- | :-------------- |
| getName() | 获取name |
| getParent() | 获取父类 |
| getPath() | 获取path |
| clear() | 清空 |
| notifyDefault() | 判断set时是否执行相应的Defalut Rule |
| notifyDefault(String field) | 判断set时是否执行相应的Defalut Rule |
---
| getDescription() | 获取description |
### 2、IContext说明
系统上下文
| 函数 | 描述 |
|------------------------------------------------------------|------------------------------------------------------------------------------------|
| ---------------------------------------------------------- | ------------------------------------------------------------ |
| getTransName() | 获取当前系统交易名 |
| getFieldErrors() | 获取错误信息 |
| getModified() | 获取修改信息 |
| getFieldErrors() | 获取字段错误信息 |
| getErrorNo() | 获取错误码 |
| setFieldError(...) | 设置错误信息 |
| setModified(String path, Object value) | 设置修改信息 |
| setFieldError(...) | 设置字段错误信息 |
| setMessage(...) | 设置错误信息 |
| getRoot() | 获取当前交易模型 |
| checkAll(IModule module) | 检查模型所有字段是否符合要求 |
......@@ -83,6 +64,7 @@ MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过
| postInit() | 执行初始化 |
| postCheck() | 执行指定路径的Check方法 |
| setParams(Map<String, Object> params) | 接受前端的自定义参数 |
| getValuesSet() | 获取valuesSet |
| getRetMap() | 获取map |
| getDaoSession() | 获取daoSession |
| restoreData(String key) | 获取params中指定数据 |
......@@ -104,7 +86,7 @@ MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过
| getAttribute(IModule parent,String prop,String ATTR) | 获取attrMaps中指定数据 |
| mallocPrintBuffer() | 先判断printBuffer是否为空,如为空往printBuffer栈添加进一个新的PrintSegment并返回,如果不为空,则返回printBuffer栈顶元素 |
| releasePrintBuffer() | 获取并删除printBuffer栈顶元素信息 |
| getCurPrintBuffer() | null |
| getCurPrintBuffer() | 获取printBuffer栈顶元素信息 |
| getCurPrintSegment() | 返回printBuffer栈顶元素 |
| pushEventPath(String path) | rulePathStack入栈 |
| getEventPath() | 返回rulePathStack栈顶元素 |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment