Jeecg_Jflow整合记录
系统组织机构 t_s_depar
select * from t_s_depart
select * from t_s_depart where id='402888fd6a8c24e9016a8c531ec50003'
系统用户基础表 t_s_base_user
select * from t_s_base_user
用户表 t_s_user
select * from t_s_user
select * from t_s_base_user where ID='402888fd6a8c24e9016a8c54dad30005'
select * from t_s_user where ID='402888fd6a8c24e9016a8c54dad30005'
用户组织机构关系表 t_s_user_org
select * from t_s_user_org
select * from t_s_user_org WHERE user_id='402888fd6a8c24e9016a8c54dad30005' and org_id='402888fd6a8c24e9016a8c531ec50003'
系统角色表 t_s_role
select * from t_s_role
select * from t_s_role where id='8a8ab0b246dc81120146dc8181870050'
系统角色用户关系表 t_s_role_use
select * from t_s_role_user
select * from t_s_role_user WHERE userid='402888fd6a8c24e9016a8c54dad30005' and roleid='8a8ab0b246dc81120146dc8181870050'
无数据
系统角色组织机构关系表
t_s_role_org
http://localhost:8093/jeecg/index.htm
http://localhost:8093/jeecg
ID departname description parentdepartid org_code org_type mobile fax address depart_order departname_en departname_abbr memo create_name create_by create_date update_name update_by update_date sys_company_code sys_org_code
8a8ab0b246dc81120146dc8180a20016 中国人寿总公司 1111 A02 1
8a8ab0b246dc81120146dc8180ba0017 JEECG开源社区 A03 1 2
402880f15986303c0159864816180002 部门经理
删除t_s_depar部门报错
Cannot delete or update a parent row: a foreign key constraint fails (`jeecg`.`t_s_base_user`, CONSTRAINT `FK_15jh1g4iem1857546ggor42et` FOREIGN KEY (`departid`) REFERENCES `t_s_depart` (`ID`))
8a8ab0b246dc81120146dc8180ba0017
删除t_s_base_user报错
Cannot delete or update a parent row: a foreign key constraint fails (`jeecg`.`t_s_user`, CONSTRAINT `FK_2cuji5h6yorrxgsr8ojndlmal` FOREIGN KEY (`id`) REFERENCES `t_s_base_user` (`ID`))
8a8c82a35de421ab015de4228d40003
删除t_s_user报错
Cannot delete or update a parent row: a foreign key constraint fails (`jeecg`.`t_s_role_user`, CONSTRAINT `FK_d4qb5xld2pfb0bkjx9iwtolda` FOREIGN KEY (`userid`) REFERENCES `t_s_user` (`id`))
8a8c82a35de421ab015de4228d400003
删除t_s_role_user报错
t_s_role
ALTER TABLE PORT_EMP RENAME TO TEST_PORT_EMP
ALTER TABLE PORT_DEPT RENAME TO TEST_PORT_DEPT
ALTER TABLE PORT_STATIONTYPE RENAME TO TEST_PORT_STATIONTYPE
ALTER TABLE PORT_STATION RENAME TO TEST_PORT_STATION
ALTER TABLE PORT_DEPTEMP RENAME TO TEST_DEPTEMP
ALTER TABLE PORT_DEPTSTATION RENAME TO TEST_PORT_DEPTSTATION
ALTER TABLE PORT_DEPTEMPSTATION RENAME TO TEST_DEPTEMPSTATION
1、Ctrl+H:可以搜索文件,Java类名、方法名、包名等等。
2、Ctrl+Shift+R:查找文件。会显示所有文件名,包括java,jsp,xml等等。
3、Ctrl+O:在一个类中,显示该类的所有变量和方法,输入前几个字符可以自动筛选,选中后快速定位。
4、Ctrl+F:在一个文件中查找字符。勾选Case sensitive代表区分大小写;勾选Regular expression代表可以使用通配符;Fine name patterns的Choose按钮代表寻找的文件类型范围;Scope的Choose按钮代表查询所在项目范围。
5、Ctrl+Shift+G:在workspace中搜索引用,查找和此文件同名的java文件。
6、Ctrl+Shift+T:搜索类。
---------------------
getDataGridReturn
F:\jeecg-bpm-3.8\jeecgIdea\src\main\java\org\jeecgframework\core\common\service\impl\CommonServiceImpl.java
F:\jeecg-bpm-3.8\jeecgIdea\src\main\java\org\jeecgframework\core\common\dao\impl\GenericBaseCommonDao.java
http://www.cnblogs.com/s0611163/p/3963142.html
http://ccbpm.mydoc.io/
--1、部门集成sql语句
/**
select * from PORT_DEPT
select * from TEST_PORT_DEPT
SELECT * FROM t_s_depart
select ISNULL(parentdepartid) FROM t_s_depart
**/
/**
No Nvarchar(50) 部门编号
Name Nvarchar(200) 名称
ParentNo Nvarchar(100) 父节点(根节点编号,默认为0)
NameOfPath Nvarchar(300) 空(一人多部门情况,为所属路径,如:集团总部/销售部 格式)
TreeNo Nvarchar(100) 树节点编号 空
Leader, Nvarchar(100) 部门领导空或FK_Emp的字段
Tel Nvarchar(100) 联系方式 空
Idx Int 顺序号 空
IsDir Int 目录空
OrgNo Nvarchar(50) 单位集团编号0
**/
/**
CREATE VIEW [DBO].[PORT_DEPT]
AS
SELECT NO,NAME, PARENTNO,'' NAMEOFPATH, '' TREENO,'' LEADER,'' TEL,0 IDX,0 ISDIR ,0 ORGNO
FROM TEST_PORT_DEPT
**/
CREATE VIEW PORT_DEPT
AS
SELECT ID AS No, departname AS Name, ifnull(parentdepartid,0) AS ParentNo,
'' AS NameOfPath, 0 AS Idx, '' AS orgno
FROM t_s_depart order by ParentNo DESC
--下面的废弃
CREATE VIEW PORT_DEPT
AS
SELECT ID AS No, departname AS Name, ISNULL(parentdepartid) AS ParentNo,
'' AS NameOfPath, 0 AS Idx, '' AS orgno
FROM t_s_depart order by ParentNo DESC
2、角色类别
t_s_role_type
cgAutoListController.do?list&id=t_s_role_type
/**
SELECT * from PORT_STATIONTYPE
select * from TEST_PORT_STATIONTYPE
select * from t_s_role_type
SELECT ID AS NO,NAME,0 as idx,'' ORGNO,NO AS typecode FROM t_s_role_type
**/
/**
No Nvarchar(2) 岗位类型编号
Name Nvarchar(50) 类型名称(例:高层、中层等)
OrgNo Nvarchar(60) 单位集团编号,默认0
**/
/**
CREATE VIEW [DBO].[PORT_STATIONTYPE]
AS
SELECT NO,NAME,'' ORGNO FROM TEST_PORT_STATIONTYPE
**/
CREATE VIEW PORT_STATIONTYPE
AS
SELECT ID AS NO,NAME,0 as idx,'' ORGNO,NO AS typecode FROM t_s_role_type
3、角色
https://www.colabug.com/2218698.html
https://blog.csdn.net/zhangdaiscott/article/details/72639785
roleController.do?role
system/role/roleList
roleController.do?addorupdate
fkStationtypecode
fkStationtypename
common.role.roletype
/**
select * from t_s_role
select * from PORT_STATION
**/
/**
No Nvarchar(4) 岗位编号
Name Nvarchar(100) 名称
FK_StationType Nvarchar(100) 岗位类型
DutyReq Nvarchar(max) 职位,默认为0
Makings Nvarchar(max) 素质要求,为空
OrgNo Nvarchar(100) 单位集团编号,为0
**/
/**
CREATE VIEW [DBO].[PORT_STATION]
AS
SELECT NO,NAME, FK_STATIONTYPE,'' DUTYREQ,''MAKINGS,0 ORGNO
FROM TEST_PORT_STATION
**/
CREATE VIEW PORT_STATION
AS
select id as no,rolename as name,fkStationtypecode as FK_STATIONTYPE,'' DUTYREQ,''MAKINGS,0 ORGNO
from t_s_role
4、人员
/**
No Nvarchar(20) 登录编号(必须为字符串数据类型!)
Name Nvarchar(200) 姓名
Pass Nvarchar(100) 密码
FK_Dept Nvarchar(100) 所在部门 (一人多部门,则为主部门编号)
SID Nvarchar(36) 登录随机码
**/
/**
CREATE VIEW [DBO].[PORT_EMP]
AS
SELECT NO,NAME,PASS,FK_DEPT,'' SID FROM TEST_PORT_EMP
**/
/**
select * from t_s_base_user
select * from t_s_user
select * from t_s_user_org
SELECT NO,NAME,PASS,FK_DEPT,'' SID FROM TEST_PORT_EMP
select * FROM TEST_PORT_EMP
**/
CREATE VIEW PORT_EMP
AS
select bu.username as no,bu.realname as name,bu.PASSWORD as PASS,uo.org_id as FK_DEPT,'' SID,
'' as Tel,'' as Email, '' as PinYin,
0 as signtype,0 as idx
from t_s_base_user bu inner join t_s_user_org uo on bu.id=uo.user_id where bu.delete_flag='0'
5、部门人员
/**
Mypk Nvarchar(100) 唯一主键,使用GUID动态生成即可
FK_Dept Nvarchar(50) 部门主键
FK_Emp Nvarchar(50) 人员主键
FK_Duty Nvarchar(50) 职位,默认为0
DutyLevel int 职位级别,默认为0
Leader Nvarchar(50) 领导,默认为空
**/
/**
CREATE VIEW [DBO].[PORT_DEPTEMP]
AS
SELECT MYPK,FK_DEPT,FK_EMP,'' FK_DUTY,'' DUTYLEVEL,'' LEADER FROM TEST_PORT_DEPTEMP
**/
/**
drop table PORT_DEPTEMP
select * from PORT_DEPTEMP
SELECT MYPK,FK_DEPT,FK_EMP,'' FK_DUTY,'' DUTYLEVEL,'' LEADER FROM test_deptemp
select * from t_s_user_org
select * from t_s_user
select * from t_s_base_user
**/
CREATE VIEW PORT_DEPTEMP
AS
SELECT uo.id as MYPK,uo.org_id as FK_DEPT,bu.id as FK_EMP,bu.realname,'' FK_DUTY,'' DUTYLEVEL,'' LEADER
FROM t_s_base_user bu inner join t_s_user_org uo on uo.user_id=bu.id where bu.delete_flag='0'
6、部门角色
/**
FK_Dept Nvarchar(15) 部门编号
FK_Station Nvarchar(100) 岗位编号
**/
/**
CREATE VIEW [DBO].[PORT_DEPTSTATION]
AS
SELECT FK_DEPT,FK_STATION FROM TEST_PORT_DEPTSTATION
**/
/**
drop table port_deptstation
select * from t_s_role_org
select * from port_deptstation
SELECT FK_DEPT,FK_STATION FROM TEST_PORT_DEPTSTATION
**/
CREATE VIEW PORT_DEPTSTATION
AS
select id,org_id as FK_DEPT,role_id as FK_STATION from t_s_role_org
7、部门人员岗位
/**
MYPK Nvarchar(100) 唯一主键,无实际意义 多字段组合
FK_Dept Nvarchar(50) 部门编号
FK_Station Nvarchar(50) 岗位编号
FK_Emp Nvarchar(50) 人员编号
**/
/**
CREATE VIEW [DBO].[PORT_DEPTEMPSTATION]
AS
SELECT MYPK,FK_DEPT,FK_STATION,FK_EMP FROM TEST_PORT_DEPTEMPSTATION
**/
/**
drop table PORT_DEPTEMPSTATION
SELECT MYPK,FK_DEPT,FK_STATION,FK_EMP FROM PORT_DEPTEMPSTATION
select * from t_s_user_org
select * from t_s_role_user
select * from t_s_base_user
**/
/**
先暂时这样做,以后再完善
**/
CREATE VIEW PORT_DEPTEMPSTATION
AS
SELECT ru.id as MYPK,uo.org_id FK_DEPT,ru.roleid as FK_STATION,ru.userid as FK_EMP
FROM t_s_role_user ru left join t_s_user_org uo on ru.userid=uo.user_id
http://localhost:8093/jeecg/index.htm
http://localhost:8093/jeecg/WF/Admin/CCBPMDesigner/Login.htm
http://localhost:8093/jeecg
jeecg加密研究
http://localhost:8093/jeecg/userController.do?user#
http://localhost:8093/jeecg/loginController.do?login
org/jeecgframework/core/common/dao/impl/CommonDao.java
String password = PasswordUtil.encrypt(user.getUserName(), user.getPassword(), PasswordUtil.getStaticSalt());
getNo
Jflow密码验证修改
BP/Port/Emp.java
public final boolean CheckPass(String pass) throws Exception
{
if (SystemConfig.getOSDBSrc() == OSDBSrc.WebServices)
{
//如果是使用webservices校验.
PortalInterface v = DataType.GetPortalInterfaceSoapClientInstance();
//int i = v.CheckUserNoPassWord(this.getNo(), pass);
//if (i == 1)
return true;
//return false;
}
else
{
//启用加密
if (SystemConfig.getIsEnablePasswordEncryption() == true)
pass = Cryptos.aesDecrypt(pass);
String xxx1=this.getNo();
String xxxx2=this.getPass();
String xxxx3=this.getName();
String password = PasswordUtil.encrypt(this.getNo(), pass, PasswordUtil.getStaticSalt());
/*使用数据库校验.*/
if (this.getPass().equals( password)==true)
return true;
}
return false;
}
password
c44b01947c9e6e3f
添加菜单
待办
/WF/Todolist.htm
在途
/WF/Runing.htm
办公模板-证照资质文件领用审批表
tab页的设置
ajaxrpc_net.zip
AJAXRPC
JS RPC调用服务端BO里的函数完成
用户可配置和部署的工作流
cn.jflow.common.context.ServletRequestAttributes cannot be cast to org.springframework.web.context.request.ServletRequestAttributes
http://www.cnblogs.com/shuilangyizu/p/8621669.html
RequestContextHolder
PropertyPlaceholderConfigurer
/jeecg/src/main/java/BP/Tools/ContextHolderUtils.java
/jeecg/src/main/java/BP/Tools/GvtvPropertyPlaceholderConfigurer.java
System.out.println(request.getContextPath());正常打印出路径,
ContentNegotiatingViewResolver.resolveViewName
jeecg_v3.7表结构说明
NameOfPath varchar(300)
wf_empworks