<?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="org.jeecg.modules.projectManagement.mapper.FdContractProportionMapper">

    <select id="calculation" resultType="org.jeecg.modules.projectManagement.entity.FdContractProportion">
            SELECT
                a.id ,
                b.quotation_id ,
                b.fee_category1 AS feeCategory1,
                b.fee_category2 AS feeCategory2,
                (b.fee_category1+b.fee_category2) as fee
            FROM
                fd_project_quotation_template_item as b
                LEFT JOIN fd_quotation_template as a ON b.project_quotation_template_id = a.id
                     ${ew.customSqlSegment}
    </select>
</mapper>