| | |
| | | ELT(sar.audit_status,"待审核","审核通过","审核不通过") auditStatus, |
| | | sar.audit_time auditTime, |
| | | sar.audit_detail auditDetail, |
| | | if(bu.user_type=6,"是","否") userType |
| | | if(bu.user_type=6,"是","否") userType, |
| | | DATE_FORMAT(bu.paper_time,'%Y-%m-%d') as userPaperTime |
| | | FROM |
| | | sys_accreditation_records sar |
| | | left join |
| | |
| | | 1=1 |
| | | and bu.status = 1 |
| | | and bu.is_deleted = 0 |
| | | <if test="accreditationRecords.userPaperTime != null and accreditationRecords.userPaperTime !=''"> |
| | | AND DATE_FORMAT(bu.paper_time,'%Y-%m-%d') = #{accreditationRecords.userPaperTime} |
| | | </if> |
| | | <if test="accreditationRecords.deptName!=null and accreditationRecords.deptName!=''"> |
| | | and bt.dept_name like concat('%', #{accreditationRecords.deptName},'%') |
| | | </if> |