Jelajahi Sumber

险种外键实体

yanliming 5 tahun lalu
induk
melakukan
97fc776bb6

+ 2 - 1
picc-common/src/main/resources/mapper/base/InsuranceDefinitionLimit.xml

@@ -5,7 +5,7 @@
 <mapper namespace="com.jpsoft.picc.modules.base.dao.InsuranceDefinitionLimitDAO">
 	<resultMap id="InsuranceDefinitionLimitMap" type="com.jpsoft.picc.modules.base.entity.InsuranceDefinitionLimit">
 		<id property="id" column="id_" />
-			<result property="definitionId" column="definition_id" />
+<!--			<result property="definitionId" column="definition_id" />-->
 			<result property="name" column="name_" />
 			<result property="limit" column="limit_" />
 			<result property="unit" column="unit_" />
@@ -15,6 +15,7 @@
 			<result property="createTime" column="create_time" />
 			<result property="updateBy" column="update_by" />
 			<result property="updateTime" column="update_time" />
+			<association property="definition" column="definition_id" select="com.jpsoft.picc.modules.base.dao.InsuranceDefinitionDAO.get"></association>
 			</resultMap>
 	<insert id="insert" parameterType="com.jpsoft.picc.modules.base.entity.InsuranceDefinitionLimit">
 	<!--