【fix sonar】SysBaseApiImpl文件

This commit is contained in:
梁琦涛
2023-03-06 11:36:34 +08:00
parent e14fe992bc
commit 0fca77741a
@@ -742,7 +742,7 @@ public class SysBaseApiImpl implements ISysBaseAPI {
for(SysUserDepart userDepart : userDepartList){ for(SysUserDepart userDepart : userDepartList){
//查询所属公司编码 //查询所属公司编码
SysDepart depart = sysDepartService.getById(userDepart.getDepId()); SysDepart depart = sysDepartService.getById(userDepart.getDepId());
int length = YouBianCodeUtil.zhanweiLength; int length = YouBianCodeUtil.ZHANWEI_LENGTH;
String compyOrgCode = ""; String compyOrgCode = "";
if(depart != null && depart.getOrgCode() != null){ if(depart != null && depart.getOrgCode() != null){
compyOrgCode = depart.getOrgCode().substring(0,length); compyOrgCode = depart.getOrgCode().substring(0,length);