From d6df81b326d659e0aa0b68f033c5339a7728a192 Mon Sep 17 00:00:00 2001 From: dataprince Date: Sun, 9 Jul 2023 21:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E7=BE=8E=E5=85=BC=E5=AE=B9RuoYi-Vue?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=EF=BC=8C=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9A=84=E6=A0=91=E8=A1=A8mybatis=E4=BB=A3=E7=A0=81=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DemoProductController.java | 102 +++++++ .../com/ruoyi/demo/domain/DemoProduct.java | 67 ++++ .../ruoyi/demo/mapper/DemoProductMapper.java | 61 ++++ .../demo/service/IDemoProductService.java | 61 ++++ .../service/impl/DemoProductServiceImpl.java | 93 ++++++ .../mapper/demo/DemoProductMapper.xml | 69 +++++ ruoyi-ui/src/api/demo/product.js | 44 +++ ruoyi-ui/src/views/demo/product/index.vue | 285 ++++++++++++++++++ sql/update.sql | 38 ++- 9 files changed, 818 insertions(+), 2 deletions(-) create mode 100644 ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/DemoProductController.java create mode 100644 ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/DemoProduct.java create mode 100644 ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java create mode 100644 ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/IDemoProductService.java create mode 100644 ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/impl/DemoProductServiceImpl.java create mode 100644 ruoyi-modules/ruoyi-demo/src/main/resources/mapper/demo/DemoProductMapper.xml create mode 100644 ruoyi-ui/src/api/demo/product.js create mode 100644 ruoyi-ui/src/views/demo/product/index.vue diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/DemoProductController.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/DemoProductController.java new file mode 100644 index 0000000..c40a969 --- /dev/null +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/DemoProductController.java @@ -0,0 +1,102 @@ +package com.ruoyi.demo.controller; + +import java.util.List; +import jakarta.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.demo.domain.DemoProduct; +import com.ruoyi.demo.service.IDemoProductService; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 产品树表(mb)Controller + * + * @author 数据小王子 + * @date 2023-07-09 + */ +@RestController +@RequestMapping("/demo/product") +public class DemoProductController extends BaseController +{ + @Autowired + private IDemoProductService demoProductService; + + /** + * 查询产品树表(mb)列表 + */ + @PreAuthorize("@ss.hasPermi('demo:product:list')") + @GetMapping("/list") + public AjaxResult list(DemoProduct demoProduct) + { + List list = demoProductService.selectDemoProductList(demoProduct); + return success(list); + } + + /** + * 导出产品树表(mb)列表 + */ + @PreAuthorize("@ss.hasPermi('demo:product:export')") + @Log(title = "产品树表(mb)", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, DemoProduct demoProduct) + { + List list = demoProductService.selectDemoProductList(demoProduct); + ExcelUtil util = new ExcelUtil(DemoProduct.class); + util.exportExcel(response, list, "产品树表(mb)数据"); + } + + /** + * 获取产品树表(mb)详细信息 + */ + @PreAuthorize("@ss.hasPermi('demo:product:query')") + @GetMapping(value = "/{productId}") + public AjaxResult getInfo(@PathVariable("productId") Long productId) + { + return success(demoProductService.selectDemoProductByProductId(productId)); + } + + /** + * 新增产品树表(mb) + */ + @PreAuthorize("@ss.hasPermi('demo:product:add')") + @Log(title = "产品树表(mb)", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody DemoProduct demoProduct) + { + return toAjax(demoProductService.insertDemoProduct(demoProduct)); + } + + /** + * 修改产品树表(mb) + */ + @PreAuthorize("@ss.hasPermi('demo:product:edit')") + @Log(title = "产品树表(mb)", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody DemoProduct demoProduct) + { + return toAjax(demoProductService.updateDemoProduct(demoProduct)); + } + + /** + * 删除产品树表(mb) + */ + @PreAuthorize("@ss.hasPermi('demo:product:remove')") + @Log(title = "产品树表(mb)", businessType = BusinessType.DELETE) + @DeleteMapping("/{productIds}") + public AjaxResult remove(@PathVariable Long[] productIds) + { + return toAjax(demoProductService.deleteDemoProductByProductIds(productIds)); + } +} diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/DemoProduct.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/DemoProduct.java new file mode 100644 index 0000000..babe1b4 --- /dev/null +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/DemoProduct.java @@ -0,0 +1,67 @@ +package com.ruoyi.demo.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.TreeEntity; + +/** + * 产品树表(mb)对象 demo_product + * + * @author 数据小王子 + * @date 2023-07-09 + */ +public class DemoProduct extends TreeEntity +{ + private static final long serialVersionUID = 1L; + + /** 产品id */ + private Long productId; + + /** 产品名称 */ + @Excel(name = "产品名称") + private String productName; + + /** 产品状态(0正常 1停用) */ + @Excel(name = "产品状态", readConverterExp = "0=正常,1=停用") + private String status; + + public void setProductId(Long productId) + { + this.productId = productId; + } + + public Long getProductId() + { + return productId; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("productId", getProductId()) + .append("parentId", getParentId()) + .append("productName", getProductName()) + .append("orderNum", getOrderNum()) + .append("status", getStatus()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java new file mode 100644 index 0000000..58f27ec --- /dev/null +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/mapper/DemoProductMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.demo.mapper; + +import java.util.List; +import com.ruoyi.demo.domain.DemoProduct; + +/** + * 产品树表(mb)Mapper接口 + * + * @author 数据小王子 + * @date 2023-07-09 + */ +public interface DemoProductMapper +{ + /** + * 查询产品树表(mb) + * + * @param productId 产品树表(mb)主键 + * @return 产品树表(mb) + */ + public DemoProduct selectDemoProductByProductId(Long productId); + + /** + * 查询产品树表(mb)列表 + * + * @param demoProduct 产品树表(mb) + * @return 产品树表(mb)集合 + */ + public List selectDemoProductList(DemoProduct demoProduct); + + /** + * 新增产品树表(mb) + * + * @param demoProduct 产品树表(mb) + * @return 结果 + */ + public int insertDemoProduct(DemoProduct demoProduct); + + /** + * 修改产品树表(mb) + * + * @param demoProduct 产品树表(mb) + * @return 结果 + */ + public int updateDemoProduct(DemoProduct demoProduct); + + /** + * 删除产品树表(mb) + * + * @param productId 产品树表(mb)主键 + * @return 结果 + */ + public int deleteDemoProductByProductId(Long productId); + + /** + * 批量删除产品树表(mb) + * + * @param productIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteDemoProductByProductIds(Long[] productIds); +} diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/IDemoProductService.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/IDemoProductService.java new file mode 100644 index 0000000..bc9ee2e --- /dev/null +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/IDemoProductService.java @@ -0,0 +1,61 @@ +package com.ruoyi.demo.service; + +import java.util.List; +import com.ruoyi.demo.domain.DemoProduct; + +/** + * 产品树表(mb)Service接口 + * + * @author 数据小王子 + * @date 2023-07-09 + */ +public interface IDemoProductService +{ + /** + * 查询产品树表(mb) + * + * @param productId 产品树表(mb)主键 + * @return 产品树表(mb) + */ + public DemoProduct selectDemoProductByProductId(Long productId); + + /** + * 查询产品树表(mb)列表 + * + * @param demoProduct 产品树表(mb) + * @return 产品树表(mb)集合 + */ + public List selectDemoProductList(DemoProduct demoProduct); + + /** + * 新增产品树表(mb) + * + * @param demoProduct 产品树表(mb) + * @return 结果 + */ + public int insertDemoProduct(DemoProduct demoProduct); + + /** + * 修改产品树表(mb) + * + * @param demoProduct 产品树表(mb) + * @return 结果 + */ + public int updateDemoProduct(DemoProduct demoProduct); + + /** + * 批量删除产品树表(mb) + * + * @param productIds 需要删除的产品树表(mb)主键集合 + * @return 结果 + */ + public int deleteDemoProductByProductIds(Long[] productIds); + + /** + * 删除产品树表(mb)信息 + * + * @param productId 产品树表(mb)主键 + * @return 结果 + */ + public int deleteDemoProductByProductId(Long productId); +} diff --git a/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/impl/DemoProductServiceImpl.java b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/impl/DemoProductServiceImpl.java new file mode 100644 index 0000000..4780bbf --- /dev/null +++ b/ruoyi-modules/ruoyi-demo/src/main/java/com/ruoyi/demo/service/impl/DemoProductServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.demo.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.demo.mapper.DemoProductMapper; +import com.ruoyi.demo.domain.DemoProduct; +import com.ruoyi.demo.service.IDemoProductService; + +/** + * 产品树表(mb)Service业务层处理 + * + * @author 数据小王子 + * @date 2023-07-09 + */ +@Service +public class DemoProductServiceImpl implements IDemoProductService +{ + @Autowired + private DemoProductMapper demoProductMapper; + + /** + * 查询产品树表(mb) + * + * @param productId 产品树表(mb)主键 + * @return 产品树表(mb) + */ + @Override + public DemoProduct selectDemoProductByProductId(Long productId) + { + return demoProductMapper.selectDemoProductByProductId(productId); + } + + /** + * 查询产品树表(mb)列表 + * + * @param demoProduct 产品树表(mb) + * @return 产品树表(mb) + */ + @Override + public List selectDemoProductList(DemoProduct demoProduct) + { + return demoProductMapper.selectDemoProductList(demoProduct); + } + + /** + * 新增产品树表(mb) + * + * @param demoProduct 产品树表(mb) + * @return 结果 + */ + @Override + public int insertDemoProduct(DemoProduct demoProduct) + { + return demoProductMapper.insertDemoProduct(demoProduct); + } + + /** + * 修改产品树表(mb) + * + * @param demoProduct 产品树表(mb) + * @return 结果 + */ + @Override + public int updateDemoProduct(DemoProduct demoProduct) + { + return demoProductMapper.updateDemoProduct(demoProduct); + } + + /** + * 批量删除产品树表(mb) + * + * @param productIds 需要删除的产品树表(mb)主键 + * @return 结果 + */ + @Override + public int deleteDemoProductByProductIds(Long[] productIds) + { + return demoProductMapper.deleteDemoProductByProductIds(productIds); + } + + /** + * 删除产品树表(mb)信息 + * + * @param productId 产品树表(mb)主键 + * @return 结果 + */ + @Override + public int deleteDemoProductByProductId(Long productId) + { + return demoProductMapper.deleteDemoProductByProductId(productId); + } +} diff --git a/ruoyi-modules/ruoyi-demo/src/main/resources/mapper/demo/DemoProductMapper.xml b/ruoyi-modules/ruoyi-demo/src/main/resources/mapper/demo/DemoProductMapper.xml new file mode 100644 index 0000000..88a9f83 --- /dev/null +++ b/ruoyi-modules/ruoyi-demo/src/main/resources/mapper/demo/DemoProductMapper.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + select product_id, parent_id, product_name, order_num, status from demo_product + + + + + + + + insert into demo_product + + parent_id, + product_name, + order_num, + status, + + + #{parentId}, + #{productName}, + #{orderNum}, + #{status}, + + + + + update demo_product + + parent_id = #{parentId}, + product_name = #{productName}, + order_num = #{orderNum}, + status = #{status}, + + where product_id = #{productId} + + + + delete from demo_product where product_id = #{productId} + + + + delete from demo_product where product_id in + + #{productId} + + + \ No newline at end of file diff --git a/ruoyi-ui/src/api/demo/product.js b/ruoyi-ui/src/api/demo/product.js new file mode 100644 index 0000000..2118148 --- /dev/null +++ b/ruoyi-ui/src/api/demo/product.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询产品树表(mb)列表 +export function listProduct(query) { + return request({ + url: '/demo/product/list', + method: 'get', + params: query + }) +} + +// 查询产品树表(mb)详细 +export function getProduct(productId) { + return request({ + url: '/demo/product/' + productId, + method: 'get' + }) +} + +// 新增产品树表(mb) +export function addProduct(data) { + return request({ + url: '/demo/product', + method: 'post', + data: data + }) +} + +// 修改产品树表(mb) +export function updateProduct(data) { + return request({ + url: '/demo/product', + method: 'put', + data: data + }) +} + +// 删除产品树表(mb) +export function delProduct(productId) { + return request({ + url: '/demo/product/' + productId, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/demo/product/index.vue b/ruoyi-ui/src/views/demo/product/index.vue new file mode 100644 index 0000000..34701e6 --- /dev/null +++ b/ruoyi-ui/src/views/demo/product/index.vue @@ -0,0 +1,285 @@ + + + diff --git a/sql/update.sql b/sql/update.sql index 9fc60db..06f5954 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -35,9 +35,38 @@ values('学生信息单表(mb)删除', @parentId, '4', '#', '', 1, 0, 'F', '0', insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values('学生信息单表(mb)导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'demo:student:export', '#', 'admin', sysdate(), '', null, ''); +-- 树表 demo_product 结构定义 +CREATE TABLE IF NOT EXISTS `demo_product` ( + `product_id` bigint NOT NULL AUTO_INCREMENT COMMENT '产品id', + `parent_id` bigint DEFAULT '0' COMMENT '父产品id', + `product_name` varchar(30) COLLATE utf8mb4_bin DEFAULT '' COMMENT '产品名称', + `order_num` int DEFAULT '0' COMMENT '显示顺序', + `status` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '产品状态(0正常 1停用)', + PRIMARY KEY (`product_id`) + ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='产品表'; + +-- 产品树表(mb)菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表(mb)', '2018', '1', 'product', 'demo/product/index', 1, 0, 'C', '0', '0', 'demo:product:list', '#', 'admin', sysdate(), '', null, '产品树表(mb)菜单'); +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表(mb)查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'demo:product:query', '#', 'admin', sysdate(), '', null, ''); +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表(mb)新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'demo:product:add', '#', 'admin', sysdate(), '', null, ''); +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表(mb)修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'demo:product:edit', '#', 'admin', sysdate(), '', null, ''); +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表(mb)删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'demo:product:remove', '#', 'admin', sysdate(), '', null, ''); +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('产品树表(mb)导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'demo:product:export', '#', 'admin', sysdate(), '', null, ''); + + -- 插入gen_table数据 INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES - (1, 'demo_student', '学生信息表', NULL, NULL, 'DemoStudent', 'crud', 'com.ruoyi.demo', 'demo', 'student', '学生信息单表(mb)', '数据小王子', '0', '/', '{"parentMenuId":"2018"}', 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53', '生成mybatis语法单表代码'); + (1, 'demo_student', '学生信息表', NULL, NULL, 'DemoStudent', 'crud', 'com.ruoyi.demo', 'demo', 'student', '学生信息单表(mb)', '数据小王子', '0', '/', '{"parentMenuId":"2018"}', 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53', '生成mybatis语法单表代码'), + (2, 'demo_product', '产品树表', '', '', 'DemoProduct', 'tree', 'com.ruoyi.demo', 'demo', 'product', '产品树表(mb)', '数据小王子', '0', '/', '{"treeCode":"product_id","treeName":"product_name","treeParentCode":"parent_id","parentMenuId":"2018"}', 'admin', '2023-06-04 21:22:27', '', '2023-07-09 20:56:08', '生成mybatis语法树表代码'); -- 插入gen_table_column数据 INSERT INTO `gen_table_column` (`column_id`, `table_id`, `column_name`, `column_comment`, `column_type`, `java_type`, `java_field`, `is_pk`, `is_increment`, `is_required`, `is_insert`, `is_edit`, `is_list`, `is_query`, `query_type`, `html_type`, `dict_type`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES @@ -47,7 +76,12 @@ INSERT INTO `gen_table_column` (`column_id`, `table_id`, `column_name`, `column_ (4, 1, 'student_hobby', '爱好(0代码 1音乐 2电影)', 'varchar(30)', 'String', 'studentHobby', '0', '0', '1', '1', '1', '1', '0', 'EQ', 'select', 'sys_student_hobby', 4, 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53'), (5, 1, 'student_sex', '性别(1男 2女 3未知)', 'char(1)', 'String', 'studentSex', '0', '0', '1', '1', '1', '1', '0', 'EQ', 'select', 'sys_user_sex', 5, 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53'), (6, 1, 'student_status', '状态(0正常 1停用)', 'char(1)', 'String', 'studentStatus', '0', '0', '1', '1', '1', '1', '0', 'EQ', 'radio', 'sys_student_status', 6, 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53'), - (7, 1, 'student_birthday', '生日', 'datetime', 'Date', 'studentBirthday', '0', '0', '1', '1', '1', '1', '0', 'EQ', 'datetime', '', 7, 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53'); + (7, 1, 'student_birthday', '生日', 'datetime', 'Date', 'studentBirthday', '0', '0', '1', '1', '1', '1', '0', 'EQ', 'datetime', '', 7, 'admin', '2023-06-03 21:44:19', '', '2023-07-09 12:14:53'), + (8, 2, 'product_id', '产品id', 'bigint', 'Long', 'productId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2023-06-04 21:22:27', '', '2023-07-09 20:56:08'), + (9, 2, 'parent_id', '父产品id', 'bigint', 'Long', 'parentId', '0', '0', NULL, '1', '1', '0', '0', 'EQ', 'input', '', 2, 'admin', '2023-06-04 21:22:27', '', '2023-07-09 20:56:08'), + (10, 2, 'product_name', '产品名称', 'varchar(30)', 'String', 'productName', '0', '0', NULL, '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2023-06-04 21:22:27', '', '2023-07-09 20:56:08'), + (11, 2, 'order_num', '显示顺序', 'int', 'Long', 'orderNum', '0', '0', NULL, '1', '1', '0', '0', 'EQ', 'input', '', 4, 'admin', '2023-06-04 21:22:27', '', '2023-07-09 20:56:08'), + (12, 2, 'status', '产品状态(0正常 1停用)', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'select', 'sys_common_status', 5, 'admin', '2023-06-04 21:22:27', '', '2023-07-09 20:56:08');