Open songhuiqing88 opened 7 years ago
-- app 配置
INSERT INTO `gt_3rd_app` (`APP_ID`, `APP_NAME`, `APP_SECRET`, `APP_ORIGIN`, `APP_TYPE_SUPPORT`) VALUES ('wx5ff31dd9d60ab12d', '亦庄党群', 'a145ed182155831bd49d7cb05478e52d', 'wx', 'MP');
INSERT INTO `gt_3rd_app_parameter` (`PARAMETER_ID`, `PARAMETER_KEY`, `PARAMETER_VALUE`, `PARAMETER_NAME`, `PARAMETER_DESC`, `APP_ID`) VALUES ('1eb83386-b89f-11e7-84ef-000c29a5067b', 'scope', 'snsapi_userinfo', NULL, NULL, 'wx5ff31dd9d60ab12d');
INSERT INTO `gt_3rd_app_parameter` (`PARAMETER_ID`, `PARAMETER_KEY`, `PARAMETER_VALUE`, `PARAMETER_NAME`, `PARAMETER_DESC`, `APP_ID`) VALUES ('26c94bfc-b89f-11e7-84ef-000c29a5067b', 'accessurl', 'https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope={2}&state={3}#wechat_redirect', NULL, NULL, 'wx5ff31dd9d60ab12d');
INSERT INTO `gt_3rd_app_parameter` (`PARAMETER_ID`, `PARAMETER_KEY`, `PARAMETER_VALUE`, `PARAMETER_NAME`, `PARAMETER_DESC`, `APP_ID`) VALUES ('3940784c-b8ad-11e7-84ef-000c29a5067b', 'redirecturl', 'http://r1fst9d.hk1.mofasuidao.cn/wx/page/login/wx-account/login.html?appId={0}', NULL, NULL, 'wx5ff31dd9d60ab12d');
delete from gt_wx_parameter
where parameter_id
in ('00796806-c4c4-11e5-adf3-000c299d8d48','11223e4f-c4c4-11e5-adf3-000c299d8d48');
INSERT INTO gt_wx_parameter
(parameter_id
, parameter_key
, parameter_value
, parameter_name
, parameter_description
) VALUES ('00796806-c4c4-11e5-adf3-000c299d8d48', 'GT_WX_MP_APP_ID', 'wx5ff31dd9d60ab12d', '微信公众号appid', NULL);
INSERT INTO gt_wx_parameter
(parameter_id
, parameter_key
, parameter_value
, parameter_name
, parameter_description
) VALUES ('11223e4f-c4c4-11e5-adf3-000c299d8d48', 'GT_WX_MP_APP_SECRET', 'a145ed182155831bd49d7cb05478e52d', '微信公众号app corpSecret', NULL);
-- 媒体服务数据
delete from gt_media_service
;
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-aicc', 'aicc课件服务', 'aicc_service', '3', 'zip', 'aicclocal', 'http://127.0.0.1/aicc', '2', 'aicclocal', NULL, '/inchen/media', 'wmv_video_service');
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-doc', '文档服务', 'doc_service', '1', 'doc,docx,ppt,pptx,pdf,txt', 'local', 'http://', '1', 'local', NULL, NULL, NULL);
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-mp4-rtmp', 'mp4_rtmp播放协议', 'mp4_rtmp_service', '2', 'mp4', 'ftp', 'rtmp://192.168.10.133:1935/vod/definst/&mp4:/', '2', 'ftp', NULL, NULL, NULL);
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-multpicture', '多图片媒体服务', 'mult_image_service', '4', 'jpg,png', 'picturelocal', 'http://127.0.0.1/image', '2', 'picturelocal', NULL, NULL, NULL);
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-picture', '图片裁剪服务', 'image_service', '4', 'jpg,png', 'picturelocal', 'http://192.168.8.32/image', '1', 'picturelocal', NULL, NULL, NULL);
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-scorm', 'scorm课件服务', 'scorm_service', '3', 'zip', 'scormlocal', 'http://127.0.0.1/scorm', '2', 'scormlocal', NULL, '/media', 'void_service');
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-void', 'MP4视频服务', 'void_service', '2', 'mp4', 'voidlocal', 'http://192.168.8.32/mp4', '2', 'voidlocal', NULL, NULL, NULL);
INSERT INTO gt_media_service
(SERVICE_ID
, SERVICE_NAME
, SERVICE_CODE
, SERVICE_TYPE
, SUPPORT_FORMAT
, SAVE_LOCATION
, SERVICE_PROTOCOL
, IS_CONVERT
, CONVERT_SAVE_LOCATION
, convert_type
, file_Route
, void_Service
) VALUES ('uuid-service-wmvvideo', 'WMV视频服务', 'wmv_video_service', '2', 'wmv,wma', 'aiccftp', 'mms://192.168.10.212/zxxx/', '2', 'aiccftp', NULL, NULL, NULL);
INSERT INTO gt_config_depository
(CONFIG_ID
, SERVICE_CODE
, ITEM_CODE
, ITEM_VALUE
, LAST_MODIFIED_DATE
) VALUES ('5b7ef01ece2cfde432184e5dcc9e0cb7', 'f8395dcee81a4a261556b4f6946d763f', 'class_sign_path', 'http://r1fst9d.hk1.mofasuidao.cn/wx/page/classes/classes-sign/control.html', '2017-10-30 05:29:40');
#### 介质安装
- tomcat 数据源配置
<Resource name="jdbc/baseDS" auth="Container" type="javax.sql.DataSource" maxActive="10" maxIdle="5" maxWait="10000" username="gtiles" password="Klx1234!" driverClassName="com.mysql.jdbc.Driver" validationQuery="select 1" testOnBorrow="true" url="jdbc:mysql://192.168.8.32:3306/gtiles?useOldAliasMetadataBehavior=true&characterEncoding=utf8" />
- lic文件配置,lic文件放在“user.dir”目录下,如不清楚,请在tomcat的setenv.sh中指定。
JAVA_HOME=/usr/local/java JAVA_OPTS="-Duser.dir=/root/klxedu/lic -server -Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m"
- 启动tomcat,确保WEB-INF下没有install.lok文件,执行应用安装
- 更新项目个性化脚本。
- 执行签到触发器脚本
-- 签到触发器
CREATE TRIGGER gt_signature_stu_after_insert
AFTER INSERT ON gt_signature_stu
FOR EACH ROW BEGIN
UPDATE gt_class_stu
SET is_sign = 1
WHERE
user_id = new.stu_id
AND class_id = (
SELECT
r.APPLICATION_CODE
FROM
gt_signature_rule r
WHERE
r.RULE_ID = new.RULE_ID
);
END
;;
亦庄党群活动中心档案系统后台管理端技术方案
角色定义
菜单
功能实施
活动管理
活动列表 4H
资讯管理 0.5人天
去除无用的字段
考核管理 0.5人天
过程管理 2人天
计划外修改 0.5