@@ -41,4 +41,8 @@ public interface FssPaccountRefundRepo extends AbstractJpaRepo<FssPaccountRefund | |||
" where fpp.agent_id =?1 and DATE(fpp.insert_time) = ?2 ",nativeQuery = true) | |||
Long findByCountRefundMoney(String agentId, String accountDate); | |||
@Query(nativeQuery = true,value = "SELECT DATE_FORMAT(R.insert_time, '%Y-%m-%d') AS stat_date,CASE WHEN P.agent_id = '52010188999' THEN '52010188930' ELSE COALESCE(P.agent_id, 'OTHER') END AS channel_id, COUNT(*) AS total_count,SUM(R.refund_Amt) AS total_refund_amt,COALESCE(A.agency_name, 'OTHER') AS agency_name FROM fss_paccount_refund R LEFT JOIN fss_paccount_pay P ON R.pay_Id = P.pay_Id LEFT JOIN afl_agency_mch_rel A ON P.agent_id = A.agency_id WHERE R.insert_time >= '2024-06-01' AND R.insert_time <= CURDATE() AND R.status = 1 GROUP BY stat_date, channel_id, agency_name ORDER BY stat_date, channel_id;") | |||
List<Object[]> findByRefund601Beging(); | |||
} |
@@ -125,7 +125,7 @@ public class RefundIsAuditPageHandler extends AbstractAfterSalesManager<RefundIs | |||
// 2 获取配置状态 | |||
String configStatus = request.getConfigStatus(); | |||
if (!ObjectUtils.isEmpty(configStatus)) { | |||
ConfigStatus configStatusType = ConfigStatus.getType(type); | |||
ConfigStatus configStatusType = ConfigStatus.getType(configStatus); | |||
if (ObjectUtils.isEmpty(configStatusType)) { | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException(String.format("操作失败,配置状态值[%s]不合法", configStatus)); | |||
} |