Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_copyright_book_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
maliang
lwby_copyright_book_data
Commits
76b8ffc7
Commit
76b8ffc7
authored
Apr 30, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限控制
parent
e23ac692
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
CopyrightMapper.xml
src/main/resources/mybatis-mappers/CopyrightMapper.xml
+27
-0
No files found.
src/main/resources/mybatis-mappers/CopyrightMapper.xml
0 → 100644
View file @
76b8ffc7
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment