12345678910111213141516171819202122232425262728 |
- <?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.cslg.pas.mapper.PermissionRecordMapper">
- <select id="selectLicenseeMonthList" resultType="cn.cslg.pas.common.dto.es.SelectValueCurveDTO">
- select sum(license_fee) as licenseFee,
- DATE_FORMAT(license_time, '%Y-%m') as licenseTime
- from permission_record
- where patent_no = #{patentNo} and tenant_id = #{tenantId}
- group by licenseTime;
- </select>
- <select id="selectLicenseeYearList" resultType="cn.cslg.pas.common.dto.es.SelectValueCurveDTO">
- select sum(license_fee) as licenseFee,
- CONCAT(DATE_FORMAT(license_time, '%Y'),'年') as licenseTime
- from permission_record
- where patent_no = #{patentNo} and tenant_id = #{tenantId}
- group by licenseTime;
- </select>
- <select id="selectLicenseeQuarterList" resultType="cn.cslg.pas.common.dto.es.SelectValueCurveDTO">
- select sum(license_fee) as licenseFee,
- CONCAT(YEAR(license_time),'年第',quarter(license_time),'季度') as licenseTime
- from permission_record
- where patent_no = #{patentNo} and tenant_id = #{tenantId}
- group by licenseTime;
- </select>
- </mapper>
|