UserOrgMinidao_getUserOrgDtoByUserId.sql 521 B

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