| | |
| | | select a.*,b.batch_name from th_cert a |
| | | left join th_batch b on a.batch_uuid=b.uuid |
| | | <where> |
| | | and a.del_flag=0 |
| | | and a.del_flag=0 and b.del_flag =0 |
| | | <if test="institutionName!=null and institutionName!=''"> |
| | | and a.institution_name =#{institutionName} |
| | | </if> |
| | | <if test="startTime!=null and startTime!=''"> |
| | | and a.cert_ime >= #{startTime} |
| | | and a.cert_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and a.cert_ime <= #{endTime} |
| | | and a.cert_time <= #{endTime} |
| | | </if> |
| | | <if test="trainOrgName!=null and trainOrgName!=''"> |
| | | and a.train_org_name =#{trainOrgName} |
| | | </if> |
| | | <if test="idcard!=null and idcard!=''"> |
| | | and a.idcard like concat('%',#{idcard},'%') |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |
| | | </select> |