| | |
| | | sj.id = si.jurisdiction |
| | | WHERE |
| | | 1=1 |
| | | and bu.status = 1 |
| | | and bu.is_deleted = 0 |
| | | <if test="accreditationRecords.deptName!=null and accreditationRecords.deptName!=''"> |
| | | and bt.dept_name like concat('%', #{accreditationRecords.deptName},'%') |
| | | </if> |
| | |
| | | |
| | | <!--根据用户 id 查询当前人员是否有待审核和审核通过的记录数--> |
| | | <select id="getAccreditationRecordsByUserIdAuditCount" resultType="java.lang.Integer"> |
| | | select count(*) from sys_accreditation_records where (audit_status = 1 or audit_status = 3) and user_id = #{userId} and type = 2 |
| | | select count(*) from sys_accreditation_records where (audit_status = 1 or audit_status = 2) and user_id = #{userId} and type = #{type} |
| | | </select> |
| | | </mapper> |