This commit is contained in:
DESKTOP-KHENR06\Jsowell
2026-06-08 15:22:07 +08:00
parent d0aafd7c3e
commit 9fef3bc03f
5 changed files with 18 additions and 1 deletions

View File

@@ -38,4 +38,6 @@ public interface AdapayUnsplitRecordMapper {
List<AdapayUnsplitRecord> selectByPaymentIds(@Param("list") List<String> paymentIds);
List<AdapayUnsplitRecordVO> queryList();
List<AdapayUnsplitRecord> queryFailedList(@Param("startTime") String startTime, @Param("endTime") String endTime);
}

View File

@@ -35,4 +35,6 @@ public interface AdapayUnsplitRecordService{
List<AdapayUnsplitRecord> selectByPaymentIds(List<String> paymentIds);
List<AdapayUnsplitRecordVO> queryList();
List<AdapayUnsplitRecord> queryFailedList(String startTime, String endTime);
}

View File

@@ -7,6 +7,7 @@ import com.jsowell.pile.vo.AdapayUnsplitRecordVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
@Service
public class AdapayUnsplitRecordServiceImpl implements AdapayUnsplitRecordService{
@@ -92,4 +93,9 @@ public class AdapayUnsplitRecordServiceImpl implements AdapayUnsplitRecordServic
return adapayUnsplitRecordMapper.queryList();
}
@Override
public List<AdapayUnsplitRecord> queryFailedList(String startTime, String endTime) {
return adapayUnsplitRecordMapper.queryFailedList(startTime, endTime);
}
}

View File

@@ -761,4 +761,10 @@
refund_flag IS NULL OR split_flag IS NULL
order by pay_time
</select>
<select id="queryFailedList" resultMap="BaseResultMap">
select * from adapay_unsplit_record
where pay_time >= #{startTime} and pay_time &lt;= #{endTime}
and (refund_flag = 'FAILED' or split_flag = 'FAILED')
</select>
</mapper>