| | |
| | | sys_information si |
| | | on |
| | | si.departmentid = bu.dept_id |
| | | where is_deleted = 0 |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id =si.jurisdiction |
| | | where bu.is_deleted = 0 |
| | | and status = 1 |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and bu.real_name like concat(concat('%', #{user.realName}),'%') |
| | |
| | | and bu.hold = #{user.hold} |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != '' and user.jurisdiction != '1372091709474910209'"> |
| | | and si.jurisdiction = #{user.jurisdiction} |
| | | and sj.parent_id = #{user.jurisdiction} |
| | | </if> |
| | | <if test="user.securitynumber!=null and user.securitynumber != ''"> |
| | | and bu.securitynumber = #{user.securitynumber} |