| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532 |
- <?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.jzg.organization.mapper.PtlAgreementCostMapper">
- <resultMap id="BaseResultMap" type="com.jzg.commons.entity.vo.PtlAgreementCostVo">
- <id column="id" property="id" jdbcType="BIGINT"/>
- <result column="ptl_agreement_id" property="ptlAgreementId" jdbcType="VARCHAR"/>
- <result column="product_name" property="productName" jdbcType="VARCHAR"/>
- <result column="product_id" property="productId" jdbcType="VARCHAR"/>
- <result column="effective_time" property="effectiveTime" jdbcType="TIMESTAMP"/>
- <result column="failure_time" property="failureTime" jdbcType="TIMESTAMP"/>
- <result column="audit_method" property="auditMethod" jdbcType="VARCHAR"/>
- <result column="cost_describe" property="costDescribe" jdbcType="VARCHAR"/>
- <result column="approved" property="approved" jdbcType="VARCHAR"/>
- <result column="is_valid" property="isValid" jdbcType="VARCHAR"/>
- <result column="is_enabled" property="isEnabled" jdbcType="VARCHAR"/>
- <result column="audit_person" property="auditPerson" jdbcType="VARCHAR"/>
- <result column="audit_time" property="auditTime" jdbcType="VARCHAR"/>
- <result column="review_description" property="reviewDescription" jdbcType="VARCHAR"/>
- <result column="agreement_code" property="ptlAgreementCode" jdbcType="VARCHAR"/>
- <result column="agreement_title" property="ptlAgreementName" jdbcType="VARCHAR"/>
- <result column="jq_entrance_fee_ratio" property="jqEntranceFeeRatio" jdbcType="VARCHAR"/>
- <result column="sy_entrance_fee_ratio" property="syEntranceFeeRatio" jdbcType="VARCHAR"/>
- <result column="jy_entrance_fee_ratio" property="jyEntranceFeeRatio" jdbcType="VARCHAR"/>
- <result column="priority_level" property="priorityLevel" jdbcType="INTEGER"/>
- <collection property="ptlAgreementCostTypeList" column="{costId=id}" ofType="com.jzg.commons.entity.vo.PtlAgreementCostTypeVo" select="selectCostType" />
- <collection property="ruleConditions" column="{costId=id}" ofType="com.jzg.commons.entity.vo.PtlAgreementCostRuleVo" select="selectCostRule" />
- </resultMap>
- <resultMap id="RulesDictLabalMap" type="com.jzg.commons.entity.po.PtlAgreementUndwrtRulesDictLabal">
- <id column="id" property="id" jdbcType="BIGINT"/>
- <result column="dict_id" property="dictId" jdbcType="INTEGER"/>
- <result column="name" property="name" jdbcType="VARCHAR"/>
- <result column="code" property="code" jdbcType="VARCHAR"/>
- <result column="sort" property="sort" jdbcType="VARCHAR"/>
- </resultMap>
- <resultMap id="CostResultMap" type="com.jzg.commons.entity.vo.PtlAgreementCostVo">
- <id column="id" property="id" jdbcType="BIGINT"/>
- <result column="ptl_agreement_id" property="ptlAgreementId" jdbcType="VARCHAR"/>
- <result column="product_name" property="productName" jdbcType="VARCHAR"/>
- <result column="product_id" property="productId" jdbcType="VARCHAR"/>
- <result column="effective_time" property="effectiveTime" jdbcType="TIMESTAMP"/>
- <result column="failure_time" property="failureTime" jdbcType="TIMESTAMP"/>
- <result column="audit_method" property="auditMethod" jdbcType="VARCHAR"/>
- <result column="cost_describe" property="costDescribe" jdbcType="VARCHAR"/>
- <result column="cost_rules" property="costRules" jdbcType="VARCHAR"/>
- <result column="approved" property="approved" jdbcType="VARCHAR"/>
- <result column="is_valid" property="isValid" jdbcType="VARCHAR"/>
- <result column="is_enabled" property="isEnabled" jdbcType="VARCHAR"/>
- <collection property="ptlAgreementCostTypeList" column="{costId=id}" ofType="com.jzg.commons.entity.vo.PtlAgreementCostTypeVo" select="selectCostType" />
- </resultMap>
- <resultMap id="costType" type="com.jzg.commons.entity.vo.PtlAgreementCostTypeVo">
- <id column="id" property="id" jdbcType="BIGINT"/>
- <result column="ptl_agreement_cost_id" property="ptlAgreementCostId" jdbcType="INTEGER"/>
- <result column="cost_type" property="costType" jdbcType="VARCHAR"/>
- <result column="inlet" property="inlet" jdbcType="DECIMAL"/>
- <result column="export" property="export" jdbcType="DECIMAL"/>
- <result column="add_throw" property="addThrow" jdbcType="DECIMAL"/>
- <result column="keep_point_ratio" property="keepPointRatio" jdbcType="DECIMAL"/>
- <result column="export_keep_point_ratio" property="exportKeepPointRatio" jdbcType="DECIMAL"/>
- </resultMap>
- <resultMap id="costRule" type="com.jzg.commons.entity.vo.PtlAgreementCostRuleVo">
- <id column="id" property="id" jdbcType="BIGINT"/>
- <result column="ptl_agreement_cost_id" property="ptlAgreementCostId" jdbcType="INTEGER"/>
- <result column="rules_id" property="rulesId" jdbcType="VARCHAR"/>
- <result column="attr_Id" property="attrId" jdbcType="VARCHAR"/>
- <result column="attr_code" property="attrCode" jdbcType="VARCHAR"/>
- <result column="attr_type" property="attrType" jdbcType="VARCHAR"/>
- <result column="attr_group" property="attrGroup" jdbcType="VARCHAR"/>
- <result column="attr_name" property="attrName" jdbcType="VARCHAR"/>
- <result column="dict_id" property="dictId" jdbcType="VARCHAR"/>
- <result column="min" property="min" jdbcType="VARCHAR"/>
- <result column="max" property="max" jdbcType="VARCHAR"/>
- <result column="operator" property="operator" jdbcType="VARCHAR"/>
- <result column="batch" property="batch" jdbcType="VARCHAR"/>
- <collection property="dictLabal" column="{dictId = dict_id}" ofType="com.jzg.commons.entity.po.PtlAgreementUndwrtRulesDictLabal" select="selectDictLabal"/>
- </resultMap>
- <resultMap id="CostListMap" type="com.jzg.commons.entity.vo.CostListVo">
- <result column="ids" property="ids" jdbcType="VARCHAR"/>
- <result column="product_name" property="productName" jdbcType="VARCHAR"/>
- <result column="product_id" property="productId" jdbcType="VARCHAR"/>
- <collection property="ptlAgreementCostVoList" column="{costId = ids}" ofType="com.jzg.commons.entity.vo.PtlAgreementCostVo" select="selectCostById" />
- </resultMap>
- <resultMap id="CostsList" type="com.jzg.commons.entity.vo.CostsListVo">
- <result column="id" property="id" jdbcType="VARCHAR"/>
- <result column="product_name" property="productName" jdbcType="VARCHAR"/>
- <result column="product_id" property="productId" jdbcType="VARCHAR"/>
- <result column="priority_level" property="priorityLevel" jdbcType="VARCHAR"/>
- <collection property="ptlAgreementCostRuleList" ofType="com.jzg.commons.entity.po.PtlAgreementCostRule">
- <result column="rule_id" property="id" jdbcType="VARCHAR"/>
- <result column="ptl_agreement_cost_id" property="ptlAgreementCostId" jdbcType="VARCHAR"/>
- <result column="attr_code" property="attrCode" jdbcType="VARCHAR"/>
- <result column="min" property="min" jdbcType="VARCHAR"/>
- <result column="max" property="max" jdbcType="VARCHAR"/>
- <result column="operator" property="operator" jdbcType="VARCHAR"/>
- <result column="batch" property="batch" jdbcType="VARCHAR"/>
- </collection>
- </resultMap>
- <resultMap id="CostManagementVoMap" type="com.jzg.commons.entity.dto.CostManagementVo">
- <result column="ptlAgreementId" property="ptlAgreementId" jdbcType="VARCHAR"/>
- <result column="agreement_code" property="agreementCode" jdbcType="VARCHAR"/>
- <result column="agreement_title" property="agreementTitle" jdbcType="VARCHAR"/>
- <result column="agreement_abbreviation" property="agreementAbbreviation" jdbcType="VARCHAR"/>
- <result column="is_enabled" property="isEnabled" jdbcType="VARCHAR"/>
- <result column="is_valid" property="isValid" jdbcType="VARCHAR"/>
- <result column="approved" property="approved" jdbcType="VARCHAR"/>
- <result column="cost_describe" property="costDescribe" jdbcType="VARCHAR"/>
- <result column="rule_description" property="ruleDescription" jdbcType="VARCHAR"/>
- <result column="product_id" property="productId" jdbcType="VARCHAR"/>
- <result column="product_name" property="productName" jdbcType="VARCHAR"/>
- <result column="cost_rules" property="costRules" jdbcType="VARCHAR"/>
- <result column="effective_time" property="effectiveTime" jdbcType="VARCHAR"/>
- <result column="failure_time" property="failureTime" jdbcType="VARCHAR"/>
- <result column="priority_level" property="priorityLevel" jdbcType="INTEGER"/>
- <result column="costId" property="costId" jdbcType="VARCHAR"/>
- <result column="create_time" property="createTime" jdbcType="VARCHAR"/>
- <result column="company_name" property="companyName" jdbcType="VARCHAR"/>
- <result column="company_id" property="companyId" jdbcType="VARCHAR"/>
- <result column="create_by" property="createBy" jdbcType="VARCHAR"/>
- <collection property="ruleConditions" column="{costId=costId}" ofType="com.jzg.commons.entity.vo.PtlAgreementCostTypeVo" select="selectCostType" />
- </resultMap>
- <select id="queryByAgreementIdAndCoverRuleId" resultMap="CostListMap">
- SELECT
- c.product_name,
- c.product_id,
- GROUP_CONCAT(c.id) as ids
- FROM
- ptl_agreement_cost c
- <where>
- c.is_delete = 0
- <if test="ptlAgreementId != null">
- AND c.ptl_agreement_id = #{ptlAgreementId}
- </if>
- <if test="coverRuleId != null">
- AND c.cover_rule_id = #{coverRuleId}
- </if>
- </where>
- GROUP BY c.product_id, c.product_name
- </select>
- <select id="queryByAgreementIdAndProductId" resultMap="CostsList">
- SELECT
- c.id,
- c.product_name,
- c.product_id,
- c.priority_level,
- r.id as rule_id,
- r.ptl_agreement_cost_id as ptl_agreement_cost_id,
- r.attr_code as attr_code,
- r.min as min,
- r.max as max,
- r.operator as operator,
- r.batch as batch
- FROM
- ptl_agreement_cost c
- left join ptl_agreement_cost_rule r on c.id = r.ptl_agreement_cost_id AND r.is_delete = 0
- <where>
- c.is_delete = 0
- AND
- c.approved = 1
- <if test="ptlAgreementId != null">
- AND c.ptl_agreement_id = #{ptlAgreementId}
- </if>
- <if test="productId != null">
- AND c.product_id = #{productId}
- </if>
- AND
- NOW() BETWEEN c.effective_time AND c.failure_time
- </where>
- </select>
- <select id="selectCostById" resultMap="CostResultMap">
- SELECT
- t.id,
- t.priority_level,
- t.ptl_agreement_id,
- t.product_name,
- t.product_id,
- t.effective_time,
- t.failure_time,
- t.audit_method,
- t.cost_rules,
- t.cost_describe,
- t.approved,
- t.is_valid,
- t.is_enabled
- FROM
- ptl_agreement_cost t
- <where>
- t.is_delete = 0
- AND t.id IN (${costId})
- </where>
- order by t.create_time desc
- </select>
- <select id="queryById" resultMap="BaseResultMap">
- SELECT
- t.id,
- t.ptl_agreement_id,
- t.cover_rule_id,
- t.product_name,
- t.product_id,
- t.effective_time,
- t.failure_time,
- t.audit_method,
- t.cost_describe,
- t.approved,
- t.is_delete,
- t.create_by,
- t.create_time,
- t.update_by,
- t.update_time,
- t.audit_person,
- t.review_description,
- t.audit_time,
- t.priority_level,
- pa.agreement_code,
- pa.agreement_title,
- pa.jq_entrance_fee_ratio,
- pa.sy_entrance_fee_ratio,
- pa.jy_entrance_fee_ratio
- FROM
- ptl_agreement_cost t
- LEFT JOIN ptl_agreement pa ON pa.id = t.ptl_agreement_id AND pa.is_delete = 0
- <where>
- t.is_delete = 0
- <if test="id != null">
- AND t.id = #{id}
- </if>
- </where>
- </select>
- <select id="queryByAgreementId" resultMap="BaseResultMap">
- SELECT
- t.id,
- t.ptl_agreement_id,
- t.product_name,
- t.product_id,
- t.cover_rule_id,
- t.effective_time,
- t.failure_time,
- t.audit_method,
- t.cost_describe,
- t.is_delete,
- t.approved,
- t.is_valid,
- t.is_enabled,
- t.create_by,
- t.create_time,
- t.update_by,
- t.update_time
- FROM
- ptl_agreement_cost t
- <where>
- t.is_delete = 0
- <if test="ptlAgreementId != null">
- AND t.ptl_agreement_id = #{ptlAgreementId}
- </if>
- <if test="coverRuleId != null">
- AND t.cover_rule_id = #{coverRuleId}
- </if>
- </where>
- </select>
- <select id="selectCostRule" resultMap="costRule">
- SELECT
- tr.id,
- tr.ptl_agreement_cost_id,
- tr.rules_id,
- tr.attr_id,
- tr.attr_code,
- tr.min,
- tr.max,
- tr.operator,
- tr.batch,
- a.attr_name,
- a.attr_type,
- a.attr_group,
- a.dict_id
- FROM
- ptl_agreement_cost_rule tr
- left join ptl_agreement_undwrt_rules_attr a on tr.attr_code = a.attr_code AND a.is_delete = 0
- <where>
- tr.is_delete = 0
- AND tr.ptl_agreement_cost_id = #{costId}
- </where>
- GROUP BY tr.id,
- tr.ptl_agreement_cost_id,
- tr.rules_id,
- tr.attr_id,
- tr.attr_code,
- tr.min,
- tr.max,
- tr.operator,
- tr.batch,
- a.attr_name,
- a.attr_type,
- a.attr_group,
- a.dict_id
- </select>
- <select id="selectCostType" resultMap="costType">
- SELECT
- tt.id,
- tt.ptl_agreement_cost_id,
- tt.cost_type,
- tt.inlet,
- tt.export,
- tt.add_throw,
- tt.keep_point_ratio,
- tt.export_keep_point_ratio,
- CASE
- WHEN tt.cost_type = '交强险' THEN pa.jq_entrance_fee_ratio
- WHEN tt.cost_type = '商业险' THEN pa.sy_entrance_fee_ratio
- WHEN tt.cost_type = '驾意险' THEN pa.jy_entrance_fee_ratio
- ELSE NULL
- END AS commission
- FROM
- ptl_agreement_cost_type tt
- left join ptl_agreement_cost pac on pac.id = tt.ptl_agreement_cost_id AND pac.is_delete = 0
- left join ptl_agreement pa on pa.id = pac.ptl_agreement_id AND pa.is_delete = 0
- <where>
- tt.is_delete = 0
- AND tt.ptl_agreement_cost_id = #{costId}
- </where>
- </select>
- <select id="selectDictLabal" resultMap="RulesDictLabalMap">
- <if test="dictId != null and dictId != ''">
- select * from ptl_agreement_undwrt_rules_dict_labal
- <where>
- is_delete = 0
- AND dict_id = #{dictId}
- </where>
- </if>
- </select>
- <select id="pageList" resultMap="CostManagementVoMap">
- SELECT
- pa.attribution_id,
- (select paa.user_abbr from ptl_agreement_attribution paa where paa.id = pa.attribution_id ) as user_abbr,
- pc.id as cost_id,
- pr_raw.id as ruld_id,
- pc.audit_time,
- pc.audit_person,
- pc.product_id,
- pc.product_name,
- pc.cost_rules,
- pc.effective_time,
- pc.failure_time,
- pc.id costId,
- pc.ptl_agreement_id,
- pc.cover_rule_id,
- pc.approved,
- pc.cost_describe,
- pc.priority_level,
- pc.is_enabled,
- pc.create_time,
- pc.create_by,
- pa.agreement_code,
- pa.agreement_name,
- pa.agreement_title,
- pa.agreement_abbreviation,
- pa.id as ptlAgreementId,
- CASE
- WHEN pr_raw.parent_id IS NOT NULL AND pr_raw.parent_id != ''
- THEN (SELECT GROUP_CONCAT(child.rule_description ORDER BY child.order_num ASC SEPARATOR ',')
- FROM ptl_agreement_undwrt_rules child
- WHERE child.parent_id = pr_raw.parent_id AND child.is_delete = 0)
- ELSE pr_raw.rule_description
- END AS rule_description,
- eic.name as company_name,
- pa.company_id as company_id,
- pa.docking_person,
- pc.update_time,
- CASE
- WHEN NOW() >= pc.effective_time
- AND (pc.failure_time IS NULL OR NOW() <= pc.failure_time)
- THEN 0
- ELSE 1
- END AS is_valid
- FROM
- ptl_agreement_cost pc
- LEFT JOIN ptl_agreement pa ON pa.id = pc.ptl_agreement_id and pa.is_delete = 0
- LEFT JOIN ptl_agreement_undwrt_rules pr_raw ON pr_raw.id = pc.cover_rule_id AND pr_raw.is_delete = 0
- LEFT JOIN esm_ins_company eic on eic.id = pa.company_id AND eic.is_delete = 0
- <where>
- pc.is_delete = 0
- <if test="costParam.costDescribes != null and costParam.costDescribes.length >0 ">
- and (
- <foreach collection="costParam.costDescribes" close=")" open="(" separator="and " item="costDescribe">
- pc.cost_describe like concat('%', #{costDescribe} ,'%')
- </foreach>
- )
- </if>
- <if test="costParam.auditTimeBegin != null and costParam.auditTimeBegin != ''">
- and pc.audit_time >= #{costParam.auditTimeBegin}
- </if>
- <if test="costParam.auditTimeEnd != null and costParam.auditTimeEnd != ''">
- and pc.audit_time < #{costParam.auditTimeEnd}
- </if>
- <if test="costParam.agreement != null and costParam.agreement != ''">
- AND (pa.agreement_title like concat('%',#{costParam.agreement},'%') or
- pa.agreement_code like concat('%',#{costParam.agreement},'%') or
- pa.agreement_abbreviation like concat('%',#{costParam.agreement},'%') or
- pa.id = #{costParam.agreement})
- </if>
- <if test="costParam.companyIdList != null and costParam.companyIdList.size() >0">
- and pa.partner_company_id in
- <foreach collection="costParam.companyIdList" item="partnerCompnayId" open="(" close=")" separator=",">
- #{partnerCompnayId}
- </foreach>
- </if>
- <if test="costParam.agreementIds != null and costParam.agreementIds.length >0 ">
- AND pa.id in
- <foreach collection="costParam.agreementIds" item="agreementId" separator="," open="(" close=")">
- #{agreementId}
- </foreach>
- </if>
- <if test="costParam.productIds != null and costParam.productIds.length > 0 ">
- AND pc.product_id in
- <foreach collection="costParam.productIds" item="productId" separator="," open="(" close=")">
- #{productId}
- </foreach>
- </if>
- <if test="costParam.productId != null and costParam.productId != '' ">
- AND pc.product_id = #{costParam.productId}
- </if>
- <if test="costParam.agreementId != null and costParam.agreementId != ''">
- AND pc.ptl_agreement_id = #{costParam.agreementId}
- </if>
- <if test="costParam.coverRuleId != null and costParam.coverRuleId != ''">
- AND pc.cover_rule_id = #{costParam.coverRuleId}
- </if>
- <if test="costParam.rulesName != null and costParam.rulesName != ''">
- AND (
- (pr_raw.parent_id IS NOT NULL AND pr_raw.parent_id != ''
- AND EXISTS (SELECT 1 FROM ptl_agreement_undwrt_rules child
- WHERE child.parent_id = pr_raw.parent_id
- AND child.is_delete = 0
- AND child.rule_description LIKE concat('%',#{costParam.rulesName},'%')))
- OR (pr_raw.parent_id IS NULL OR pr_raw.parent_id = '')
- AND pr_raw.rule_description LIKE concat('%',#{costParam.rulesName},'%')
- )
- </if>
- <if test="costParam.costRulesList != null and costParam.costRulesList.size() > 0">
- AND
- <foreach collection="costParam.costRulesList" item="keyword" separator="AND">
- pc.cost_rules LIKE CONCAT('%', #{keyword}, '%')
- </foreach>
- </if>
- <if test="costParam.costRules != null and costParam.costRules.length > 0">
- AND
- <foreach collection="costParam.costRules" item="keyword" separator="AND">
- pc.cost_rules LIKE CONCAT('%', #{keyword}, '%')
- </foreach>
- </if>
- <if test="costParam.agreementStatus != null and costParam.agreementStatus != ''">
- AND pc.is_enabled = #{costParam.agreementStatus}
- </if>
- <if test="costParam.auditStatus != null and costParam.auditStatus != ''">
- AND pc.approved = #{costParam.auditStatus}
- </if>
- <if test="costParam.validState != null and costParam.validState != ''">
- <choose>
- <!-- 有效 -->
- <when test="costParam.validState == 0">
- AND NOW() >= pc.effective_time
- AND (pc.failure_time IS NULL OR NOW() <= pc.failure_time)
- </when>
- <!-- 无效 -->
- <when test="costParam.validState == 1">
- AND ( (pc.failure_time IS NOT NULL AND NOW() > pc.failure_time)
- )
- </when>
- </choose>
- </if>
- <if test="costParam.effectiveTime != null and costParam.effectiveTime.size() > 0">
- AND pc.effective_time BETWEEN #{costParam.effectiveTime[0]} AND #{costParam.effectiveTime[1]}
- </if>
- <if test="costParam.failureTime != null and costParam.failureTime.size() > 0">
- AND pc.failure_time BETWEEN #{costParam.failureTime[0]} AND #{costParam.failureTime[1]}
- </if>
- <if test="costParam.createTimeArr != null and costParam.createTimeArr.size() > 0">
- AND pc.create_time BETWEEN #{costParam.createTimeArr[0]} AND #{costParam.createTimeArr[1]}
- </if>
- <if test="costParam.companyId != null and costParam.companyId != ''">
- AND pa.company_id = #{costParam.companyId}
- </if>
- <if test="costParam.contactPerson != null and costParam.contactPerson != ''">
- AND pa.docking_person = #{costParam.contactPerson}
- </if>
- <if test="costParam.isEnabled != null and costParam.isEnabled != ''">
- AND pc.is_enabled = #{costParam.isEnabled}
- </if>
- <if test="costParam.updateTimeArr != null and costParam.updateTimeArr.size() > 0">
- AND pc.update_time BETWEEN #{costParam.updateTimeArr[0]} AND #{costParam.updateTimeArr[1]}
- </if>
- <if test="costParam.auditPerson != null and costParam.auditPerson != '' ">
- and pc.audit_person = #{costParam.auditPerson}
- </if>
- <if test="costParam.newCostIds != null and costParam.newCostIds.size() > 0">
- AND pc.id IN
- <foreach collection="costParam.newCostIds" item="v" open="(" separator="," close=")">#{v}</foreach>
- </if>
- </where>
- order by pc.create_time desc
- </select>
- </mapper>
|