Browse Source

小区活动前台页面代码生成模板抒写完成

wuxw 6 years ago
parent
commit
e95409699b

+ 51 - 72
java110-code-generator/src/main/resources/web/template_1.json

@@ -1,132 +1,111 @@
 {
-  "templateName":"审核业主绑定",
-  "templateCode":"auditAppUserBindingOwner",
-  "templateKey":"appUserId",
-  "templateKeyName":"绑定ID",
-  "searchCode": "name",
-  "searchName": "名称",
+  "templateName":"活动",
+  "templateCode":"activities",
+  "templateKey":"activitiesId",
+  "templateKeyName":"活动ID",
+  "searchCode": "title",
+  "searchName": "活动标题",
   "conditions": [
     {
-      "name": "业主名称",
+      "name": "活动标题",
       "inputType": "input",
-      "code": "appUserName",
+      "code": "title",
       "whereCondition": "equal"
     },
     {
-      "name": "业主身份证",
-      "inputType": "input",
-      "code": "idCard",
+      "name": "活动类型",
+      "inputType": "select",
+      "selectValue":"10001,10002",
+      "selectValueName":"小区文化,其他",
+      "code": "typeCd",
       "whereCondition": "equal"
     },
     {
-      "name": "状态",
+      "name": "员工名称",
       "inputType": "input",
-      "inputType": "select",
-      "selectValue":"10000,12000,13000",
-      "selectValueName":"审核中,审核成功,审核失败"
+      "code": "userName",
+      "whereCondition": "equal"
     },
     {
-      "name": "业主手机",
+      "name": "活动ID",
       "inputType": "input",
-      "code": "link",
+      "code": "activitiesId",
       "whereCondition": "equal"
     }
   ],
   "columns":[
     {
-      "code":"memberId",
-      "cnCode":"业主ID",
-      "desc":"必填,请填写业主ID",
+      "code":"title",
+      "cnCode":"活动标题",
+      "desc":"必填,请填写业活动标题",
       "required":true,
       "hasDefaultValue":false,
       "inputType":"input",
       "limit":"maxin",
-      "limitParam":"1,64",
-      "limitErrInfo":"业主ID不能超过64位",
-      "show": true
-    },
-    {
-      "code": "communityId",
-      "cnCode":"小区ID",
-      "desc":"必填,请填写小区ID",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType": "input",
-      "limit":"num",
-      "limitParam":"",
-      "limitErrInfo":"小区ID格式错误",
+      "limitParam":"1,200",
+      "limitErrInfo":"活动标题不能超过200位",
       "show": true
     },
     {
-      "code": "communityName",
-      "cnCode":"小区名称",
-      "desc":"必填,请填写小区名称",
+      "code": "typeCd",
+      "cnCode":"活动类型",
+      "desc":"必填,请选择活动类型",
       "required":true,
       "hasDefaultValue":false,
-      "inputType": "input",
+      "inputType": "select",
+      "selectValue":"10001,10002",
+      "selectValueName":"小区文化,其他",
       "limit":"num",
       "limitParam":"",
-      "limitErrInfo":"小区名称格式错误",
+      "limitErrInfo":"活动类型格式错误",
       "show": true
     },
     {
-      "code": "appUserName",
-      "cnCode":"关联业主",
-      "desc":"必填,请填写业主",
+      "code": "headerImg",
+      "cnCode":"头部照片",
+      "desc":"必填,请选择头部照片",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"num",
-      "limitParam":"",
-      "limitErrInfo":"关联业主格式错误",
+      "limit":"maxin",
+      "limitParam":"1,200",
+      "limitErrInfo":"头部照片格式错误",
       "show": true
     },
     {
-      "code": "idCard",
-      "cnCode":"身份证",
-      "desc":"必填,请填写身份证",
+      "code": "context",
+      "cnCode":"活动内容",
+      "desc":"必填,请填写活动内容",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"num",
-      "limitParam":"",
-      "limitErrInfo":"身份证不是有效数字",
-      "show": true
-    },
-    {
-      "code":"link",
-      "cnCode":"手机号",
-      "desc":"必填,请填写手机号",
-      "required":true,
-      "hasDefaultValue":false,
-      "inputType":"input",
-      "limit":"phone",
-      "limitParam":"",
-      "limitErrInfo":"手机号不是有效的身份证号",
+      "limit":"maxin",
+      "limitParam":"1,4000",
+      "limitErrInfo":"活动内容太长",
       "show": true
     },
     {
-      "code": "state",
-      "cnCode":"状态",
-      "desc":"必填,请填写状态",
+      "code": "startTime",
+      "cnCode":"开始时间",
+      "desc":"必填,请选择开始时间",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"dateTime",
+      "limit":"date",
       "limitParam":"",
-      "limitErrInfo":"不是有效的时间格式",
+      "limitErrInfo":"开始时间格式错误",
       "show": true
     },
     {
-      "code": "createTime",
-      "cnCode":"申请时间",
+      "code": "endTime",
+      "cnCode":"结束时间",
       "desc":"必填,请选择结束时间",
       "required":true,
       "hasDefaultValue":false,
       "inputType": "input",
-      "limit":"dateTime",
+      "limit":"date",
       "limitParam":"",
-      "limitErrInfo":"不是有效的时间格式",
+      "limitErrInfo":"结束时间格式错误",
       "show": true
     }
   ]

+ 133 - 0
java110-code-generator/src/main/resources/web/template_appUserBindingOwner.json

@@ -0,0 +1,133 @@
+{
+  "templateName":"审核业主绑定",
+  "templateCode":"auditAppUserBindingOwner",
+  "templateKey":"appUserId",
+  "templateKeyName":"绑定ID",
+  "searchCode": "name",
+  "searchName": "名称",
+  "conditions": [
+    {
+      "name": "业主名称",
+      "inputType": "input",
+      "code": "appUserName",
+      "whereCondition": "equal"
+    },
+    {
+      "name": "业主身份证",
+      "inputType": "input",
+      "code": "idCard",
+      "whereCondition": "equal"
+    },
+    {
+      "name": "状态",
+      "inputType": "input",
+      "inputType": "select",
+      "selectValue":"10000,12000,13000",
+      "selectValueName":"审核中,审核成功,审核失败"
+    },
+    {
+      "name": "业主手机",
+      "inputType": "input",
+      "code": "link",
+      "whereCondition": "equal"
+    }
+  ],
+  "columns":[
+    {
+      "code":"memberId",
+      "cnCode":"业主ID",
+      "desc":"必填,请填写业主ID",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType":"input",
+      "limit":"maxin",
+      "limitParam":"1,64",
+      "limitErrInfo":"业主ID不能超过64位",
+      "show": true
+    },
+    {
+      "code": "communityId",
+      "cnCode":"小区ID",
+      "desc":"必填,请填写小区ID",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"num",
+      "limitParam":"",
+      "limitErrInfo":"小区ID格式错误",
+      "show": true
+    },
+    {
+      "code": "communityName",
+      "cnCode":"小区名称",
+      "desc":"必填,请填写小区名称",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"num",
+      "limitParam":"",
+      "limitErrInfo":"小区名称格式错误",
+      "show": true
+    },
+    {
+      "code": "appUserName",
+      "cnCode":"关联业主",
+      "desc":"必填,请填写业主",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"num",
+      "limitParam":"",
+      "limitErrInfo":"关联业主格式错误",
+      "show": true
+    },
+    {
+      "code": "idCard",
+      "cnCode":"身份证",
+      "desc":"必填,请填写身份证",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"num",
+      "limitParam":"",
+      "limitErrInfo":"身份证不是有效数字",
+      "show": true
+    },
+    {
+      "code":"link",
+      "cnCode":"手机号",
+      "desc":"必填,请填写手机号",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType":"input",
+      "limit":"phone",
+      "limitParam":"",
+      "limitErrInfo":"手机号不是有效的身份证号",
+      "show": true
+    },
+    {
+      "code": "state",
+      "cnCode":"状态",
+      "desc":"必填,请填写状态",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"dateTime",
+      "limitParam":"",
+      "limitErrInfo":"不是有效的时间格式",
+      "show": true
+    },
+    {
+      "code": "createTime",
+      "cnCode":"申请时间",
+      "desc":"必填,请选择结束时间",
+      "required":true,
+      "hasDefaultValue":false,
+      "inputType": "input",
+      "limit":"dateTime",
+      "limitParam":"",
+      "limitErrInfo":"不是有效的时间格式",
+      "show": true
+    }
+  ]
+}

+ 2 - 0
java110-db/db/CommunityService/create_activities.sql

@@ -14,6 +14,7 @@ CREATE TABLE business_activities(
   user_name VARCHAR(30) NOT NULL COMMENT '创建用户名称',
   start_time timestamp not null default  current_timestamp comment '开始时间',
   end_time timestamp not null comment '结束时间',
+  state varchar(12) not null default '10000' comment '审核状态,10000 待审核 ,11000 审核完成 12000 审核失败',
   create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
   operate VARCHAR(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL'
 );
@@ -38,6 +39,7 @@ CREATE TABLE activities(
     user_name VARCHAR(30) NOT NULL COMMENT '创建用户名称',
     start_time timestamp not null default  current_timestamp comment '开始时间',
     end_time timestamp not null comment '结束时间',
+     state varchar(12) not null default '10000' comment '审核状态,10000 待审核 ,11000 审核完成 12000 审核失败',
   create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
   status_cd VARCHAR(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
   UNIQUE KEY (activities_id)