TWeightMapper.xml 472 Bytes
Newer Older
1 2 3 4
<?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="cn.wise.sc.acquisition.business.mapper.TWeightMapper">

renchao's avatar
renchao committed
5 6 7 8 9 10 11 12 13 14 15

    <!-- 根据条件求和某字段 -->
    <select id="getSumByCondition" resultType="Double">
        SELECT
        sum(${condition})
        FROM T_Weight a
        <where>
            ${ew.sqlSegment}
        </where>
    </select>

16
</mapper>