insert 会所收入统计
This commit is contained in:
+2
@@ -217,4 +217,6 @@ public interface PayWorkingGroupMapper extends BaseMapper<PayWorkingGroup> {
|
||||
List<DepartStatistics> queryPageListDepartment(@Param("departStatisticsSearch") DepartStatisticsSearch departStatisticsSearch, @Param("idList") List<String> idList);
|
||||
|
||||
AllMoney queryPageListDepartment33(@Param("departStatisticsSearch") DepartStatisticsSearch departStatisticsSearch, @Param("idList") List<String> idList);
|
||||
|
||||
IPage<AllProjectStatistics> queryPageListAllProjectMoney(Page<AllProjectStatistics> page, @Param(value = "allProjectStatisticsSearch") AllProjectStatisticsSearch allProjectStatisticsSearch, @Param("idList") List<String> idList);
|
||||
}
|
||||
|
||||
+17
@@ -2216,4 +2216,21 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 全所收入统计-->
|
||||
<select id="queryPageListAllProjectMoney" resultType="com.jero.statistics.entity.AllProjectStatistics">
|
||||
select
|
||||
sum(paidNoTaxAmount) as comeAllMoney,
|
||||
sum(invoiceNoTaxAmount) as billMoney,
|
||||
sum(confirmNoTaxAmount) as confirmAmount,
|
||||
DATE_FORMAT(pcpr.payment_date,'%Y-%m') as paymentDate
|
||||
from v_statistical v
|
||||
left join pay_confirm_payment_record pcpr on(v.projectId=pcpr.project_id)
|
||||
<where>
|
||||
<if test="allProjectStatisticsSearch.paymentYear != null and allProjectStatisticsSearch.paymentYear != ''">
|
||||
and DATE_FORMAT (pcpr.payment_date,'%Y') like concat(#{allProjectStatisticsSearch.paymentYear}, '%')
|
||||
</if>
|
||||
</where>
|
||||
group by DATE_FORMAT(pcpr.payment_date,'%Y-%m')
|
||||
order by paymentDate
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
+2
@@ -238,4 +238,6 @@ public interface IPayWorkingGroupService extends IService<PayWorkingGroup> {
|
||||
List<DepartStatistics> queryPageListDepartmentExcel(DepartStatisticsSearch departStatisticsSearch, List<String> idList);
|
||||
|
||||
AllMoney queryPageListDepartment33(DepartStatisticsSearch departStatisticsSearch, List<String> idList);
|
||||
|
||||
IPage<AllProjectStatistics> queryPageListAllProjectMoney(Page<AllProjectStatistics> page, AllProjectStatisticsSearch allProjectStatisticsSearch, List<String> idList );
|
||||
}
|
||||
|
||||
+5
@@ -630,4 +630,9 @@ public class PayWorkingGroupServiceImpl extends ServiceImpl<PayWorkingGroupMappe
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<AllProjectStatistics> queryPageListAllProjectMoney(Page<AllProjectStatistics> page, AllProjectStatisticsSearch allProjectStatisticsSearch, List<String> idList) {
|
||||
return payWorkingGroupMapper.queryPageListAllProjectMoney(page,allProjectStatisticsSearch,idList);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user