| | |
| | | |
| | | <select id="selectCompanyCertificateList" resultType="com.gkhy.exam.system.domain.CompanyCertificate"> |
| | | SELECT |
| | | `id`, |
| | | `company_id`, |
| | | `company_name`, |
| | | `certificate_name`, |
| | | `certificate_num`, |
| | | `effective_time`, |
| | | `file_name`, |
| | | `file_path`, |
| | | `del_flag`, |
| | | `create_by`, |
| | | `create_time`, |
| | | `update_by`, |
| | | `update_time` |
| | | cc.`id`, |
| | | cc.`company_id`, |
| | | sc.`name` as company_name, |
| | | cc.`certificate_name`, |
| | | cc.`certificate_num`, |
| | | cc.`effective_time`, |
| | | cc.`file_name`, |
| | | cc.`file_path`, |
| | | cc.`del_flag`, |
| | | cc.`create_by`, |
| | | cc.`create_time`, |
| | | cc.`update_by`, |
| | | cc.`update_time` |
| | | FROM |
| | | company_certificate |
| | | company_certificate cc |
| | | left join sys_company sc on cc.company_id = sc.id |
| | | WHERE |
| | | del_flag = 1 |
| | | cc.del_flag = 1 |
| | | <if test="companyId!=null and companyId!=''"> |
| | | and company_id = #{companyId} |
| | | and cc.company_id = #{companyId} |
| | | </if> |
| | | ORDER BY |
| | | create_time DESC |
| | | cc.create_time DESC |
| | | </select> |
| | | </mapper> |