Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
haoban3.0
haoban-manage3.0
Commits
c002d98b
Commit
c002d98b
authored
Aug 29, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:收费bug修改
parent
11fa4598
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
TabHaobanQywxFeeAccountStaffMapper.xml
...sources/mapper/fee/TabHaobanQywxFeeAccountStaffMapper.xml
+3
-3
TabHaobanQywxFeeMapper.xml
.../src/main/resources/mapper/fee/TabHaobanQywxFeeMapper.xml
+2
-2
No files found.
haoban-manage3-service/src/main/resources/mapper/fee/TabHaobanQywxFeeAccountStaffMapper.xml
View file @
c002d98b
...
...
@@ -133,7 +133,7 @@
DATE_FORMAT( expire_time, '%Y-%m-%d' ) interceptTime
from tab_haoban_qywx_fee_account_staff
where wx_enterprise_id = #{wxEnterpriseId}
and
DATE_SUB(CURDATE(), INTERVAL 30 DAY)
<![CDATA[ <= ]]>
date(expire_time
)
and
expire_time between DATE(CURDATE()) and DATE_add(CURDATE(), INTERVAL 30 DAY
)
group by DATE_FORMAT( expire_time, '%Y-%m-%d' )
</select>
...
...
@@ -143,7 +143,7 @@
expire_time expireTime
from tab_haoban_qywx_fee_account_staff
where wx_enterprise_id = #{wxEnterpriseId}
and
DATE_SUB(CURDATE(), INTERVAL 30 DAY)
<![CDATA[ <= ]]>
date(expire_time
)
and
expire_time between DATE(CURDATE()) and DATE_add(CURDATE(), INTERVAL 30 DAY
)
order by expire_time desc limit 1
</select>
...
...
@@ -152,7 +152,7 @@
count(distinct staff_id)
from tab_haoban_qywx_fee_account_staff
where wx_enterprise_id = #{wxEnterpriseId}
and DATE_SUB(CURDATE(), INTERVAL 30 DAY)
<![CDATA[ <= ]]>
date(expire_time
)
and expire_time between DATE(CURDATE()) and DATE_add(CURDATE(), INTERVAL 30 DAY
)
</select>
</mapper>
haoban-manage3-service/src/main/resources/mapper/fee/TabHaobanQywxFeeMapper.xml
View file @
c002d98b
...
...
@@ -46,11 +46,11 @@
and intercept_time
<![CDATA[ >= ]]>
#{startDate}
</if>
<if
test=
"endDate != null and endDate != ''"
>
and intercept_time
<![CDATA[
>
= ]]>
#{endDate}
and intercept_time
<![CDATA[
<
= ]]>
#{endDate}
</if>
<choose>
<when
test=
"interceptFlag != null and interceptFlag == 0"
>
and
DATE_SUB(CURDATE(), INTERVAL 30 DAY)
<![CDATA[ <= ]]>
date(intercept_time
)
and
intercept_time between DATE(CURDATE()) and DATE_add(CURDATE(), INTERVAL 30 DAY
)
GROUP BY wx_enterprise_id
order by intercept_time asc
</when>
...
...
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