31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
![]() |
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<!DOCTYPE mapper
|
||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
<mapper namespace="com.pusong.business.mapper.PsContractBusinessMapper">
|
||
|
|
||
|
<resultMap id="businessResult" type="com.pusong.business.domain.vo.PsContractBusinessVo">
|
||
|
<collection columnPrefix="DETAIL_" property="detailVoList" ofType="com.pusong.business.domain.vo.PsContractBusinessDetailVo" >
|
||
|
<!--<id column="ID" property="id"></id>
|
||
|
<result column="CUSTOMER_NAME" property="customerName" />
|
||
|
<result column="CUSTOMER_ID_NO" property="customerIdNo" />-->
|
||
|
</collection>
|
||
|
</resultMap>
|
||
|
|
||
|
<select id="selectBusinessList" resultMap="businessResult">
|
||
|
select bus.*,
|
||
|
detail.contract_code detail_contract_code,
|
||
|
detail.business_project detail_business_project,
|
||
|
detail.business_project_label detail_business_project_label,
|
||
|
detail.amount detail_amount,
|
||
|
detail.amount_desc detail_amount_desc,
|
||
|
detail.extent_info detail_extent_info,
|
||
|
from ps_contract_business bus
|
||
|
left join ps_contract_business_detail detail on bus.id = detail.business_id
|
||
|
where bus.del_flag = 0
|
||
|
and detail.del_flag = 0
|
||
|
and bus.contract_code = #{contractCode}
|
||
|
|
||
|
</select>
|
||
|
</mapper>
|