<#-- 班次设定的项目选择--> <#-- 可以选择的项目应限制为当前登录的项目经理、项目助理、内勤的“所属单位”及“兼职单位”的项目 --> <#-- 部门信息表 --> <#-- 用户与组织机构关系表 --> SELECT * FROM t_s_user_org uo WHERE 1=1 <#if ( userOrgDto.userId )?? && userOrgDto.userId ?length gt 0> and uo.user_id = :userOrgDto.userId <#else> and uo.user_id = null <#--uo.user_id = '4028e4f55fa542f3015fa893ce3a0719'--> AND uo. status = '0'