<?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.fjhx.sale.mapper.claim.ClaimMapper">
    <select id="getPage" resultType="com.fjhx.sale.entity.claim.vo.ClaimVo">
        select
            c.id,
            c.amount,
            c.remark,
            c.account_management_id,
            c.currency,
            c.claim_user_id,
            c.claim_user_name,
            c.claim_time,
            c.create_user,
            c.create_time,
            c.update_user,
            c.update_time
        from claim c
            ${ew.customSqlSegment}
    </select>
    <select id="claimRecord" resultType="com.fjhx.sale.entity.claim.vo.ClaimContractVo">
        SELECT
            cc.*,
            cl.claim_user_id  claimUserId
        FROM
            claim cl
                LEFT JOIN claim_contract cc ON cl.id = cc.claim_id
            ${ew.customSqlSegment}
    </select>

</mapper>
