|
@@ -28,13 +28,7 @@ public interface TransferMapper extends BaseMapper<TransferEntity> {
|
|
|
" COALESCE(SUM(CASE WHEN created_time >= #{weekAgo} THEN amount ELSE 0 END), 0) AS amount_of_7days," +
|
|
" COALESCE(SUM(CASE WHEN created_time >= #{weekAgo} THEN amount ELSE 0 END), 0) AS amount_of_7days," +
|
|
|
" COALESCE(SUM(CASE WHEN created_time >= #{today} THEN amount ELSE 0 END), 0) AS amount_of_today " +
|
|
" COALESCE(SUM(CASE WHEN created_time >= #{today} THEN amount ELSE 0 END), 0) AS amount_of_today " +
|
|
|
"FROM pay_transfer ${ew.customSqlSegment}")
|
|
"FROM pay_transfer ${ew.customSqlSegment}")
|
|
|
- /** payee_info/ext_info 作为 json 列需要 ::jsonb 显式类型转换 */
|
|
|
|
|
- @Insert("INSERT INTO pay_transfer (id, status, out_biz_no, account_book_id, amount, order_title, " +
|
|
|
|
|
- "payee_info, payee_type, order_no, fund_order_id, error_code, error_msg, remark, " +
|
|
|
|
|
- "ext_info, retry_count, next_retry_at, enterprise_id, tenant_id, created_time, updated_time) " +
|
|
|
|
|
- "VALUES (#{id}, #{status}, #{outBizNo}, #{accountBookId}, #{amount}, #{orderTitle}, " +
|
|
|
|
|
- "#{payeeInfo}::jsonb, #{payeeType}, #{orderNo}, #{fundOrderId}, #{errorCode}, #{errorMsg}, #{remark}, " +
|
|
|
|
|
- "#{extInfo}::jsonb, #{retryCount}, #{nextRetryAt}, #{enterpriseId}, #{tenantId}, #{createdTime}, #{updatedTime})")
|
|
|
|
|
|
|
+ /** payee_info/ext_info 作为 json 列需要 ::jsonb 显式类型转换,XML mapper 定义 */
|
|
|
int insertTransfer(TransferEntity entity);
|
|
int insertTransfer(TransferEntity entity);
|
|
|
|
|
|
|
|
Map<String, BigDecimal> statAmounts(
|
|
Map<String, BigDecimal> statAmounts(
|