Просмотр исходного кода

修复网友 龙行天下の极 无法登陆问题,配置信息调整和一些bug 修复

wuxw7 лет назад: 7
Родитель
Сommit
f8d8dea935

+ 1 - 1
CenterService/src/main/resources/application.yml

@@ -1,3 +1,3 @@
 spring:
   profiles:
-    active: dev
+    active: prod

+ 1 - 1
ConsoleService/src/main/resources/application.yml

@@ -1,3 +1,3 @@
 spring:
   profiles:
-    active: dev
+    active: prod

+ 9 - 10
MicroCommunity.sql

@@ -233,10 +233,10 @@ insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_i
 values('query.order.orderInfo','Q','订单信息',1,'http://center-service/businessApi/query','8000418001','0');
 
 insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id,status_cd)
-values('query.console.menu','Q','查询菜单',1,'http://console-service/businessApi/query','8000418002','0');
+values('query.console.menu','Q','查询菜单',1,'http://center-service/businessApi/query','8000418002','0');
 
 insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id,status_cd)
-values('query.user.loginInfo','Q','查询用户登录信息',1,'http://console-service/businessApi/query','8000418002','0');
+values('query.user.loginInfo','Q','查询用户登录信息',1,'http://center-service/businessApi/query','8000418002','0');
 
 INSERT INTO c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id)
 VALUES('query.console.template','Q','查询模板信息',1,'http://center-service/businessApi/query','8000418002');
@@ -328,6 +328,11 @@ insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) valu
 '8000418001','3','S','Q','0'
 );
 
+insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) values(
+'8000418002','3','S','Q','0'
+);
+
+
 insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) values(
 '8000418002','4','S','Q','0'
 );
@@ -453,7 +458,7 @@ VALUES('query.console.menu','查询菜单','manageId,menuGroup','1','{
 
 INSERT INTO c_service_sql(service_code,`name`,params,query_model,`sql`,proc,template,remark,status_cd)
 VALUES('query.user.loginInfo','查询用户登录信息','userCode','1','{
-                                                 	"param1":"select u.userId userId,u.name userName,u.password userPwd from user u where u.userCode = #userCode# and u.status_cd = ''0''"
+                                                 	"param1":"SELECT ''10001'' userId,''admin'' userName,''d57167e07915c9428b1c3aae57003807'' userPwd FROM DUAL WHERE #userCode#=''admin''"
                                                  }','','{"PARAM":{
                                                             "param1": "$.#user#Object"
                                                             },"TEMPLATE":{
@@ -1841,10 +1846,4 @@ create table credentials(
     `name` VARCHAR(50) NOT NULL COMMENT '证件名称',
     description VARCHAR(200) COMMENT '描述',
     create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
-);
-
-
-
-
-
-
+);

+ 8 - 3
java110-config/db/CenterService/create_table.db

@@ -162,7 +162,7 @@ INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','耗
 INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','规则开关','RULE_ON_OFF','OFF','规则开关');
 INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','不调规则服务的订单类型','NO_NEED_RULE_VALDATE_ORDER','Q','不调规则服务的订单类型');
 INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','不保存订单信息','NO_SAVE_ORDER','Q,T','不保存订单信息');
-INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','不用调用 下游系统的配置','NO_INVOKE_BUSINESS_SYSTEM','Q','不用调用 下游系统的配置(一般不存在这种情况,这里主要是在没有下游系统的情况下测试中心服务用)');
+-- INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','不用调用 下游系统的配置','NO_INVOKE_BUSINESS_SYSTEM','Q','不用调用 下游系统的配置(一般不存在这种情况,这里主要是在没有下游系统的情况下测试中心服务用)');
 INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','不用调用 作废下游系统的配置','NO_INVALID_BUSINESS_SYSTEM','Q','不用调用 作废下游系统的配置 (一般不存在这种情况,这里主要是在没有下游系统的情况下测试中心服务用)');
 INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','需要调用服务生成各个ID','NEED_INVOKE_SERVICE_GENERATE_ID','OFF','需要调用服务生成各个ID');
 INSERT c_mapping(domain,`name`,`key`,`value`,remark) VALUES('DOMAIN.COMMON','公钥','PUBLIC_STRING','MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDloKXSBA5+tP39uS8yi5RZOs6Jdrt0znRQetyXX2l/IUCi1x1QAMgoZbnEavmdZ5jOZN/T1WYFbt/VomXEHaTdStAiYm3DCnxxy5CMMyRKai0+6n4lLJQpUmnAQPFENrOV8b70gBSBVjUXksImgui5qYaNqX90pjEzcyq+6CugBwIDAQAB','公钥');
@@ -227,7 +227,7 @@ insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_i
 values('query.order.orderInfo','Q','订单信息',1,'http://center-service/businessApi/query','8000418001','0');
 
 insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id,status_cd)
-values('query.console.menu','Q','查询菜单',1,'http://console-service/businessApi/query','8000418002','0');
+values('query.console.menu','Q','查询菜单',1,'http://center-service/businessApi/query','8000418002','0');
 
 insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id,status_cd)
 values('query.user.loginInfo','Q','查询用户登录信息',1,'http://console-service/businessApi/query','8000418002','0');
@@ -322,6 +322,10 @@ insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) valu
 '8000418001','3','S','Q','0'
 );
 
+insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) values(
+'8000418002','3','S','Q','0'
+);
+
 insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) values(
 '8000418002','4','S','Q','0'
 );
@@ -447,7 +451,7 @@ VALUES('query.console.menu','查询菜单','manageId,menuGroup','1','{
 
 INSERT INTO c_service_sql(service_code,`name`,params,query_model,`sql`,proc,template,remark,status_cd)
 VALUES('query.user.loginInfo','查询用户登录信息','userCode','1','{
-                                                 	"param1":"select u.userId userId,u.name userName,u.password userPwd from user u where u.userCode = #userCode# and u.status_cd = ''0''"
+                                                 	"param1":"SELECT ''10001'' userId,''admin'' userName,''d57167e07915c9428b1c3aae57003807'' userPwd FROM DUAL WHERE #userCode#=''admin''"
                                                  }','','{"PARAM":{
                                                             "param1": "$.#user#Object"
                                                             },"TEMPLATE":{
@@ -457,6 +461,7 @@ VALUES('query.user.loginInfo','查询用户登录信息','userCode','1','{
                                                          }
                                                        }}','','0');
 
+
 INSERT INTO c_service_sql(service_code,`name`,params,query_model,`sql`,proc,template,remark,status_cd)
 VALUES('query.console.template','查询模板信息','templateCode','1','{
                                                  	"param1":"SELECT t.template_code templateCode,t.name templateName,t.`html_name` htmlName,t.`url` templateUrl

+ 2 - 2
java110-config/db/CommentService/create_table.sql

@@ -94,7 +94,7 @@ CREATE TABLE c_sub_comment_photo(
     comment_photo_id VARCHAR(30) NOT NULL COMMENT '评论照片ID',
     b_id VARCHAR(30) NOT NULL COMMENT '业务Id',
     sub_comment_id VARCHAR(30) NOT NULL COMMENT '商店ID',
-    comment_photo_type_cd VARCHAR(12) NOT NULL default 'S' COMMENT '评论照片类型,S 商品照片 M 商户ID',
+    comment_photo_type_cd VARCHAR(2) NOT NULL default 'S' COMMENT '评论照片类型,S 商品照片 M 商户ID',
     photo VARCHAR(100) NOT NULL COMMENT '照片',
     `month` INT NOT NULL COMMENT '月份',
     create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
@@ -121,7 +121,7 @@ CREATE TABLE c_comment_score(
     comment_score_id VARCHAR(30) NOT NULL COMMENT '评论分数ID',
     comment_id VARCHAR(30) NOT NULL COMMENT '评论ID',
     b_id VARCHAR(30) NOT NULL COMMENT '业务Id',
-    score_type_cd VARCHAR(30) NOT NULL COMMENT '打分类别,S 商品相符,U 卖家打分,T 物流打分',
+    score_type_cd VARCHAR(2) NOT NULL COMMENT '打分类别,S 商品相符,U 卖家打分,T 物流打分',
     `value` INT NOT NULL COMMENT '分数',
     `month` INT NOT NULL COMMENT '月份',
     create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',

+ 10 - 13
java110-config/db/ShopService/create_table.sql

@@ -150,12 +150,10 @@ CREATE INDEX idx_business_shop_attr_param_b_id ON business_shop_attr_param(b_id)
 
 -- 商品优惠表
 CREATE TABLE business_shop_preferential(
-    shop_preferential_id VARCHAR(30) NOT NULL COMMENT '商品ID',
-    shop_id VARCHAR(30) NOT NULL COMMENT '商品ID',
+    preferential_id VARCHAR(30) NOT NULL COMMENT '优惠ID',
     b_id VARCHAR(30) NOT NULL COMMENT '业务Id',
-    original_price DECIMAL(10,2) NOT NULL COMMENT '商品销售价,再没有优惠的情况下和售价是一致的',
-    discount_rate DECIMAL(3,2) NOT NULL DEFAULT 1.00 COMMENT '商品打折率',
-    show_original_price VARCHAR(2) NOT NULL DEFAULT 'N' COMMENT '是否显示原价,Y显示,N 不显示',
+    preferential_type varchar(10) not null default 'U' comment '优惠类型,U 打折 , N 新用户优惠',
+    preferential_value varchar(10) not null comment '根据优惠类型填写值',
     preferential_start_date DATE NOT NULL COMMENT '商品优惠开始时间',
     preferential_end_date DATE NOT NULL COMMENT '商品优惠结束时间',
     `month` INT NOT NULL COMMENT '月份',
@@ -176,8 +174,8 @@ PARTITION BY RANGE (`month`) (
     PARTITION business_shop_preferential_11 VALUES LESS THAN (12),
     PARTITION business_shop_preferential_12 VALUES LESS THAN (13)
 );
-CREATE INDEX idx_business_shop_preferential_shop_id ON business_shop_preferential(shop_id);
 CREATE INDEX idx_business_shop_preferential_b_id ON business_shop_preferential(b_id);
+
 -- 商品描述
 create table business_shop_desc(
     shop_desc_id VARCHAR(30) NOT NULL COMMENT '商品描述ID',
@@ -253,22 +251,20 @@ create table s_shop_attr_param(
 CREATE INDEX idx_shop_attr_param_b_id ON s_shop_attr_param(b_id);
 CREATE INDEX idx_shop_attr_param_shop_id ON s_shop_attr_param(shop_id);
 
+
 create table s_shop_preferential(
-    shop_preferential_id VARCHAR(30) NOT NULL COMMENT '商品ID',
-    shop_id VARCHAR(30) NOT NULL COMMENT '商品ID',
+    preferential_id VARCHAR(30) NOT NULL COMMENT '优惠ID',
     b_id VARCHAR(30) NOT NULL COMMENT '业务Id',
-    original_price DECIMAL(10,2) not null comment '商品销售价,再没有优惠的情况下和售价是一致的',
-    discount_rate decimal(3,2) not null default 1.00 comment '商品打折率',
-    show_original_price varchar(2) not null default 'N' comment '是否显示原价,Y显示,N 不显示',
+    preferential_type varchar(10) not null default 'U' comment '优惠类型,U 打折 , N 新用户优惠',
+    preferential_value varchar(10) not null comment '根据优惠类型填写值',
     preferential_start_date date not null comment '商品优惠开始时间',
     preferential_end_date date not null comment '商品优惠结束时间',
     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 (shop_preferential_id)
+    UNIQUE KEY (preferential_id)
 );
 CREATE INDEX idx_shop_preferential_b_id ON s_shop_preferential(b_id);
-CREATE INDEX idx_shop_preferential_shop_id ON s_shop_preferential(shop_id);
+
 -- 商品描述
 create table s_shop_desc(
     shop_desc_id VARCHAR(30) NOT NULL COMMENT '商品描述ID',

+ 8 - 3
java110-config/docker/mysql/create_sql.sql

@@ -233,10 +233,10 @@ insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_i
 values('query.order.orderInfo','Q','订单信息',1,'http://center-service/businessApi/query','8000418001','0');
 
 insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id,status_cd)
-values('query.console.menu','Q','查询菜单',1,'http://console-service/businessApi/query','8000418002','0');
+values('query.console.menu','Q','查询菜单',1,'http://center-service/businessApi/query','8000418002','0');
 
 insert into c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id,status_cd)
-values('query.user.loginInfo','Q','查询用户登录信息',1,'http://console-service/businessApi/query','8000418002','0');
+values('query.user.loginInfo','Q','查询用户登录信息',1,'http://center-service/businessApi/query','8000418002','0');
 
 INSERT INTO c_service(service_code,business_type_cd,`name`,seq,url,provide_app_id)
 VALUES('query.console.template','Q','查询模板信息',1,'http://center-service/businessApi/query','8000418002');
@@ -328,6 +328,11 @@ insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) valu
 '8000418001','3','S','Q','0'
 );
 
+insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) values(
+'8000418002','3','S','Q','0'
+);
+
+
 insert into c_route(app_id,service_id,invoke_model,order_type_cd,status_cd) values(
 '8000418002','4','S','Q','0'
 );
@@ -453,7 +458,7 @@ VALUES('query.console.menu','查询菜单','manageId,menuGroup','1','{
 
 INSERT INTO c_service_sql(service_code,`name`,params,query_model,`sql`,proc,template,remark,status_cd)
 VALUES('query.user.loginInfo','查询用户登录信息','userCode','1','{
-                                                 	"param1":"select u.userId userId,u.name userName,u.password userPwd from user u where u.userCode = #userCode# and u.status_cd = ''0''"
+                                                 	"param1":"SELECT ''10001'' userId,''admin'' userName,''d57167e07915c9428b1c3aae57003807'' userPwd FROM DUAL WHERE #userCode#=''admin''"
                                                  }','','{"PARAM":{
                                                             "param1": "$.#user#Object"
                                                             },"TEMPLATE":{

+ 1 - 1
java110-service/src/main/java/com/java110/service/smo/impl/QueryServiceSMOImpl.java

@@ -265,7 +265,7 @@ public class QueryServiceSMOImpl extends LoggerEngine implements IQueryServiceSM
                 if(StringUtil.isNullOrNone(values[1])){
                     return ;
                 }
-                obj.put(values[1], new JSONObject());
+                obj.put(values[1], values[2].equals("Object")?new JSONObject():new JSONArray());
                 return;
             }
             if (values[2].equals("Object")) {

+ 67 - 0
微小区开发建议.docx

@@ -0,0 +1,67 @@
+                             微小区开发指导
+一、系统功能
+微小区系统旨在提供业主,物业,商户之间信息交流,目前初步计划功能有:
+
+ 小区公告(未实现)。
+ 小区论坛(未实现)。
+ 交电费水费(未实现)。
+ 交物业费停车费(未实现)
+ 投诉建议(未实现)
+ 外卖服务(正在开发)
+ 上班顺风车服务(未实现)
+
+大的方向目前考虑到的有这么几类,欢迎大家补充。
+
+ 系统架构
+目前提供3套系统 分别是商家 物业 代理商 物流 用的商家版App 目前正在开发中(https://github.com/java110/MApp),功能包括 
+ 开店 (未实现)
+ 开店审核(未实现)
+ 商品管理(正在做)
+ 订单管理(开发完成,待和后端串测)
+ 物流管理(未实现)
+ 个人中心(开发完成,待和后端串测)
+ 商户管理(未实现)
+ 登录 注册功能(未实现)
+ 电费水费管理(未实现)
+ 物业费停车费管理(未实现)
+ 发布小区公告
+ 小区管理
+注意:开发语言为react-native
+
+统一后端服务(https://github.com/java110/MicroCommunity),功能包括
+ 中心服务(订单管理)(已完成)
+ 用户管理(已完成)
+ 商品管理(已完成)
+ 商户管理(已完成)
+ 评论管理(已完成)
+ 主键生成服务(已完成)
+ 论坛(未实现)
+ 投诉建议服务(未实现)
+ 缴费功能(未实现)
+ 小区管理(未实现)
+
+注意:开发语言为java
+
+已经全部完成,详细请查看协议文档 https://github.com/java110/MicroCommunity/wiki
+
+微信小程序 (主要面向用户,后期还会计划开发用户App)(还未开发)主要功能有:
+
+ 公告展示(未实现)
+ 发布论坛消息(未实现)
+ 交物业费停车费(未实现)
+ 交水费电费(未实现)
+ 商品展示,购买(未实现)
+ 支付功能(物业费,停车费,水费,电费,商品购买)(未实现)
+ 物流信息查看(未实现)
+ 退换货(未实现)
+ 个人中心(未实现)
+
+ 计划运营方式
+角色:程序运维者,代理商,物业,商户,业主
+
+程序运营者:发布部署程序,寻找小区代理商 和代理商商量 收费情况(按订单收费,或包月收费等 系统都会支持);
+小区代理商:和物业、商户洽谈接入微小区平台 和 物业和商户商量 收费情况(按订单收费,或包月收费等 系统都会支持);小区代理商推销系统。
+物业:提供线上缴费及公告功能,减少人员成本。
+商户:靠微小区平台,销售商品增加收入
+业主:可以在微小区平台,购买商品,缴费,意见反馈,论坛交流。
+