Commit 4947a91c by 阳浪

数据隔离

parent 6b3e873d
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
a.id = aug.account_id a.id = aug.account_id
where where
pu.state = 1 pu.state = 1
and pu.site_id=#{vo.siteId}
<if test="vo.dateType!=null and vo.dateType==1"> <if test="vo.dateType!=null and vo.dateType==1">
and DATE_FORMAT(pu.create_time, '%Y') = #{vo.dateString} and DATE_FORMAT(pu.create_time, '%Y') = #{vo.dateString}
</if> </if>
...@@ -182,6 +183,7 @@ ...@@ -182,6 +183,7 @@
a.id = aug.account_id a.id = aug.account_id
where where
pu.state = 1 pu.state = 1
and pu.site_id=#{vo.siteId}
<if test="vo.dateType!=null and vo.dateType==1"> <if test="vo.dateType!=null and vo.dateType==1">
and DATE_FORMAT(pu.create_time, '%Y') = #{vo.dateString} and DATE_FORMAT(pu.create_time, '%Y') = #{vo.dateString}
</if> </if>
......
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