1.财务中心和数据中心收入明细不匹配修复
This commit is contained in:
@@ -162,6 +162,18 @@
|
||||
select count(*) from pay_details
|
||||
where `state`=1 and user_id=#{userId}
|
||||
</select>
|
||||
<select id="statisticsIncomeMoney" resultType="java.lang.Double">
|
||||
select sum(money) from pay_details where state=1
|
||||
<if test="flag!=null and flag==1">
|
||||
and date_format(create_time,'%Y-%m-%d')=date_format(#{time},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="flag!=null and flag==2">
|
||||
and date_format(create_time,'%Y-%m')=date_format(#{time},'%Y-%m')
|
||||
</if>
|
||||
<if test="flag!=null and flag==3">
|
||||
and date_format(create_time,'%Y')=date_format(#{time},'%Y')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user