| | |
| | | bu.real_name realName, |
| | | bu.sex,bu.cardid idCardNo, |
| | | bu.securitynumber securityNumber, |
| | | bu.avatar, |
| | | ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age |
| | | FROM |
| | | sys_accreditation_records sar |
| | |
| | | <if test="accreditationRecords.status!=null"> |
| | | and sar.status = #{accreditationRecords.status} |
| | | </if> |
| | | <if test="accreditationRecords.isAvatar==1"> |
| | | and bu.avatar is not null and bu.avatar!="" |
| | | </if> |
| | | <if test="accreditationRecords.isAvatar==2"> |
| | | and (bu.avatar is null or bu.avatar="") |
| | | </if> |
| | | <if test="accreditationRecords.startTime!=null and accreditationRecords.startTime!='' and accreditationRecords.startTime!='undefined'"> |
| | | and sar.create_time >= #{accreditationRecords.startTime} |
| | | </if> |
| | |
| | | bu.real_name realName, |
| | | bu.sex,bu.cardid idCardNo, |
| | | bu.securitynumber securityNumber, |
| | | bu.avatar, |
| | | ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age |
| | | FROM |
| | | sys_accreditation_records sar |
| | |
| | | <if test="accreditationRecords.status!=null"> |
| | | and sar.status = #{accreditationRecords.status} |
| | | </if> |
| | | <if test="accreditationRecords.isAvatar==1"> |
| | | and bu.avatar is not null and bu.avatar!="" |
| | | </if> |
| | | <if test="accreditationRecords.isAvatar==2"> |
| | | and (bu.avatar is null or bu.avatar="") |
| | | </if> |
| | | <if test="accreditationRecords.startTime!=null and accreditationRecords.startTime!='' and accreditationRecords.startTime!='undefined'"> |
| | | and sar.create_time >= #{accreditationRecords.startTime} |
| | | </if> |