提供给前台的财务单
This commit is contained in:
parent
1f84c777a8
commit
4cd21aa340
|
|
@ -282,6 +282,7 @@ public class ShiroConfig
|
|||
filterChainDefinitionMap.put("/worker/**", "anon");
|
||||
filterChainDefinitionMap.put("/customer/**", "anon");
|
||||
filterChainDefinitionMap.put("/goods/**", "anon");
|
||||
filterChainDefinitionMap.put("/financial/**", "anon");
|
||||
filterChainDefinitionMap.put("/tool/**", "anon");
|
||||
filterChainDefinitionMap.put("/adapay/**", "anon");
|
||||
filterChainDefinitionMap.put("/system/area/**", "anon");
|
||||
|
|
|
|||
|
|
@ -43,7 +43,12 @@ public class FinancialDetailServiceImpl implements FinancialDetailService {
|
|||
// 查询指定月支出的
|
||||
request.setFlag("false");
|
||||
request.setCreateTime(financialCountResponse.getCreateTime());
|
||||
financialCountResponse.setPayCount(financialDetailMapper.count(request).get(0).getPayCount());
|
||||
List<FinancialCountResponse> payCountList = financialDetailMapper.count(request);
|
||||
if( payCountList != null && payCountList.size() != 0){
|
||||
financialCountResponse.setPayCount(payCountList.get(0).getIncomeCount());
|
||||
}else {
|
||||
financialCountResponse.setPayCount("0");
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,15 +104,15 @@
|
|||
|
||||
<select id="count" resultMap="countResult">
|
||||
select DATE_FORMAT(create_time,'%Y-%m') as create_time,
|
||||
sum(pay_money) as pay_count from financial_detail
|
||||
sum(pay_money) as income_count from financial_detail
|
||||
<where>
|
||||
<if test="createTime != null">
|
||||
and DATE_FORMAT(create_time,'%Y-%m') = #{createTime}
|
||||
</if>
|
||||
<if test="flag != 'true'">
|
||||
<if test="flag == 'true'">
|
||||
and pay_money >= 0
|
||||
</if>
|
||||
<if test="flag != 'false'">
|
||||
<if test="flag == 'false'">
|
||||
and pay_money <= 0
|
||||
</if>
|
||||
</where>
|
||||
|
|
|
|||
Loading…
Reference in New Issue