Procházet zdrojové kódy

可以启动成功

xujunwei před 5 měsíci
rodič
revize
85fe270558

+ 0 - 195
src/main/java/com/mrxu/admin/Test.java

@@ -1,195 +0,0 @@
-package com.mrxu.admin;
-
-public class Test {
-
-    private static String font = "icon-accessory:before { content: e6dd}\n" +
-            ".icon-activity:before { content: e6de}\n" +
-            ".icon-activity_fill:before { content: e6df}\n" +
-            ".icon-add:before { content: e6e0}\n" +
-            ".icon-addition_fill:before { content: e6e1}\n" +
-            ".icon-addition:before { content: e6e2}\n" +
-            ".icon-addpeople_fill:before { content: e6e3}\n" +
-            ".icon-addpeople:before { content: e6e4}\n" +
-            ".icon-addressbook_fill:before { content: e6e5}\n" +
-            ".icon-addressbook:before { content: e6e6}\n" +
-            ".icon-barrage_fill:before { content: e6e7}\n" +
-            ".icon-barrage:before { content: e6e8}\n" +
-            ".icon-browse_fill:before { content: e6e9}\n" +
-            ".icon-browse:before { content: e6ea}\n" +
-            ".icon-brush:before { content: e6eb}\n" +
-            ".icon-brush_fill:before { content: e6ec}\n" +
-            ".icon-businesscard_fill:before { content: e6ed}\n" +
-            ".icon-businesscard:before { content: e6ee}\n" +
-            ".icon-camera_fill:before { content: e6ef}\n" +
-            ".icon-camera:before { content: e6f0}\n" +
-            ".icon-clock_fill:before { content: e6f1}\n" +
-            ".icon-clock:before { content: e6f2}\n" +
-            ".icon-close:before { content: e6f3}\n" +
-            ".icon-collection_fill:before { content: e6f4}\n" +
-            ".icon-collection:before { content: e6f5}\n" +
-            ".icon-computer_fill:before { content: e6f6}\n" +
-            ".icon-computer:before { content: e6f7}\n" +
-            ".icon-coordinates_fill:before { content: e6f8}\n" +
-            ".icon-coordinates:before { content: e6f9}\n" +
-            ".icon-coupons_fill:before { content: e6fa}\n" +
-            ".icon-coupons:before { content: e6fb}\n" +
-            ".icon-createtask_fill:before { content: e6fc}\n" +
-            ".icon-createtask:before { content: e6fd}\n" +
-            ".icon-customerservice_fill:before { content: e6fe}\n" +
-            ".icon-customerservice:before { content: e6ff}\n" +
-            ".icon-delete_fill:before { content: e700}\n" +
-            ".icon-delete:before { content: e701}\n" +
-            ".icon-document:before { content: e702}\n" +
-            ".icon-document_fill:before { content: e703}\n" +
-            ".icon-dynamic_fill:before { content: e704}\n" +
-            ".icon-dynamic:before { content: e705}\n" +
-            ".icon-editor:before { content: e706}\n" +
-            ".icon-eit:before { content: e707}\n" +
-            ".icon-emoji_fill:before { content: e708}\n" +
-            ".icon-emoji:before { content: e709}\n" +
-            ".icon-empty:before { content: e70a}\n" +
-            ".icon-empty_fill:before { content: e70b}\n" +
-            ".icon-enter:before { content: e70c}\n" +
-            ".icon-enterinto:before { content: e70d}\n" +
-            ".icon-enterinto_fill:before { content: e70e}\n" +
-            ".icon-feedback_fill:before { content: e70f}\n" +
-            ".icon-feedback:before { content: e710}\n" +
-            ".icon-flag_fill:before { content: e711}\n" +
-            ".icon-flag:before { content: e712}\n" +
-            ".icon-flashlight:before { content: e713}\n" +
-            ".icon-flashlight_fill:before { content: e714}\n" +
-            ".icon-flip:before { content: e715}\n" +
-            ".icon-flip_fill:before { content: e716}\n" +
-            ".icon-fullscreen:before { content: e717}\n" +
-            ".icon-group:before { content: e718}\n" +
-            ".icon-group_fill:before { content: e719}\n" +
-            ".icon-headlines_fill:before { content: e71a}\n" +
-            ".icon-headlines:before { content: e71b}\n" +
-            ".icon-homepage_fill:before { content: e71c}\n" +
-            ".icon-homepage:before { content: e71d}\n" +
-            ".icon-integral_fill:before { content: e71e}\n" +
-            ".icon-integral:before { content: e71f}\n" +
-            ".icon-interactive_fill:before { content: e720}\n" +
-            ".icon-interactive:before { content: e721}\n" +
-            ".icon-keyboard:before { content: e722}\n" +
-            ".icon-label:before { content: e723}\n" +
-            ".icon-label_fill:before { content: e724}\n" +
-            ".icon-like_fill:before { content: e725}\n" +
-            ".icon-like:before { content: e726}\n" +
-            ".icon-live_fill:before { content: e727}\n" +
-            ".icon-live:before { content: e728}\n" +
-            ".icon-lock_fill:before { content: e729}\n" +
-            ".icon-lock:before { content: e72a}\n" +
-            ".icon-mail:before { content: e72b}\n" +
-            ".icon-mail_fill:before { content: e72c}\n" +
-            ".icon-manage_fill:before { content: e72d}\n" +
-            ".icon-manage:before { content: e72e}\n" +
-            ".icon-message:before { content: e72f}\n" +
-            ".icon-message_fill:before { content: e730}\n" +
-            ".icon-mine:before { content: e731}\n" +
-            ".icon-mine_fill:before { content: e732}\n" +
-            ".icon-mobilephone_fill:before { content: e733}\n" +
-            ".icon-mobilephone:before { content: e734}\n" +
-            ".icon-more:before { content: e735}\n" +
-            ".icon-narrow:before { content: e736}\n" +
-            ".icon-offline_fill:before { content: e737}\n" +
-            ".icon-offline:before { content: e738}\n" +
-            ".icon-order_fill:before { content: e739}\n" +
-            ".icon-order:before { content: e73a}\n" +
-            ".icon-other:before { content: e73b}\n" +
-            ".icon-people_fill:before { content: e73c}\n" +
-            ".icon-people:before { content: e73d}\n" +
-            ".icon-picture_fill:before { content: e73e}\n" +
-            ".icon-picture:before { content: e73f}\n" +
-            ".icon-play:before { content: e740}\n" +
-            ".icon-play_fill:before { content: e741}\n" +
-            ".icon-playon_fill:before { content: e742}\n" +
-            ".icon-playon:before { content: e743}\n" +
-            ".icon-praise_fill:before { content: e744}\n" +
-            ".icon-praise:before { content: e745}\n" +
-            ".icon-prompt_fill:before { content: e746}\n" +
-            ".icon-prompt:before { content: e747}\n" +
-            ".icon-qrcode_fill:before { content: e748}\n" +
-            ".icon-qrcode:before { content: e749}\n" +
-            ".icon-redpacket_fill:before { content: e74a}\n" +
-            ".icon-redpacket:before { content: e74b}\n" +
-            ".icon-refresh:before { content: e74c}\n" +
-            ".icon-remind_fill:before { content: e74d}\n" +
-            ".icon-remind:before { content: e74e}\n" +
-            ".icon-return:before { content: e74f}\n" +
-            ".icon-right:before { content: e750}\n" +
-            ".icon-scan:before { content: e751}\n" +
-            ".icon-select_fill:before { content: e752}\n" +
-            ".icon-select:before { content: e753}\n" +
-            ".icon-send:before { content: e754}\n" +
-            ".icon-service_fill:before { content: e755}\n" +
-            ".icon-service:before { content: e756}\n" +
-            ".icon-setup_fill:before { content: e757}\n" +
-            ".icon-setup:before { content: e758}\n" +
-            ".icon-share_fill:before { content: e759}\n" +
-            ".icon-share:before { content: e75a}\n" +
-            ".icon-shielding_fill:before { content: e75b}\n" +
-            ".icon-shielding:before { content: e75c}\n" +
-            ".icon-smallscreen_fill:before { content: e75d}\n" +
-            ".icon-smallscreen:before { content: e75e}\n" +
-            ".icon-stealth_fill:before { content: e75f}\n" +
-            ".icon-stealth:before { content: e760}\n" +
-            ".icon-success_fill:before { content: e761}\n" +
-            ".icon-success:before { content: e762}\n" +
-            ".icon-suspend:before { content: e763}\n" +
-            ".icon-switch:before { content: e764}\n" +
-            ".icon-systemprompt_fill:before { content: e765}\n" +
-            ".icon-systemprompt:before { content: e766}\n" +
-            ".icon-tailor:before { content: e767}\n" +
-            ".icon-task:before { content: e768}\n" +
-            ".icon-task_fill:before { content: e769}\n" +
-            ".icon-tasklist_fill:before { content: e76a}\n" +
-            ".icon-tasklist:before { content: e76b}\n" +
-            ".icon-text:before { content: e76c}\n" +
-            ".icon-time_fill:before { content: e76d}\n" +
-            ".icon-time:before { content: e76e}\n" +
-            ".icon-translation_fill:before { content: e76f}\n" +
-            ".icon-translation:before { content: e770}\n" +
-            ".icon-trash:before { content: e771}\n" +
-            ".icon-trash_fill:before { content: e772}\n" +
-            ".icon-undo:before { content: e773}\n" +
-            ".icon-unlock_fill:before { content: e774}\n" +
-            ".icon-unlock:before { content: e775}\n" +
-            ".icon-video:before { content: e776}\n" +
-            ".icon-video_fill:before { content: e777}\n" +
-            ".icon-warning_fill:before { content: e778}\n" +
-            ".icon-warning:before { content: e779}\n" +
-            ".icon-workbench_fill:before { content: e77a}\n" +
-            ".icon-workbench:before { content: e77b}\n" +
-            ".icon-search:before { content: e77c}\n" +
-            ".icon-searchfill:before { content: e77d}\n" +
-            ".icon-qianniu:before { content: e77e}\n" +
-            ".icon-publishgoods_fill:before { content: e77f}\n" +
-            ".icon-shop_fill:before { content: e780}\n" +
-            ".icon-transaction_fill:before { content: e781}\n" +
-            ".icon-packup:before { content: e782}\n" +
-            ".icon-unfold:before { content: e783}\n" +
-            ".icon-wangwang:before { content: e784}\n" +
-            ".icon-financial_fill:before { content: e785}\n" +
-            ".icon-marketing_fill:before { content: e786}\n" +
-            ".icon-shake:before { content: e787}\n" +
-            ".icon-decoration_fill:before { content: e788}\n" +
-            ".icon-budaidise:before { content: e789}\n" +
-            ".icon-qianniudaidise:before { content: e78a}\n" +
-            ".icon-questions:before { content: e78b}\n" +
-            ".icon-supply:before { content: e78c}\n" +
-            ".icon-tools:before { content: e78d}\n" +
-            ".icon-int:before { content: e78e}\n" +
-            ".icon-commodity:before { content: e78f}\n" +
-            ".icon-zhtn:before { content: e790}";
-
-    public static void main(String[] args) throws Exception {
-        String[] array = font.split(".icon-");
-        StringBuilder sb = new StringBuilder();
-        for(int i=0;i<array.length;i++) {
-            sb.append(",\"mrxu-icon icon-"+array[i].substring(0,array[i].indexOf(":before"))+"\"");
-        }
-        System.out.println(sb.toString());
-    }
-
-}

+ 0 - 51
src/main/resources/db/update.sql

@@ -1,64 +0,0 @@
-ALTER TABLE `mrxu_all_v2`.`duty_record`
-    ADD COLUMN `item_id` int(0) NULL COMMENT '预约项id' AFTER `end_time`,
-ADD COLUMN `item_name` varchar(64) NULL COMMENT '预约项名称' AFTER `item_id`,
-ADD COLUMN `images` varchar(4096) NULL COMMENT '预约图片' AFTER `item_name`;
-
-ALTER TABLE `mrxu_all_v2`.`member_address`
-    MODIFY COLUMN `latitude` double(16, 6) NULL DEFAULT NULL COMMENT '纬度' AFTER `station`,
-    MODIFY COLUMN `longitude` double(16, 6) NULL DEFAULT NULL COMMENT '纬度' AFTER `latitude`;
-
-ALTER TABLE `mrxu_all_v2`.`item_order`
-    ADD COLUMN `delivery_latitude` double(16, 6) NULL COMMENT '收件人经度' AFTER `delivery_address`,
-    ADD COLUMN `delivery_longitude` double(16, 6) NULL COMMENT '收件人纬度' AFTER `delivery_latitude`;
-
-ALTER TABLE `mrxu_all_v2`.`duty_project`
-    ADD COLUMN `score` int(0) NULL DEFAULT 0 COMMENT '总评分' AFTER `qualification_file`,
-ADD COLUMN `discuss_count` int(0) NULL DEFAULT 0 COMMENT '评论个数' AFTER `score`,
-ADD COLUMN `sales_count` int(0) NULL COMMENT '销售个数' AFTER `discuss_count`;
-
-
-ALTER TABLE `mrxu_all_v2`.`duty_record`
-    ADD COLUMN `delivery_address` varchar(512) NULL COMMENT '收件人地址' AFTER `head_image`,
-ADD COLUMN `delivery_latitude` double(16, 6) NULL COMMENT '收件人经度' AFTER `delivery_address`,
-ADD COLUMN `delivery_longitude` double(16, 6) NULL COMMENT '收件人纬度' AFTER `delivery_latitude`;
-
-ALTER TABLE `mrxu_all_v2`.`duty_project`
-    MODIFY COLUMN `sales_count` int(0) NULL DEFAULT 0 COMMENT '销售个数' AFTER `discuss_count`;
-
-ALTER TABLE `mrxu_all_v2`.`item_order`
-    ADD COLUMN `source` varchar(16) NULL COMMENT '订单来源' AFTER `review_time`;
-ALTER TABLE `mrxu_all_v2`.`wx_order`
-    ADD COLUMN `pay_way` int(8) NULL COMMENT '支付方式公众号或小程序' AFTER `effect_time`;
-
-ALTER TABLE `mrxu_all_v2`.`duty_project`
-    ADD COLUMN `visible` int(1) NOT NULL DEFAULT 1 COMMENT '列表可见' AFTER `sales_count`;
-
-ALTER TABLE `mrxu_all_v2`.`goods`
-    ADD COLUMN `sales_count` varchar(12) NULL DEFAULT 0 COMMENT '销量' AFTER `description`,
-ADD COLUMN `sell_out` int(1) NOT NULL DEFAULT 0 COMMENT '售罄' AFTER `sales_count`,
-ADD COLUMN `tag` varchar(64) NULL COMMENT '标签' AFTER `sell_out`;
-
-ALTER TABLE `mrxu_all_v2`.`duty_project`
-    ADD COLUMN `xcx_qrcode` varchar(255) NULL COMMENT '小程序推广码' AFTER `name`;
-
-ALTER TABLE `mrxu_all_v2`.`duty_project_class`
-    ADD COLUMN `image` varchar(512) NULL COMMENT '图片' AFTER `caption`;
-
-ALTER TABLE `mrxu_all_v2`.`duty_project`
-    ADD COLUMN `home_service` int NOT NULL DEFAULT 1 COMMENT '支持到家服务' AFTER `visible`;
-
-ALTER TABLE `mrxu_all_v2`.`dic_data`
-    MODIFY COLUMN `value` varchar(16000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '字典项值' AFTER `name`;

binární
src/main/resources/file/处方药导入模版.xlsx


binární
src/main/resources/file/药品导入模版.xlsx


+ 0 - 14
src/main/resources/mail.setting

@@ -1,14 +0,0 @@
-# 配置相关文档:https://hutool.cn/docs/#/extra/%E9%82%AE%E4%BB%B6%E5%B7%A5%E5%85%B7-MailUtil?id=%e5%8f%91%e9%80%81%e9%82%ae%e4%bb%b6
-# 邮件服务器的SMTP地址,可选,默认为smtp.<发件人邮箱后缀>
-host = smtp.qq.com
-# 邮件服务器的SMTP端口,可选,默认25
-port = 465
-# 发件人(必须正确,否则发送失败)
-from = 215696643@qq.com
-# 用户名,默认为发件人邮箱前缀
-user = 215696643@qq.com
-# 密码(注意,某些邮箱需要为SMTP服务单独设置授权码,详情查看相关帮助)
-pass = cmpvokeijrvdcaai
-
-# 使用SSL安全连接
-sslEnable = true

+ 0 - 54
src/main/resources/shell/deploy.sh

@@ -1,54 +0,0 @@
-#!/bin/sh
-
-#参数一要打包的项目名称
-if [ $1 ]; then
-	project_name=$1
-else
-	echo "请指定项目名称"
-	exit 1
-fi
-
-#参数二打包环境
-if [ $2 ]; then
-	echo "当前打包环境为${2}"
-	env=$2
-else
-	echo "请指定打包环境 dev:开发环境,test:测试环境,prod:正式环境"
-	exit 1
-fi
-
-#mvn 成品名字
-if [ $3 ]; then
-	echo "成品名字为${3}"
-	jar_name=$3
-else
-	jar_name=""
-fi
-
-# 第一步先打包
-/data/shell/pack.sh $project_name $env
-
-# 如果打包失败则退出
-retval=$?
-if [ ${retval} -ne 0 ] ; then
-	exit 1
-fi
-
-# 获取需要部署的服务器ip
-for ip in `cat /data/shell/deployip.conf`
-{
-  echo "部署"$ip
-
-  #代码不存在 说明是微服务
-  if [ ! -d "/data/code/${project_name}/target/" ];then
-    scp /data/code/${project_name}/${jar_name}/target/${jar_name}.jar root@$ip:/data/app/${jar_name}.jar
-    #远程调用重启脚本
-    ssh $ip "sh /data/shell/restart.sh ${jar_name}"
-  else
-    scp /data/code/${project_name}/target/${project_name}.jar root@$ip:/data/app/${project_name}.jar
-    #远程调用重启脚本
-    ssh $ip "sh /data/shell/restart.sh ${project_name}"
-  fi
-}
-
-# readme 调用方式 ./deploy.sh mrxu-crm prod crm-service  或 ./pack.sh mrxu-front prod

+ 0 - 2
src/main/resources/shell/deployip.conf

@@ -1,2 +0,0 @@
-172.16.0.6
-172.16.0.13

+ 0 - 46
src/main/resources/shell/localdeploy.sh

@@ -1,46 +0,0 @@
-#!/bin/sh
-
-#参数一要打包的项目名称
-project_name=$1
-
-#参数二打包环境
-env=$2
-
-#mvn 成品名字
-if [ $3 ]; then
-	echo "成品名字为${3}"
-	jar_name=$3
-else
-	jar_name=$1
-fi
-
-# 第一步先打包
-/data/shell/pack.sh $project_name $env
-
-# 如果打包失败则退出
-retval=$?
-if [ ${retval} -ne 0 ] ; then
-	exit 1
-fi
-
-tomcat_id=$(ps -ef|grep "${jar_name}.jar"|grep -v "grep"|awk '{print $2}')
-#如果tomcat线程id存在说明tomcat已经启动,则需要杀死tomcat进程
-if [ $tomcat_id ]; then
-	echo "关闭服务 线程id:${tomcat_id}"
-	kill -9 ${tomcat_id}
-else
-	echo "服务 未启动"
-fi
-
-cd /data/app/
-#代码不存在 说明是微服务
-if [ ! -d "/data/code/${project_name}/target/" ];then
-  mv /data/code/${project_name}/${jar_name}/target/${jar_name}.jar /data/app/${jar_name}.jar
-  nohup java -Xms128m -Xmx512m -jar /data/app/${jar_name}.jar -Dspring.profiles.active=prod &
-else
-  mv /data/code/${project_name}/target/${project_name}.jar /data/app/${project_name}.jar
-  nohup java -Xms128m -Xmx512m -jar /data/app/${project_name}.jar -Dspring.profiles.active=prod &
-fi
-
-tail -200f nohup.out
-

+ 0 - 37
src/main/resources/shell/pack.sh

@@ -1,37 +0,0 @@
-#!/bin/sh
-
-#参数一要打包的项目名称
-if [ $1 ]; then
-	project_name=$1
-else
-	echo "请指定项目名称"
-	exit 1
-fi
-
-#参数二打包环境
-if [ $2 ]; then
-	echo "当前打包环境为${2}"
-	env=$2
-else
-	echo "请指定打包环境 dev:开发环境,test:测试环境,prod:正式环境"
-	exit 1
-fi
-
-#代码不存在 则clone
-if [ ! -d "/data/code/${project_name}/" ];then
-  cd /data/code/
-  git clone git@gitee.com:aixiaozao/${project_name}.git
-fi
-
-echo "更新${project_name}代码"
-cd /data/code/${project_name}/
-git pull
-mvn clean install -Dmaven.test.skip=true -Denvironment=$env -U
-retval=$?
-if [ ${retval} -ne 0 ] ; then
-	echo "/data/code/${project_name} 打包失败!"
-	exit 1
-
-else
-	echo "/data/code/${project_name} 打包成功!"
-fi

+ 0 - 21
src/main/resources/shell/restart.sh

@@ -1,21 +0,0 @@
-#!/bin/sh
-
-#参数一成品名字
-if [ $1 ]; then
-	jar_name=$1
-else
-	echo "请指定项目名称"
-	exit 1
-fi
-
-tomcat_id=$(ps -ef|grep "${jar_name}.jar"|grep -v "grep"|awk '{print $2}')
-#如果tomcat线程id存在说明tomcat已经启动,则需要杀死tomcat进程
-if [ $tomcat_id ]; then
-	echo "关闭服务 线程id:${tomcat_id}"
-	kill -9 ${tomcat_id}
-else
-	echo "服务 未启动"
-fi
-
-cd /data/app
-nohup java -Xms128m -Xmx512m -jar -Dspring.profiles.active=prod /data/app/${jar_name}.jar >/dev/null 2>&1 &