fix npe
This commit is contained in:
parent
f070be4ed8
commit
22133a83da
|
@ -45,6 +45,7 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
|
||||||
JsonElement jsonElement = gson.toJsonTree(kv);
|
JsonElement jsonElement = gson.toJsonTree(kv);
|
||||||
TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class);
|
TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class);
|
||||||
logger.info(abilityApplicationDTO.toString());
|
logger.info(abilityApplicationDTO.toString());
|
||||||
|
logger.info("表单内单位名称:" + abilityApplicationDTO.getUnit());
|
||||||
SysDeptDTO deptDTO = sysDeptService.getByName(abilityApplicationDTO.getUnit());
|
SysDeptDTO deptDTO = sysDeptService.getByName(abilityApplicationDTO.getUnit());
|
||||||
logger.info("deptDTOId:" + deptDTO.getId());
|
logger.info("deptDTOId:" + deptDTO.getId());
|
||||||
SysRoleDTO roleDTO = sysRoleService.getByName(roleName);
|
SysRoleDTO roleDTO = sysRoleService.getByName(roleName);
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
<select id="getByName" resultType="io.renren.modules.sys.entity.SysDeptEntity">
|
<select id="getByName" resultType="io.renren.modules.sys.entity.SysDeptEntity">
|
||||||
select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1
|
select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1
|
||||||
where t1.name = #{name}
|
where t1.name = #{name} LIMIT 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
|
@ -59,6 +59,7 @@
|
||||||
t2.id = t1.user_id
|
t2.id = t1.user_id
|
||||||
AND t1.role_id = #{roleId}
|
AND t1.role_id = #{roleId}
|
||||||
AND t2.dept_id = #{deptId}
|
AND t2.dept_id = #{deptId}
|
||||||
|
LIMIT 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue