Skip to content

WDTeam/yii2_erp

 
 

Repository files navigation

系统简介

  BOSS(Business & Operation Support System,BOSS)指的是业务运营支撑系统。

  BOSS分为四个部分:计费及结算系统、营业与账务系统、客户服务系统和决策支持系统。

  BOSS从业务层面来看就是一个框架,来承载业务系统、CRM系统、计费结算系统。实现统一框架中的纵向、横向管理。

  本系统整合了通用后台、小家政后台、企业保洁后台、运营CMS后台、订单后台、数据后台等系统,实现了业务的统一入口、统一操作体验、统一业务逻辑、统一业务管理...并对用户界面进行了优化,简化操作,提升工作效率;

  相关项目资料:
  1. 产品需求 : http://uha8ak.axshare.com/
  2. 系统设计 : http://uha8ak.axshare.com/
  3. 测试计划 : http://uha8ak.axshare.com/
  4. 运维手册 : http://uha8ak.axshare.com/<

BOSS系统代码框架结构说明:

  -- common (通用模块,自动生成数据库CRUD类,封装常用工具类)
  -- core (核心模块,继承并扩展common,不太容易变化的,并与公共相关的订单、阿姨、用户、财务相关的数据完整性逻辑)
  -- api (接口,调用并扩展core,也可以直接扩展common)
  -- boss (BOSS后台系统,继承并扩展自core,偏重于更多变化的业务层的业务逻辑放在BOSS中; core内部实现封装REST请求,不影响use调用)
  -- console (控制台框架模板)
  -- datasql (数据库脚本)
  -- environments (环境配置)
  -- frontend (前台框架模板)
  -- tests (测试框架)
  -- vendor (YII 2.0框架库)

  init (初始化脚本)
  init.bat (初始化启动命令)

  composer.json (COMPOSER资源文件)
  composer.lock (操作锁)
  composer.phar (PHP执行命令)
  requirements.php (环境检验)
  LICENSE.md (授权协议)
  README.md (本说明)

注意事项

  1. 在任何人参与项目之前,请记住,一定不能对environments 配置目录下得文件修改,

    不要修改enviroments目录

  2. 然后,自己本机上搭建数据库local_boss_db, username: local_boss_db_dbo; password: localboss ,然后执行 ./yii migrate就可以在本机上进行开发了。

部署说明:

	1、代码目录 /code/ejj-enterprise-boss
	2、部署规则
	   域名:端口 boss.me:80			root /code/ejj-enterprise-boss/boss/web
	   域名:端口 api.me:80				root /code/ejj-enterprise-boss/api/web
	3、添加rewrite
	   if (!-e $request_filename){
			rewrite "^(.*)$" /index.php?r=$1 last;
		}
	4、dev、test环境分别在域名前面添加dev.和test.
	5、Nginx部署模型仅供参考
		server {
	        listen       80;
	        server_name  boss.1jiajie.com;
			send_timeout 0;
	        location / {
	            root   /code/ejj-enterprise-boss/boss/web;
	            index  index.html index.htm index.php;
				autoindex on;
				if (!-e $request_filename){
					rewrite "^(.*)$" /index.php?r=$1 last;
				}
	        }

	        location ~ \.php$ {
				root	/code/ejj-enterprise-boss/boss/web;
				fastcgi_pass	127.0.0.1:9000;
				fastcgi_index	index.php;
				fastcgi_param	SCRIPT_FILENAME  $document_root/$fastcgi_script_name;
				fastcgi_buffers 4 128k;
				include			fastcgi_params;
			}
	    }
	    server {
	        listen       80;
	        server_name  api.1jiajie.com;
			send_timeout 0;
	        location / {
	            root   /code/ejj-enterprise-boss/api/web;
	            index  index.html index.htm index.php;
				autoindex on;
				if (!-e $request_filename){
					rewrite "^(.*)$" /index.php?r=$1 last;
				}
	        }

	        location ~ \.php$ {
				root	/code/ejj-enterprise-boss/api/web;
				fastcgi_pass	127.0.0.1:9000;
				fastcgi_index	index.php;
				fastcgi_param	SCRIPT_FILENAME  $document_root/$fastcgi_script_name;
				fastcgi_buffers 4 128k;
				include			fastcgi_params;
			}
	    }
	   6、Apache部署模型
		<VirtualHost *:80>
		    DocumentRoot "/code/ejj-enterprise-boss/boss/web"
		    ServerName boss.1jiajie.com
		    ServerAlias 
		  <Directory "/code/ejj-enterprise-boss/boss/web">
		      Options FollowSymLinks ExecCGI
		      AllowOverride All
		      Order allow,deny
		      Allow from all
		      Require all granted
		  </Directory>
		</VirtualHost>

		<VirtualHost *:80>
		    DocumentRoot "/code/ejj-enterprise-boss/api/web"
		    ServerName api.1jiajie.com
		    ServerAlias 
		  <Directory "/code/ejj-enterprise-boss/api/web">
		      Options FollowSymLinks ExecCGI
		      AllowOverride All
		      Order allow,deny
		      Allow from all
		      Require all granted
		  </Directory>
		</VirtualHost>

		在对应的根目录下面增加Rewrite解析的.htaccess
		代码
		RewriteEngine on

		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteRule . index.php


About

yii2 example with erp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.9%
  • Other 0.1%