|
|
@@ -216,10 +216,9 @@ public class NewRoleServiceImpl extends BaseMybatisDao<RoleMapper> implements Ne
|
|
|
if (s==roleResources.XMRW.getCode()) {
|
|
|
// contractTaskLogMapper.updateDimissionTransfer(aid,transferId);
|
|
|
//获取被转角色判断修改对应任务角色
|
|
|
- String qx=adminMapper.getPermission(transferId);
|
|
|
Integer type=-1;
|
|
|
- if (qx.equals(AFTConstants.TECH)) type=0;
|
|
|
- else if(qx.equals(AFTConstants.TECH_MANAGER))type=1;
|
|
|
+ if (TokenManager.hasRole(AFTConstants.TECH)) type=0;
|
|
|
+ else if (TokenManager.hasRole(AFTConstants.TECH_MANAGER))type=1;
|
|
|
if (type!=-1) {
|
|
|
tOrderTaskMapper.updateDimissionTransfer(aid,transferId,type);
|
|
|
tTaskLogMapper.updateDimissionTransfer(aid,transferId);
|