Browse Source

修改

main
su 6 months ago
parent
commit
e452bb9da2

+ 2
- 2
src/main/java/com/qtzl/alterSales/dao/repo/jpa/second/AflMchStatisticsRepo.java View File

* @param feeType 费用类型 * @param feeType 费用类型
* @return 、 * @return 、
*/ */
@Query("FROM AflMchStatistics WHERE statisticalDate =?1 AND subMchId = ?2 AND feeType = ?3")
AflMchStatistics getAflMchStatistics(Integer statisticalDate, String subMchId, String feeType);
@Query("FROM AflMchStatistics WHERE statisticalDate =?1 AND subMchId = ?2 AND feeType = ?3 and agencyId = ?4")
AflMchStatistics getAflMchStatistics(Integer statisticalDate, String subMchId, String feeType,String agencyId);


/** /**
* 根据子商户号和统计日期查询 * 根据子商户号和统计日期查询

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/service/AflMchStatisticsServiceImpl.java View File

continue; continue;
} }
for (WechatStatisticsVo statisticsVo : wechatStatisticsVos) { for (WechatStatisticsVo statisticsVo : wechatStatisticsVos) {
AflMchStatistics mchStatistics = aflMchStatisticsRepo.getAflMchStatistics(statisticalDate, configVo.getSubMchId(), statisticsVo.getType());
AflMchStatistics mchStatistics = aflMchStatisticsRepo.getAflMchStatistics(statisticalDate, configVo.getSubMchId(), statisticsVo.getType(),statisticsVo.getAgencyId());
if (null == mchStatistics) { if (null == mchStatistics) {
mchStatistics = new AflMchStatistics(); mchStatistics = new AflMchStatistics();
mchStatistics.setInsertTime(LocalDateTime.now()); mchStatistics.setInsertTime(LocalDateTime.now());

Loading…
Cancel
Save