| | |
| | | <if test="accreditationRecords.endTime!=null and accreditationRecords.endTime!='' and accreditationRecords.endTime!='undefined'"> |
| | | and sar.create_time <= #{accreditationRecords.endTime} |
| | | </if> |
| | | order by sar.id desc |
| | | </select> |
| | | |
| | | <!--自定义详情信息--> |
| | |
| | | <if test="accreditationRecords.endTime!=null and accreditationRecords.endTime!='' and accreditationRecords.endTime!='undefined'"> |
| | | and sar.create_time <= #{accreditationRecords.endTime} |
| | | </if> |
| | | order by sar.id desc |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="accreditationRecords.endTime!=null and accreditationRecords.endTime!='' and accreditationRecords.endTime!='undefined'"> |
| | | and sar.create_time <= #{accreditationRecords.endTime} |
| | | </if> |
| | | order by sar.id desc |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="accreditationRecords.endTime!=null and accreditationRecords.endTime!='' and accreditationRecords.endTime!='undefined'"> |
| | | and sar.create_time <= #{accreditationRecords.endTime} |
| | | </if> |
| | | order by sar.id desc |
| | | </select> |
| | | |
| | | <!--根据用户 id 查询上岗证申请记录--> |
| | | <select id="getAccreditationRecordsByUserIdCount" resultType="java.lang.Integer"> |
| | | select count(*) from sys_accreditation_records where user_id = #{userId} and type = 1 |
| | | </select> |
| | | |
| | | |
| | | <!--根据用户 id 查询当前人员是否有待审核和审核通过的记录数--> |
| | | <select id="getAccreditationRecordsByUserIdAuditCount" resultType="java.lang.Integer"> |
| | | select count(*) from sys_accreditation_records where (audit_status = 1 or audit_status = 2) and user_id = #{userId} and type = #{type} |
| | | </select> |
| | | </mapper> |