系统组织机构 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

Jeecg_Jflow整合记录的更多相关文章

  1. android openmax hardware decoder 整合记录

    欢迎访问我的blog:http://blog.thinkinside.me 关于android中openmax中hardware decoder的调用中,整合过程比较简单.主要是对OMXCodec的封 ...

  2. 使用Lucene.net提升网站搜索速度整合记录

    1.随着网站数据量达到500万条的时候,发现SQL数据库如果使用LIKE语句来查询,总是占用CPU很忙,不管怎么优化,速度还是上不来; 2.经过网上收集资料,HUBBLE.net目前虽然做得不错,但需 ...

  3. Spring+SpringMvc+Hibernate整合记录

    Spring+SpringMvc+Hibernate+Maven整合各大配置文件记录 1.Idea新建的Maven架构 2.Maven的对象模型的内容 <project xmlns=" ...

  4. cas sso 整合记录

    首先说明下,我使用的cas-server版本是4.2.1 整合过程中遇到的问题及解决方式如下 1.因为使用https的话证书是个麻烦事,所以启用http 修改cas-server-webapp下的ca ...

  5. presto,dremio,spark-sql与ranger的整合记录

    dremio,spark-sql,presto和ranger的整合 当前,ranger没有现成的插件来管理dremio,spark-sql,presto. 暂时使用的方法是新建一个用户,如presto ...

  6. springboot +Thymeleaf+UEditor整合记录

    1,ueditor官网下载:https://ueditor.baidu.com/website/download.html  下载相应的工具包和源码,ps:源码放到工程中 2,解压放到放到项目中,sp ...

  7. SSH与Webservice整合记录

    一.首先搭好SSH框架: 1. Struts:MyEclipse菜单栏MyEclipse——>Project Capabilities——>Add Struts Capabilities, ...

  8. RTX系统整合记录

    1.切换数据库RTX常见问题解答五. SQL数据库配置 2.同步系统组织机构 部门同步 用户同步https://blog.csdn.net/qq_21703215/article/details/80 ...

  9. Dedecmsv5.7整合ueditor 图片上传添加水印

    最近的项目是做dedecmsv5.7的二次开发,被要求上传的图片要加水印,百度ueditor编辑器不支持自动加水印,所以,找了很多资料整合记录一下,具体效果图 这里不仔细写dedecmsv5.7 整合 ...

随机推荐

  1. 使用 jQuery 实现 radio 的选中与反选

    使用 jQuery 实现 radio 的选中与反选 我们知道在 Html 中当我们选中一个radio后,再次点击该 radio,那么该 radio 依然是一个选中的状态,但是有时我们需要实现这样的逻辑 ...

  2. getAttribute 与getParmeter 区别

    1.getAttribute是取得jsp中 用setAttribute設定的attribute 2.parameter得到的是string:attribute得到的是object 3.request. ...

  3. PHP将mysql数据表转换为excel文件

    测试代码: <?php $DB_Server = "127.0.0.1"; $DB_Username = "root"; $DB_Password = & ...

  4. JS 获取json key和value

    var json= { "Type": "Coding", "Height":100 }; for (var key in json) { ...

  5. PAT_A1077#Kuchiguse

    Source: PAT A1077 Kuchiguse (20 分) Description: The Japanese language is notorious for its sentence ...

  6. golang 国内环境配置

    写在 .bashrc 或 .zshrc 等文件中: # golang env export GO111MODULE=on export GOPROXY=https://goproxy.cn #七牛云提 ...

  7. HTML设置span宽度

    CSS中的 width 属性并不总是有效的如果对象是 inline 对象,width 属性就会被忽略,Firefox 和 IE 是遵循CSS标准,因而直接设置span宽度会无效. 解决:span { ...

  8. 【Python—待解惑的问题】

    疑问1: map()函数第一个参数接收函数,所以 dict.keys() 是函数?这个不是方法吗? map(dict.keys,s) s1.keys() == dict.keys(s1) 输入: Tr ...

  9. centOS发布.Net Core 2.0 API

    1.dotnet  xxx.dll & & 放在启动参数后面表示设置此进程为后台进程.(目前测试无效) 2.ps -ef | grep xxx ps:将某个进程显示出来 -A 显示所有 ...

  10. BUUCTF Youngter-drive

    exe逆向,首先查壳,发现有upx壳,upx -d脱壳,拖进ida找到主函数这里可以看到创建了两个线程,先沿着StartAddress,一直找到sub_411940,这里有一个问题,当使用f5是,会显 ...