|
|
@@ -68,16 +68,17 @@
|
|
|
|
|
|
</select>
|
|
|
<select id="findOrderCompanyList" resultType="com.ydtech.modules.esm.model.vo.res.EsmInsCompanyResVo">
|
|
|
- SELECT
|
|
|
- DISTINCT
|
|
|
- company_id as id,
|
|
|
- inscompany as name
|
|
|
+ SELECT DISTINCT
|
|
|
+ ins.company_id AS id,
|
|
|
+ ins.inscompany AS NAME
|
|
|
FROM
|
|
|
- ins_area_company
|
|
|
+ ins_area_company ins
|
|
|
+ LEFT JOIN esm_ins_company eic ON ins.company_id = eic.id
|
|
|
WHERE
|
|
|
- IFNULL( company_id, '' )!= ''
|
|
|
+ IFNULL( ins.company_id, '' )!= ''
|
|
|
+ AND IFNULL( eic.id, '' )!= ''
|
|
|
GROUP BY
|
|
|
- company_id,
|
|
|
- inscompany
|
|
|
+ ins.company_id,
|
|
|
+ ins.inscompany
|
|
|
</select>
|
|
|
</mapper>
|