| | |
| | | <if test="user.hold!=null and user.hold != ''"> |
| | | and bu.hold = #{user.hold} |
| | | </if> |
| | | <if test="user.types!=null and user.types=='1'.toString()"> |
| | | and to_days(bu.audit_time) = to_days(now()) |
| | | </if> |
| | | <if test="user.types!=null and user.types=='2'.toString()"> |
| | | and DATE_FORMAT(bu.audit_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction!='' and user.jurisdiction!='1372091709474910209'"> |
| | | and (j.id = #{user.jurisdiction} or j.parent_id = #{user.jurisdiction}) |
| | | </if> |
| | |
| | | br.role_alias = "安保人员" |
| | | and |
| | | bu.status = 1 |
| | | and bd.parent_id!=1425365577303621633 |
| | | and bd.id != 1425365577303621633 |
| | | and bd.id != 1432625856013971457 |
| | | <if test="user.deptId!=null and user.deptId!=''"> |
| | | and bd.id in |
| | | ( |