Commit 76b8ffc7 authored by maliang's avatar maliang

权限控制

parent e23ac692
<?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.boot.security.server.dao.CopyrightDao">
<select id="selectTableList_month" resultType="com.bi.manager.pojo.baseSettlement.BaseSettlement" >
SELECT
a.report_date AS report_date,a.copyright_id,a.copyright_name,
a.total_amount,IFNULL(b.total_ad_amount,0) total_ad_amount
FROM report_book_settlement_month a
LEFT JOIN report_book_advert_month b
ON a.report_date=b.report_date AND a.batch_id=b.batch_id AND a.batch_name=b.batch_name
WHERE
<![CDATA[
a.report_date >= #{startTime} and a.report_date <= #{endTime}
]]>
<if test="copyrightIdList != null and copyrightIdList.size>0">
and a.copyright_id in
<foreach collection="copyrightIdList" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
ORDER BY a.total_amount DESC ;
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment