|
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<select id="selectAllWithType" parameterType="Enterprise">
|
|
<select id="selectAllWithType" parameterType="Enterprise">
|
|
- SELECT a.id, a.enterprise_name enterpriseName, a.location, a.code, b.name typeName
|
|
|
|
|
|
+ SELECT a.id, a.enterprise_name enterpriseName, a.location, a.code, a.type_num typeNum, b.name typeName
|
|
from enterprise a
|
|
from enterprise a
|
|
left join enterprise_type b
|
|
left join enterprise_type b
|
|
on a.type_num = b.number
|
|
on a.type_num = b.number
|