|
@@ -25,17 +25,17 @@ public class ObjController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 通用保存接口
|
|
* 功能描述: 通用保存接口
|
|
- * {
|
|
|
|
- * "objId": 1,
|
|
|
|
- * "table": "sys_config",
|
|
|
|
- * "fixedData": {
|
|
|
|
- * "CONFIG_NAME": "测试config_name",
|
|
|
|
- * "CONFIG_KEY": "测试config_key",
|
|
|
|
- * "CONFIG_VALUE": "测试config_value",
|
|
|
|
- * "CONFIG_TYPE": "Y",
|
|
|
|
- * "REMARK": "测试remark"
|
|
|
|
- * }
|
|
|
|
- * }
|
|
|
|
|
|
+ * {
|
|
|
|
+ * "objId": 1,
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "fixedData": {
|
|
|
|
+ * "CONFIG_NAME": "测试config_name",
|
|
|
|
+ * "CONFIG_KEY": "测试config_key",
|
|
|
|
+ * "CONFIG_VALUE": "测试config_value",
|
|
|
|
+ * "CONFIG_TYPE": "Y",
|
|
|
|
+ * "REMARK": "测试remark"
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param formDataDto 前台传过来的dto
|
|
* @param formDataDto 前台传过来的dto
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -48,15 +48,13 @@ public class ObjController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 通用删除接口 (真的删除)
|
|
* 功能描述: 通用删除接口 (真的删除)
|
|
- * eg: {
|
|
|
|
- * "table": "sys_config",
|
|
|
|
- * "idList": [
|
|
|
|
- * 141,
|
|
|
|
- * 142
|
|
|
|
- * ]
|
|
|
|
- * }
|
|
|
|
- *
|
|
|
|
- *
|
|
|
|
|
|
+ * eg: {
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "idList": [
|
|
|
|
+ * 141,
|
|
|
|
+ * 142
|
|
|
|
+ * ]
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param formDataDto 前台传过来的dto
|
|
* @param formDataDto 前台传过来的dto
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -69,16 +67,16 @@ public class ObjController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 通用删除接口 (逻辑删除)
|
|
* 功能描述: 通用删除接口 (逻辑删除)
|
|
- *
|
|
|
|
- * eg:{
|
|
|
|
- * "table": "sys_config",
|
|
|
|
- * "logicDelName": "CONFIG_KEY",
|
|
|
|
- * "logicDelValue": "我被修改了吧",
|
|
|
|
- * "idList": [
|
|
|
|
- * 141,
|
|
|
|
- * 142
|
|
|
|
- * ]
|
|
|
|
- * }
|
|
|
|
|
|
+ * <p>
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "logicDelName": "CONFIG_KEY",
|
|
|
|
+ * "logicDelValue": "我被修改了吧",
|
|
|
|
+ * "idList": [
|
|
|
|
+ * 141,
|
|
|
|
+ * 142
|
|
|
|
+ * ]
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param formDataDto 前台传过来的dto
|
|
* @param formDataDto 前台传过来的dto
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -91,12 +89,13 @@ public class ObjController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 获取单表单数据 默认查所有字段
|
|
* 功能描述: 获取单表单数据 默认查所有字段
|
|
- * eg:{
|
|
|
|
- * "table": "sys_config",
|
|
|
|
- * "fixedData": {
|
|
|
|
- * "id": 20
|
|
|
|
- * }
|
|
|
|
- * }
|
|
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "fixedData": {
|
|
|
|
+ * "id": 20
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
|
|
+ *
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
*/
|
|
*/
|
|
@@ -106,24 +105,45 @@ public class ObjController {
|
|
return tableServiceCmdService.getObject(condition);
|
|
return tableServiceCmdService.getObject(condition);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 功能描述: 获取单表单数据 默认查所有字段
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "fixedData": {
|
|
|
|
+ * "id": 20
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
|
|
+ *
|
|
|
|
+ * @param condition condition
|
|
|
|
+ * @return com.boman.common.core.web.domain.AjaxResult
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "获取单表单数据")
|
|
|
|
+ @PostMapping("/getObjectAllColumns")
|
|
|
|
+ public AjaxResult getObjectAllColumns(@RequestBody FormDataDto condition) {
|
|
|
|
+ return tableServiceCmdService.getObjectAllColumns(condition);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 功能描述: 获取表单列表数据
|
|
* 功能描述: 获取表单列表数据
|
|
- * eg:{
|
|
|
|
- * "table": "sys_config",
|
|
|
|
- * "limit": 0,
|
|
|
|
- * "offset": 10,
|
|
|
|
- * "orderBy": "create_time asc",
|
|
|
|
- * "fixedData": {
|
|
|
|
- * "condition": {
|
|
|
|
- * "CONFIG_NAME": "主框架",
|
|
|
|
- * "CONFIG_VALUE": "skin-blue",
|
|
|
|
- * "CREATE_TIME": ["2017-01-01", "2019-02-02"]
|
|
|
|
- * },
|
|
|
|
- * "showData": [
|
|
|
|
- * "CONFIG_ID", "CONFIG_NAME", "CONFIG_VALUE"
|
|
|
|
- * ]
|
|
|
|
- * }
|
|
|
|
- * }
|
|
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "limit": 0,
|
|
|
|
+ * "offset": 10,
|
|
|
|
+ * "orderBy": "create_time asc",
|
|
|
|
+ * "fixedData": {
|
|
|
|
+ * "condition": {
|
|
|
|
+ * "CONFIG_NAME": "主框架",
|
|
|
|
+ * "CONFIG_VALUE": "skin-blue",
|
|
|
|
+ * "CREATE_TIME": ["2017-01-01", "2019-02-02"]
|
|
|
|
+ * },
|
|
|
|
+ * "showData": [
|
|
|
|
+ * "CONFIG_ID", "CONFIG_NAME", "CONFIG_VALUE"
|
|
|
|
+ * ]
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
|
|
+ *
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
*/
|
|
*/
|
|
@@ -136,10 +156,10 @@ public class ObjController {
|
|
/**
|
|
/**
|
|
* 功能描述: 获取表单查询字段、按钮、表头
|
|
* 功能描述: 获取表单查询字段、按钮、表头
|
|
* 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
|
|
* 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
|
|
- *
|
|
|
|
- * eg:{
|
|
|
|
- * "table": "sys_config"
|
|
|
|
- * }
|
|
|
|
|
|
+ * <p>
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config"
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -153,10 +173,10 @@ public class ObjController {
|
|
/**
|
|
/**
|
|
* 功能描述: 获取表单查询字段
|
|
* 功能描述: 获取表单查询字段
|
|
* 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
|
|
* 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
|
|
- *
|
|
|
|
- * eg:{
|
|
|
|
- * "table": "sys_config"
|
|
|
|
- * }
|
|
|
|
|
|
+ * <p>
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config"
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -189,10 +209,10 @@ public class ObjController {
|
|
/**
|
|
/**
|
|
* 功能描述: 获取表单按钮
|
|
* 功能描述: 获取表单按钮
|
|
* 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
|
|
* 注意: 都是从redis中拿的,如果数据库和redis不一致,则需刷新一下redis
|
|
- *
|
|
|
|
- * eg:{
|
|
|
|
- * "table": "sys_config"
|
|
|
|
- * }
|
|
|
|
|
|
+ * <p>
|
|
|
|
+ * eg:{
|
|
|
|
+ * "table": "sys_config"
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -200,7 +220,7 @@ public class ObjController {
|
|
@ApiOperation(value = "获取表单按钮")
|
|
@ApiOperation(value = "获取表单按钮")
|
|
@PostMapping("/getButton")
|
|
@PostMapping("/getButton")
|
|
public AjaxResult getButton(@RequestBody FormDataDto condition) {
|
|
public AjaxResult getButton(@RequestBody FormDataDto condition) {
|
|
- return AjaxResult.success( tableServiceCmdService.getButton(condition.getTable()));
|
|
|
|
|
|
+ return AjaxResult.success(tableServiceCmdService.getButton(condition.getTable()));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -217,16 +237,16 @@ public class ObjController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 表单提交接口, 更改的字段类型和字段值都是一致的
|
|
* 功能描述: 表单提交接口, 更改的字段类型和字段值都是一致的
|
|
- * {
|
|
|
|
- * "table": "sys_test",
|
|
|
|
- * "commitData": [
|
|
|
|
- * {
|
|
|
|
- * "id": 1,
|
|
|
|
- * "status": "2",
|
|
|
|
- * "remark": "提交了吧"
|
|
|
|
- * }
|
|
|
|
- * ]
|
|
|
|
- * }
|
|
|
|
|
|
+ * {
|
|
|
|
+ * "table": "sys_test",
|
|
|
|
+ * "commitData": [
|
|
|
|
+ * {
|
|
|
|
+ * "id": 1,
|
|
|
|
+ * "status": "2",
|
|
|
|
+ * "remark": "提交了吧"
|
|
|
|
+ * }
|
|
|
|
+ * ]
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
@@ -240,17 +260,16 @@ public class ObjController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 功能描述: 反提交接口, 更改的字段类型和字段值都是一致的
|
|
* 功能描述: 反提交接口, 更改的字段类型和字段值都是一致的
|
|
- * {
|
|
|
|
- * "table": "sys_config",
|
|
|
|
- * "fixedData": {
|
|
|
|
- * "idList": [
|
|
|
|
- * 3
|
|
|
|
- * ],
|
|
|
|
- * "status": "1",
|
|
|
|
- * "remark": "理由不够充分"
|
|
|
|
- * }
|
|
|
|
- * }
|
|
|
|
- *
|
|
|
|
|
|
+ * {
|
|
|
|
+ * "table": "sys_config",
|
|
|
|
+ * "fixedData": {
|
|
|
|
+ * "idList": [
|
|
|
|
+ * 3
|
|
|
|
+ * ],
|
|
|
|
+ * "status": "1",
|
|
|
|
+ * "remark": "理由不够充分"
|
|
|
|
+ * }
|
|
|
|
+ * }
|
|
*
|
|
*
|
|
* @param condition condition
|
|
* @param condition condition
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|
|
* @return com.boman.common.core.web.domain.AjaxResult
|