Commit b66d539b authored by tangwei's avatar tangwei

修改机器人账号

parent 6933cad7
......@@ -935,7 +935,8 @@ LEFT JOIN (
<select id="queryByUserId" resultType="com.yeejoin.amos.boot.module.common.api.entity.OrgUsr">
SELECT *
FROM cb_org_usr
WHERE is_delete = 0
WHERE (is_delete = 0
or org_expand_attr8=1)
<if test="userId != null">
AND amos_org_id = #{userId}
</if>
......
......@@ -2251,9 +2251,10 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
private List<OrgUsr> getUsrList(String userId) {
// 获取登陆人角色
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(OrgUsr::getIsDelete, false);
wrapper.eq(OrgUsr::getAmosOrgId, userId);
wrapper.eq(OrgUsr::getBizOrgType, OrgPersonEnum.人员.getKey());
wrapper.eq(OrgUsr::getBizOrgType, OrgPersonEnum.人员.getKey()).and(rapper->
rapper.eq(OrgUsr::getIsDelete, false).or().eq(OrgUsr::getOrgExpandAttr8, "1")
);
List<OrgUsr> orgUsrList = this.baseMapper.selectList(wrapper);
return orgUsrList;
}
......
......@@ -54,7 +54,7 @@ public class AmosJcsApplication {
String port = env.getProperty("server.port");
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
GlobalExceptionHandler.setAlwaysOk(true);
String logs=String.format("%n----------------------------------------------------------%n Application Amos-Biz-Boot is running! Access URLs:%n Swagger文档: http:// %s : %s %s /doc.html%n----------------------------------------------------------",ip,port,path);
String logs=String.format("%n----------------------------------------------------------%n Application Amos-Biz-Boot is running! Access URLs:%n Swagger文档: http://%s:%s%s/doc.html%n----------------------------------------------------------",ip,port,path);
logger.info( logs);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment