|
@@ -2,8 +2,11 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.fjhx.form.mapper.cost.CostControlMapper">
|
|
|
<select id="getPage" resultType="com.fjhx.form.entity.cost.vo.CostControlVo">
|
|
|
- select cc.*
|
|
|
- from cost_control cc
|
|
|
+ SELECT cc.*,
|
|
|
+ ap.id AS accountPaymentId,
|
|
|
+ ap.`status` AS accountPaymentStatus
|
|
|
+ FROM cost_control cc
|
|
|
+ LEFT JOIN account_payment ap ON ap.cost_control_id = cc.id
|
|
|
${ew.customSqlSegment}
|
|
|
</select>
|
|
|
<select id="detail" resultType="com.fjhx.form.entity.cost.vo.CostControlVo">
|