This commit is contained in:
2026-01-16 18:37:47 +08:00
parent 96dfa3d758
commit 96d530a67d
12 changed files with 959 additions and 156 deletions

View File

@@ -97,8 +97,6 @@ CREATE TABLE component_report_downloads (
sub_product_ids TEXT, -- JSON数组存储子产品ID列表组合包使用
sub_product_codes TEXT, -- JSON数组存储子产品编号列表
download_price DECIMAL(10,2) NOT NULL, -- 实际支付价格
original_price DECIMAL(10,2) NOT NULL, -- 原始总价
discount_amount DECIMAL(10,2) DEFAULT 0, -- 减免金额
payment_order_id VARCHAR(64), -- 支付订单号(关联充值记录)
payment_type VARCHAR(20), -- 支付类型alipay, wechat
payment_status VARCHAR(20) DEFAULT 'pending', -- pending, success, failed

View File

@@ -712,6 +712,13 @@ func (s *ComponentReportOrderService) DownloadFile(ctx context.Context, orderID
zap.String("product_id", purchaseOrder.ProductID))
// 创建新的下载记录
// 设置原始价格组合包使用UIComponentPrice单品使用Price
var originalPrice decimal.Decimal
if product.IsPackage {
originalPrice = product.UIComponentPrice
} else {
originalPrice = product.Price
}
newDownload := &productEntities.ComponentReportDownload{
UserID: purchaseOrder.UserID,
ProductID: purchaseOrder.ProductID,
@@ -719,6 +726,7 @@ func (s *ComponentReportOrderService) DownloadFile(ctx context.Context, orderID
ProductName: product.Name,
OrderID: &purchaseOrder.ID,
OrderNumber: &purchaseOrder.OrderNo,
OriginalPrice: originalPrice, // 设置原始价格
DownloadPrice: purchaseOrder.Amount, // 设置下载价格(从订单获取)
ExpiresAt: calculateExpiryTime(),
}
@@ -847,6 +855,13 @@ func (s *ComponentReportOrderService) createDownloadRecordForPaidOrder(ctx conte
}
// 创建新的下载记录
// 设置原始价格组合包使用UIComponentPrice单品使用Price
var originalPrice decimal.Decimal
if product.IsPackage {
originalPrice = product.UIComponentPrice
} else {
originalPrice = product.Price
}
download := &productEntities.ComponentReportDownload{
UserID: purchaseOrder.UserID,
ProductID: purchaseOrder.ProductID,
@@ -854,6 +869,7 @@ func (s *ComponentReportOrderService) createDownloadRecordForPaidOrder(ctx conte
ProductName: product.Name,
OrderID: &purchaseOrder.ID,
OrderNumber: &purchaseOrder.OrderNo,
OriginalPrice: originalPrice, // 设置原始价格
DownloadPrice: purchaseOrder.Amount, // 设置下载价格(从订单获取)
ExpiresAt: calculateExpiryTime(), // 30天后过期
}

View File

@@ -1251,9 +1251,11 @@ func NewContainer() *Container {
// 组件报告订单处理器
func(
componentReportOrderService *product.ComponentReportOrderService,
purchaseOrderRepo domain_finance_repo.PurchaseOrderRepository,
config *config.Config,
logger *zap.Logger,
) *handlers.ComponentReportOrderHandler {
return handlers.NewComponentReportOrderHandler(componentReportOrderService, logger)
return handlers.NewComponentReportOrderHandler(componentReportOrderService, purchaseOrderRepo, config, logger)
},
// UI组件HTTP处理器
func(

View File

@@ -24,6 +24,7 @@ type ComponentReportDownload struct {
SubProductCodes string `gorm:"type:text" comment:"子产品编号列表JSON数组"`
// 价格相关字段
OriginalPrice decimal.Decimal `gorm:"type:decimal(10,2);default:0.00" comment:"原始价格组合包使用UIComponentPrice单品使用Price"`
DownloadPrice decimal.Decimal `gorm:"type:decimal(10,2);default:0.00" comment:"实际支付价格"`
// 下载相关信息

View File

@@ -6,25 +6,34 @@ import (
"strings"
"github.com/gin-gonic/gin"
"github.com/shopspring/decimal"
"go.uber.org/zap"
"tyapi-server/internal/application/product"
"tyapi-server/internal/config"
financeRepositories "tyapi-server/internal/domains/finance/repositories"
)
// ComponentReportOrderHandler 组件报告订单处理器
type ComponentReportOrderHandler struct {
service *product.ComponentReportOrderService
logger *zap.Logger
service *product.ComponentReportOrderService
purchaseOrderRepo financeRepositories.PurchaseOrderRepository
config *config.Config
logger *zap.Logger
}
// NewComponentReportOrderHandler 创建组件报告订单处理器
func NewComponentReportOrderHandler(
service *product.ComponentReportOrderService,
purchaseOrderRepo financeRepositories.PurchaseOrderRepository,
config *config.Config,
logger *zap.Logger,
) *ComponentReportOrderHandler {
return &ComponentReportOrderHandler{
service: service,
logger: logger,
service: service,
purchaseOrderRepo: purchaseOrderRepo,
config: config,
logger: logger,
}
}
@@ -241,6 +250,40 @@ func (h *ComponentReportOrderHandler) CreatePaymentOrder(c *gin.Context) {
zap.String("pay_url", response.PayURL),
)
// 开发环境下,自动将订单状态设置为已支付
if h.config != nil && h.config.App.IsDevelopment() {
h.logger.Info("开发环境:自动设置订单为已支付状态",
zap.String("order_id", response.OrderID),
zap.String("order_no", response.OrderNo))
// 获取订单信息
purchaseOrder, err := h.purchaseOrderRepo.GetByID(c.Request.Context(), response.OrderID)
if err != nil {
h.logger.Error("开发环境:获取订单信息失败", zap.Error(err), zap.String("order_id", response.OrderID))
} else {
// 解析金额
amount, err := decimal.NewFromString(response.Amount)
if err != nil {
h.logger.Error("开发环境:解析订单金额失败", zap.Error(err), zap.String("amount", response.Amount))
} else {
// 标记为已支付(使用开发环境的模拟交易号)
tradeNo := "DEV_" + response.OrderNo
purchaseOrder.MarkPaid(tradeNo, "", "", amount, amount)
// 更新订单状态
err = h.purchaseOrderRepo.Update(c.Request.Context(), purchaseOrder)
if err != nil {
h.logger.Error("开发环境:更新订单状态失败", zap.Error(err), zap.String("order_id", response.OrderID))
} else {
h.logger.Info("开发环境:订单状态已自动设置为已支付",
zap.String("order_id", response.OrderID),
zap.String("order_no", response.OrderNo),
zap.String("trade_no", tradeNo))
}
}
}
}
c.JSON(http.StatusOK, gin.H{
"code": 200,
"data": response,
@@ -300,7 +343,7 @@ func (h *ComponentReportOrderHandler) DownloadFile(c *gin.Context) {
})
return
}
h.logger.Info("获取用户ID", zap.String("user_id", userID))
orderID := c.Param("orderId")
@@ -312,17 +355,17 @@ func (h *ComponentReportOrderHandler) DownloadFile(c *gin.Context) {
})
return
}
h.logger.Info("获取订单ID", zap.String("order_id", orderID))
filePath, err := h.service.DownloadFile(c.Request.Context(), orderID)
if err != nil {
h.logger.Error("下载文件失败", zap.Error(err), zap.String("order_id", orderID), zap.String("user_id", userID))
// 根据错误类型返回不同的状态码和消息
errorMessage := err.Error()
statusCode := http.StatusInternalServerError
// 根据错误消息判断具体错误类型
if strings.Contains(errorMessage, "购买订单不存在") {
statusCode = http.StatusNotFound
@@ -331,7 +374,7 @@ func (h *ComponentReportOrderHandler) DownloadFile(c *gin.Context) {
} else if strings.Contains(errorMessage, "生成报告文件失败") {
statusCode = http.StatusInternalServerError
}
c.JSON(statusCode, gin.H{
"code": statusCode,
"message": "下载文件失败",
@@ -339,9 +382,9 @@ func (h *ComponentReportOrderHandler) DownloadFile(c *gin.Context) {
})
return
}
h.logger.Info("成功获取文件路径",
zap.String("order_id", orderID),
h.logger.Info("成功获取文件路径",
zap.String("order_id", orderID),
zap.String("user_id", userID),
zap.String("file_path", filePath))

View File

@@ -1,102 +0,0 @@
package component_report
import (
"net/http"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
finance_entities "tyapi-server/internal/domains/finance/entities"
)
// CheckPaymentStatusFixed 修复版检查支付状态方法
func (h *ComponentReportHandler) CheckPaymentStatusFixed(c *gin.Context) {
userID := c.GetString("user_id")
if userID == "" {
c.JSON(http.StatusUnauthorized, gin.H{
"code": 401,
"message": "用户未登录",
})
return
}
orderID := c.Param("orderId")
if orderID == "" {
c.JSON(http.StatusBadRequest, gin.H{
"code": 400,
"message": "订单ID不能为空",
})
return
}
// 根据订单ID查询下载记录
download, err := h.componentReportRepo.GetDownloadByID(c.Request.Context(), orderID)
if err != nil {
h.logger.Error("查询下载记录失败", zap.Error(err), zap.String("order_id", orderID))
c.JSON(http.StatusNotFound, gin.H{
"code": 404,
"message": "订单不存在",
})
return
}
// 验证订单是否属于当前用户
if download.UserID != userID {
c.JSON(http.StatusForbidden, gin.H{
"code": 403,
"message": "无权访问此订单",
})
return
}
// 使用购买订单状态来判断支付状态
var paymentStatus string
var canDownload bool
// 优先使用OrderID查询购买订单状态
if download.OrderID != nil {
// 查询购买订单状态
purchaseOrder, err := h.purchaseOrderRepo.GetByID(c.Request.Context(), *download.OrderID)
if err != nil {
h.logger.Error("查询购买订单失败", zap.Error(err), zap.String("order_id", *download.OrderID))
paymentStatus = "unknown"
} else {
// 根据购买订单状态设置支付状态
switch purchaseOrder.Status {
case finance_entities.PurchaseOrderStatusPaid:
paymentStatus = "success"
canDownload = true
case finance_entities.PurchaseOrderStatusCreated:
paymentStatus = "pending"
canDownload = false
case finance_entities.PurchaseOrderStatusCancelled:
paymentStatus = "cancelled"
canDownload = false
case finance_entities.PurchaseOrderStatusFailed:
paymentStatus = "failed"
canDownload = false
default:
paymentStatus = "unknown"
canDownload = false
}
}
} else if download.OrderNumber != nil {
// 兼容旧的支付订单逻辑
paymentStatus = "success" // 简化处理,有支付订单号就认为已支付
canDownload = true
} else {
paymentStatus = "pending"
canDownload = false
}
// 检查是否过期
if download.IsExpired() {
canDownload = false
}
c.JSON(http.StatusOK, CheckPaymentStatusResponse{
OrderID: download.ID,
PaymentStatus: paymentStatus,
CanDownload: canDownload,
})
}

View File

@@ -300,7 +300,7 @@ func (h *ComponentReportHandler) GenerateAndDownloadZip(c *gin.Context) {
return
}
// 直接检查用户是否有已支付的购买记录,而不是查询下载记录
// 直接检查用户是否有已支付的购买记录
orders, _, err := h.purchaseOrderRepo.GetByUserID(c.Request.Context(), userID, 100, 0)
if err != nil {
h.logger.Error("查询用户购买记录失败", zap.Error(err), zap.String("user_id", userID), zap.String("product_id", req.ProductID))
@@ -384,10 +384,12 @@ func (h *ComponentReportHandler) GenerateAndDownloadZip(c *gin.Context) {
}
// 更新下载次数和最后下载时间
err = h.componentReportRepo.IncrementDownloadCount(c.Request.Context(), download.ID)
if err != nil {
h.logger.Warn("更新下载次数失败", zap.Error(err))
// 不影响下载流程,只记录警告
if download != nil {
err = h.componentReportRepo.IncrementDownloadCount(c.Request.Context(), download.ID)
if err != nil {
h.logger.Warn("更新下载次数失败", zap.Error(err))
// 不影响下载流程,只记录警告
}
}
// 清理过期的缓存(非阻塞方式)
@@ -979,6 +981,13 @@ func (h *ComponentReportHandler) CreatePaymentOrder(c *gin.Context) {
}
// 创建下载记录
// 设置原始价格组合包使用UIComponentPrice单品使用Price
var originalPrice decimal.Decimal
if product.IsPackage {
originalPrice = product.UIComponentPrice
} else {
originalPrice = product.Price
}
download := &entities.ComponentReportDownload{
UserID: userID,
ProductID: productID,
@@ -989,7 +998,8 @@ func (h *ComponentReportHandler) CreatePaymentOrder(c *gin.Context) {
// 关联购买订单ID
OrderID: &createdPurchaseOrder.ID,
OrderNumber: &outTradeNo,
DownloadPrice: finalPrice, // 设置下载价格
OriginalPrice: originalPrice, // 设置原始价格
DownloadPrice: finalPrice, // 设置下载价格
}
// 记录创建前的详细信息用于调试
@@ -1384,6 +1394,13 @@ func (h *ComponentReportHandler) createDownloadRecordIfEligible(ctx context.Cont
}
// 3. 创建下载记录
// 设置原始价格组合包使用UIComponentPrice单品使用Price
var originalPrice decimal.Decimal
if product.IsPackage {
originalPrice = product.UIComponentPrice
} else {
originalPrice = product.Price
}
download := &entities.ComponentReportDownload{
UserID: userID,
ProductID: productID,
@@ -1391,6 +1408,7 @@ func (h *ComponentReportHandler) createDownloadRecordIfEligible(ctx context.Cont
ProductName: product.Name,
OrderID: &validOrder.ID, // 添加OrderID字段
OrderNumber: &validOrder.OrderNo, // 使用OrderNumber字段
OriginalPrice: originalPrice, // 设置原始价格
DownloadPrice: validOrder.Amount, // 设置下载价格(从订单获取)
ExpiresAt: calculateExpiryTime(), // 从创建日起30天
}
@@ -1563,6 +1581,13 @@ func (h *ComponentReportHandler) createDownloadRecordForPaidOrder(ctx context.Co
}
// 创建下载记录
// 设置原始价格组合包使用UIComponentPrice单品使用Price
var originalPrice decimal.Decimal
if product.IsPackage {
originalPrice = product.UIComponentPrice
} else {
originalPrice = product.Price
}
download := &entities.ComponentReportDownload{
UserID: order.UserID,
ProductID: order.ProductID,
@@ -1570,7 +1595,8 @@ func (h *ComponentReportHandler) createDownloadRecordForPaidOrder(ctx context.Co
ProductName: order.ProductName,
OrderID: &order.ID,
OrderNumber: &order.OrderNo,
DownloadPrice: order.Amount, // 设置下载价格(从订单获取)
OriginalPrice: originalPrice, // 设置原始价格
DownloadPrice: order.Amount, // 设置下载价格(从订单获取)
ExpiresAt: calculateExpiryTime(),
}

View File

@@ -124,39 +124,30 @@ func (h *ComponentReportHandlerFixed) CheckPaymentStatusFixed(c *gin.Context) {
var paymentStatus string
var canDownload bool
if download.OrderID != nil {
// 查询购买订单状态
purchaseOrder, err := h.purchaseOrderRepo.GetByID(c.Request.Context(), *download.OrderID)
if err != nil {
h.logger.Error("查询购买订单失败", zap.Error(err), zap.String("OrderID", *download.OrderID))
paymentStatus = "unknown"
} else {
// 根据购买订单状态设置支付状态
switch purchaseOrder.Status {
case finance_entities.PurchaseOrderStatusPaid:
paymentStatus = "success"
canDownload = true
case finance_entities.PurchaseOrderStatusCreated:
paymentStatus = "pending"
canDownload = false
case finance_entities.PurchaseOrderStatusCancelled:
paymentStatus = "cancelled"
canDownload = false
case finance_entities.PurchaseOrderStatusFailed:
paymentStatus = "failed"
canDownload = false
default:
paymentStatus = "unknown"
canDownload = false
}
}
} else if download.OrderNumber != nil {
// 兼容旧的支付订单逻辑
paymentStatus = "success" // 简化处理,有支付订单号就认为已支付
canDownload = true
// 查询购买订单状态
purchaseOrder, err := h.purchaseOrderRepo.GetByID(c.Request.Context(), *download.OrderID)
if err != nil {
h.logger.Error("查询购买订单失败", zap.Error(err), zap.String("OrderID", *download.OrderID))
paymentStatus = "unknown"
} else {
paymentStatus = "pending"
canDownload = false
// 根据购买订单状态设置支付状态
switch purchaseOrder.Status {
case finance_entities.PurchaseOrderStatusPaid:
paymentStatus = "success"
canDownload = true
case finance_entities.PurchaseOrderStatusCreated:
paymentStatus = "pending"
canDownload = false
case finance_entities.PurchaseOrderStatusCancelled:
paymentStatus = "cancelled"
canDownload = false
case finance_entities.PurchaseOrderStatusFailed:
paymentStatus = "failed"
canDownload = false
default:
paymentStatus = "unknown"
canDownload = false
}
}
// 检查是否过期

View File

@@ -0,0 +1,17 @@
-- 删除 component_report_downloads 表中的 original_price 字段
-- 执行时间: 2026-01-16
-- 检查字段是否存在,如果存在则删除
-- 注意:不同数据库的语法可能不同,请根据实际使用的数据库调整
-- PostgreSQL 语法
ALTER TABLE component_report_downloads DROP COLUMN IF EXISTS original_price;
-- MySQL 语法(如果使用 MySQL
-- ALTER TABLE component_report_downloads DROP COLUMN original_price;
-- 验证:查询表结构确认字段已删除
-- SELECT column_name, data_type
-- FROM information_schema.columns
-- WHERE table_name = 'component_report_downloads'
-- AND column_name = 'original_price';

View File

@@ -0,0 +1,811 @@
[
{
"feature": {
"featureName": "人企关系加强版",
"sort": 1
},
"data": {
"apiID": "QYGL3F8E",
"data": {
"items": [
{
"abnormal_info": {},
"basicInfo": {
"apprdate": "2025-11-27",
"base": "han",
"candate": "",
"city": "xxxxx",
"companyOrgType": "有限责任公司(自然人投资或控股)",
"creditCode": "xxxxx",
"district": "秀xxx区",
"estiblishTime": "2024-06-20",
"his_staffList": {
"result": [
{
"name": "xxxx",
"type": "2",
"typeJoin": [
"执行董事兼总经理"
]
}
]
},
"industry": "xxxxxx",
"industry_code": "L",
"legalPersonName": "xxxx",
"name": "xxxxx有限公司",
"nic_code": "L7281",
"nic_name": "租赁和商务服务业-商务服务业-会议、展览及相关服务-科技会展服务",
"opscope": "许可经营项目在线数据处理与交易处理业务经营类电子商务互联网游戏服务第二类增值电信业务互联网信息服务许可经营项目凭许可证件经营一般经营项目品牌管理5G通信技术服务人工智能应用软件开发互联网安全服务量子计算技术服务技术服务、技术开发、技术咨询、技术交流、技术转让、技术推广网络技术服务专业设计服务互联网数据服务互联网销售除销售需要许可的商品食品互联网销售仅销售预包装食品软件开发动漫游戏开发计算机软硬件及辅助设备零售计算机软硬件及辅助设备批发计算器设备销售机械设备销售五金产品零售五金产品批发电子产品销售人工智能硬件销售通信设备销售光通信设备销售通信设备制造信息系统集成服务图文设计制作广告设计、代理广告发布数字内容制作服务不含出版发行数字文化创意软件开发软件销售市场营销策划企业管理咨询信息咨询服务不含许可类信息咨询服务市场调查不含涉外调查工业设计服务玩具销售化妆品零售化妆品批发摄像及视频制作服务平面设计法律咨询不含依法须律师事务所执业许可的业务旅游开发项目策划咨询体育用品及器材批发体育用品及器材零售户外用品销售体育赛事策划体育健康服务组织体育表演活动体育中介代理服务信息技术咨询服务数据处理服务数据处理和存储支持服务大数据服务云计算装备技术服务电子、机械设备维护不含特种设备智能机器人的研发货物进出口技术进出口食品进出口经营范围中的一般经营项目依法自主开展经营活动通过国家企业信用信息公示系统海南向社会公示",
"province": "xxx省",
"reccap": 0,
"reccapcur": "人民币",
"regCapital": "100.000000万人民币",
"regCapitalCurrency": "人民币",
"regNumber": "4601xxxxx1916",
"regStatus": "存续(在营、开业、在册)",
"regorg": "xxxxxx督管理局",
"revdate": "",
"type": "1"
},
"financing_history": {},
"fsource": "1",
"his_stockHolderItem": {
"investDate": "2025-11-27",
"investRate": "",
"orgHolderName": "xxx",
"orgHolderType": "xxxx人",
"subscriptAmt": ""
},
"invest_history": {},
"lawsuit_info": {
"entout": {
"msg": "没有找到"
},
"sxbzxr": {
"msg": "没有找到"
},
"xgbzxr": {
"msg": "没有找到"
}
},
"orgName": "海xxxx限公司",
"own_tax": {},
"pName": "xxx",
"punishment_info": {},
"relationship": [
"his_sh",
"his_tm"
],
"tax_contravention": {}
}
],
"total": 1
}
}
},
{
"feature": {
"featureName": "全景雷达",
"sort": 2
},
"data": {
"apiID": "JRZQ7F1A",
"data": {
"apply_report_detail": {
"A22160001": "503",
"A22160002": "76",
"A22160003": "38",
"A22160004": "11",
"A22160005": "13",
"A22160006": "90",
"A22160007": "2023-05",
"A22160008": "15",
"A22160009": "33",
"A22160010": "48"
},
"behavior_report_detail": {
"B22170001": "547",
"B22170002": "1",
"B22170003": "3",
"B22170004": "7",
"B22170005": "20",
"B22170006": "32",
"B22170007": "(0,500)",
"B22170008": "[2000,3000)",
"B22170009": "[10000,20000)",
"B22170010": "[30000,50000)",
"B22170011": "[50000,+)",
"B22170012": "11",
"B22170013": "7",
"B22170014": "2",
"B22170015": "0",
"B22170016": "1",
"B22170017": "2",
"B22170018": "3",
"B22170019": "6",
"B22170020": "7",
"B22170021": "6",
"B22170022": "7",
"B22170023": "0",
"B22170024": "0",
"B22170025": "4",
"B22170026": "8",
"B22170027": "9",
"B22170028": "4",
"B22170029": "5",
"B22170030": "5",
"B22170031": "[3000,5000)",
"B22170032": "[5000,10000)",
"B22170033": "[5000,10000)",
"B22170034": "70%",
"B22170035": "4",
"B22170036": "14",
"B22170037": "21",
"B22170038": "35",
"B22170039": "102",
"B22170040": "(0,500)",
"B22170041": "[500,1000)",
"B22170042": "[500,1000)",
"B22170043": "[10000,20000)",
"B22170044": "[30000,50000)",
"B22170045": "4",
"B22170046": "6",
"B22170047": "8",
"B22170048": "35",
"B22170049": "168",
"B22170050": "(7,15]",
"B22170051": "82",
"B22170052": "24",
"B22170053": "720",
"B22170054": "2023-04"
},
"current_report_detail": {
"C22180001": "0",
"C22180002": "0",
"C22180003": "0",
"C22180004": "0",
"C22180005": "0",
"C22180006": "0",
"C22180007": "5",
"C22180008": "9",
"C22180009": "12600",
"C22180010": "6120",
"C22180011": "10600",
"C22180012": "80"
}
}
}
},
{
"feature": {
"featureName": "特殊名单验证B",
"sort": 3
},
"data": {
"apiID": "JRZQ8A2D",
"data": {
"cell": {
"nbank_bad": "0",
"nbank_bad_allnum": "1",
"nbank_bad_time": "2",
"nbank_finlea_lost": "0",
"nbank_finlea_lost_allnum": "4",
"nbank_finlea_lost_time": "5",
"nbank_lost": "0",
"nbank_lost_allnum": "4",
"nbank_lost_time": "5",
"nbank_other_bad": "0",
"nbank_other_bad_allnum": "1",
"nbank_other_bad_time": "2"
},
"id": {
"court_executed": "0",
"court_executed_allnum": "5",
"court_executed_time": "2"
}
}
}
},
{
"feature": {
"featureName": "个人司法涉诉查询",
"sort": 4
},
"data": {
"apiID": "FLXG7E8F",
"data": {
"judicial_data": {
"breachCaseList": [
{
"caseNumber": "(2021)京0113执****号",
"concreteDetails": "有履⾏能⼒⽽拒不履⾏⽣效法律⽂书确定义务",
"enforcementBasisNumber": "(2020)京0113⺠初9****",
"enforcementBasisOrganization": "京海市顺义区⼈⺠法院",
"estimatedJudgementAmount": 109455,
"executiveCourt": "京海市顺义区⼈⺠法院",
"fileDate": "2021-02-23",
"fulfillStatus": "全部未履⾏",
"id": "f343e0d314e840d93684fa9a90f144cc",
"issueDate": "2021-02-23",
"obligation": "被告靳帅偿还原告王丹霞借元,于本判决⽣效之⽇起七⽇内执⾏。",
"province": "北京",
"sex": "男性"
},
{
"caseNumber": "(2022)京0113执5190号",
"concreteDetails": "有履⾏能⼒⽽拒不履⾏⽣效法律⽂书确定义务",
"enforcementBasisNumber": "(2022)京0113刑初****",
"enforcementBasisOrganization": "京海市顺义区⼈⺠法院",
"estimatedJudgementAmount": 18110,
"executiveCourt": "京海市顺义区⼈⺠法院",
"fileDate": "2022-07-12",
"fulfillStatus": "全部未履⾏",
"id": "6cc2453f4e8cccf3ecd441ae08dd2183",
"issueDate": "2022-07-12",
"obligation": "⼀、被告⼈靳帅犯盗窃罪判处有期徒刑⼀年三个⽉并处罚⾦⼈⺠币五千元刑期从判决执⾏之⽇起计算判决执⾏以前先⾏羁押的羁押⼀⽇折抵刑期⼀⽇即⾃2022年3⽉6⽇起⾄2023年6⽉5⽇⽌。罚⾦于判决⽣效之⽇起五⽇内缴纳。\\n⼆、责令被告⼈靳帅退赔被害⼈孙学⺠的经济损失⼈⺠币⼗元退赔被害⼈张树起的经济损失⼈⺠币五百元退赔被害⼈冯⽂⻰的经济损失⼈⺠币⼀万⼆千六百元。",
"province": "北京",
"sex": "男性"
}
],
"consumptionRestrictionList": [
{
"caseNumber": "2023京0113执*****号",
"executiveCourt": "京海市顺义区⼈⺠法院",
"id": "0b733c6c503f740663422e44bc434a66",
"issueDate": "2023-11-20"
},
{
"caseNumber": "(2021)京0113执****号",
"executiveCourt": "京海市顺义区⼈⺠法院",
"id": "3fa335ec744dfb1d720f996e9d2b6e12",
"issueDate": "2021-08-10"
},
{
"caseNumber": "(2022)京0113执****号",
"executiveCourt": "京海市顺义区⼈⺠法院",
"id": "84fa0cf34f947eb0afd2f54ebe589e35",
"issueDate": "2022-07-24"
},
{
"caseNumber": "(2021)京0113执****号",
"executiveCourt": "京海市顺义区⼈⺠法院",
"id": "2e53a8808313ba87f15bf30ae76cd2d6",
"issueDate": "2021-11-19"
}
],
"lawsuitStat": {
"administrative": {},
"bankrupt": {},
"cases_tree": {
"civil": [
{
"c_ah": "2013年⻄⺠初字第*****号",
"case_type": 300,
"n_ajbs": "257ebb5c348de00883c872d636cf3128",
"stage_type": 1
},
{
"c_ah": "2013年⻄⺠初字第0***号",
"case_type": 300,
"n_ajbs": "b6d8144d729f7811f4ea7838ef69baa7",
"stage_type": 1
},
{
"c_ah": "2020京0113⺠初****号",
"case_type": 300,
"n_ajbs": "5a0867d91ce580d1239e1f2063912584",
"next": {
"c_ah": "2021京0113执****号",
"case_type": 1000,
"n_ajbs": "54e45b851f5baedc7d249ab755e39fbe",
"stage_type": 5
},
"stage_type": 1
}
],
"criminal": [
{
"c_ah": "2009年顺刑初字第*****号",
"case_type": 200,
"n_ajbs": "e084cc09e364a6c2c02f82bd49a3bcfd",
"stage_type": 1
},
{
"c_ah": "2021京0113刑初****号",
"case_type": 200,
"n_ajbs": "08c9087760d19e4e46ea0a5e1ff8907f",
"next": {
"c_ah": "2021京0113执****号",
"case_type": 1000,
"n_ajbs": "3e8392c51bbc1b7fb8e050284c89d220",
"stage_type": 5
},
"stage_type": 1
},
{
"c_ah": "2022京0113刑初****号",
"case_type": 200,
"n_ajbs": "1da42d08e89cf1907b0ab30239437060",
"next": {
"c_ah": "2022京0113执****号",
"case_type": 1000,
"n_ajbs": "c345a052409a2c0ebaecd6cee45b8050",
"stage_type": 5
},
"stage_type": 1
},
{
"c_ah": "2023京0113刑****号",
"case_type": 200,
"n_ajbs": "91b1aa92abba978b9bb583de92445045",
"next": {
"c_ah": "2023京0113执1****号",
"case_type": 1000,
"n_ajbs": "8dda746bb87c72f76d49a2cacee0efa0",
"stage_type": 5
},
"stage_type": 1
}
]
},
"civil": {
"cases": [
{
"c_ah": "2013年⻄⺠初字第******号",
"c_dsrxx": [
{
"c_mc": "中国建设银⾏股份有限公司京海市分⾏",
"n_dsrlx": "企业组织",
"n_ssdw": "原告"
},
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被告"
}
],
"c_id": "ea3566e092ef9bf659659b2c07855d3e",
"c_slfsxx": "-1,,,;1,2013-06-19 09:00:00,1,1",
"c_ssdy": "京海市",
"d_jarq": "2013-06-18",
"d_larq": "2013-03-08",
"n_ajbs": "b6d8144d729f7811f4ea7838ef69baa7",
"n_ajjzjd": "已结案",
"n_ajlx": "⺠事⼀审",
"n_crc": 451683830,
"n_jaay": "合同、准合同纠纷",
"n_jaay_tree": "合同、准合同纠纷,合同纠纷,银⾏卡纠纷,信⽤卡纠纷",
"n_jabdje": "3304.16",
"n_jabdje_level": 1,
"n_jafs": "准予撤诉",
"n_jbfy": "京海市⻄城区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "合同、准合同纠纷",
"n_laay_tree": "合同、准合同纠纷,合同纠纷,银⾏卡纠纷,信⽤卡纠纷",
"n_pj_victory": "未知",
"n_qsbdje": "3304.16",
"n_qsbdje_level": 1,
"n_slcx": "⼀审",
"n_ssdw": "被告",
"n_ssdw_ys": "被告"
},
{
"c_ah": "(2020)京0113⺠初*****号",
"c_dsrxx": [
{
"c_mc": "王丹霞",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "原告"
},
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被告"
}
],
"c_id": "df1fd042f1545a51c6460d0cb4005140",
"c_slfsxx": "1,2020-11-25 11:10:17,诉调第⼗⼀法庭,1",
"c_ssdy": "京海市",
"d_jarq": "2020-12-04",
"d_larq": "2020-07-29",
"n_ajbs": "5a0867d91ce580d1239e1f2063912584",
"n_ajjzjd": "已结案",
"n_ajlx": "⺠事⼀审",
"n_crc": 4035395111,
"n_jaay": "合同、准合同纠纷",
"n_jaay_tag": "合同纠纷",
"n_jaay_tree": "合同、准合同纠纷,合同纠纷,借款合同纠纷,⺠间借贷纠纷",
"n_jabdje": 109455,
"n_jabdje_level": 11,
"n_jafs": "判决",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "合同、准合同纠纷",
"n_laay_tag": "合同纠纷",
"n_laay_tree": "合同、准合同纠纷,合同纠纷,借款合同纠纷,⺠间借贷纠纷",
"n_pj_victory": "未知",
"n_qsbdje": 110000,
"n_qsbdje_level": 11,
"n_slcx": "⼀审",
"n_ssdw": "被告",
"n_ssdw_ys": "被告"
}
],
"count": {
"area_stat": "京海市(3)",
"ay_stat": "合同、准合同纠纷(3)",
"count_beigao": 3,
"count_jie_beigao": 3,
"count_jie_other": 0,
"count_jie_total": 3,
"count_jie_yuangao": 0,
"count_other": 0,
"count_total": 3,
"count_wei_beigao": 0,
"count_wei_other": 0,
"count_wei_total": 0,
"count_wei_yuangao": 0,
"count_yuangao": 0,
"jafs_stat": "准予撤诉(2),判决(1)",
"larq_stat": "2013(2),2020(1)",
"money_beigao": 11,
"money_jie_beigao": 11,
"money_jie_other": 0,
"money_jie_total": 11,
"money_jie_yuangao": 0,
"money_other": 0,
"money_total": 11,
"money_wei_beigao": 0,
"money_wei_other": 0,
"money_wei_percent": 0,
"money_wei_total": 0,
"money_wei_yuangao": 0,
"money_yuangao": 0
}
},
"count": {
"area_stat": "京海市(11)",
"ay_stat": "侵犯财产罪(4),刑事(3),合同、准合同纠纷(3),未知(1)",
"count_beigao": 11,
"count_jie_beigao": 11,
"count_jie_other": 0,
"count_jie_total": 11,
"count_jie_yuangao": 0,
"count_other": 0,
"count_total": 11,
"count_wei_beigao": 0,
"count_wei_other": 0,
"count_wei_total": 0,
"count_wei_yuangao": 0,
"count_yuangao": 0,
"jafs_stat": "判决(5),终结本次执⾏程序(4),准予撤诉(2)",
"larq_stat": "2009(1),2013(2),2020(1),2021(3),2022(2),2023(2)",
"money_beigao": 11,
"money_jie_beigao": 11,
"money_jie_other": 0,
"money_jie_total": 11,
"money_jie_yuangao": 0,
"money_other": 0,
"money_total": 11,
"money_wei_beigao": 0,
"money_wei_other": 0,
"money_wei_percent": 0,
"money_wei_total": 0,
"money_wei_yuangao": 0,
"money_yuangao": 0
},
"crc": 3714068012,
"criminal": {
"cases": [
{
"c_ah": "(2021)京0113刑初*****号",
"c_dsrxx": [
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被告⼈"
}
],
"c_id": "44bc6ccd90fada8e585e27f86700696c",
"c_slfsxx": "1,2021-09-23 09:48:23,第三⼗七法庭,1",
"c_ssdy": "京海市",
"d_jarq": "2021-09-23",
"d_larq": "2021-09-16",
"n_ajbs": "08c9087760d19e4e46ea0a5e1ff8907f",
"n_ajjzjd": "已结案",
"n_ajlx": "刑事⼀审",
"n_bqqpcje_level": 0,
"n_ccxzxje_level": 0,
"n_crc": 3782814141,
"n_dzzm": "侵犯财产罪",
"n_dzzm_tree": "侵犯财产罪,盗窃罪",
"n_fzje_level": 0,
"n_jaay": "侵犯财产罪",
"n_jaay_tree": "侵犯财产罪,盗窃罪",
"n_jafs": "判决",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "侵犯财产罪",
"n_laay_tree": "侵犯财产罪,盗窃罪",
"n_pcjg": "给予刑事处罚",
"n_pcpcje_level": 0,
"n_slcx": "⼀审",
"n_ssdw": "被告⼈",
"n_ssdw_ys": "被告⼈"
},
{
"c_ah": "(2022)京0113刑初****号",
"c_dsrxx": [
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被告⼈"
}
],
"c_id": "8851b2565cd27bc09a00a8ecd82b3224",
"c_slfsxx": "1,2022-06-08 09:38:41,第四⼗法庭,1",
"c_ssdy": "京海市",
"d_jarq": "2022-06-17",
"d_larq": "2022-06-02",
"n_ajbs": "1da42d08e89cf1907b0ab30239437060",
"n_ajjzjd": "已结案",
"n_ajlx": "刑事⼀审",
"n_bqqpcje_level": 0,
"n_ccxzxje_level": 0,
"n_crc": 168162812,
"n_dzzm": "侵犯财产罪",
"n_dzzm_tree": "侵犯财产罪,盗窃罪",
"n_fzje_level": 0,
"n_jaay": "侵犯财产罪",
"n_jaay_tree": "侵犯财产罪,盗窃罪",
"n_jafs": "判决",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "侵犯财产罪",
"n_laay_tree": "侵犯财产罪,盗窃罪",
"n_pcjg": "给予刑事处罚",
"n_pcpcje_level": 0,
"n_slcx": "⼀审",
"n_ssdw": "被告⼈",
"n_ssdw_ys": "被告⼈"
},
{
"c_ah": "(2023)京0113刑****号",
"c_dsrxx": [
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被告⼈"
}
],
"c_id": "82c3a2095c4ee2102fe156fc6cd5c77c",
"c_slfsxx": "1,2023-10-27 09:19:41,第三⼗七法庭,1",
"c_ssdy": "京海市",
"d_jarq": "2023-10-27",
"d_larq": "2023-10-11",
"n_ajbs": "91b1aa92abba978b9bb583de92445045",
"n_ajjzjd": "已结案",
"n_ajlx": "刑事⼀审",
"n_bqqpcje_level": 0,
"n_ccxzxje_level": 0,
"n_crc": 659651411,
"n_dzzm": "侵犯财产罪",
"n_dzzm_tree": "侵犯财产罪,盗窃罪",
"n_fzje_level": 0,
"n_jaay": "侵犯财产罪",
"n_jaay_tree": "侵犯财产罪,盗窃罪",
"n_jafs": "判决",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "侵犯财产罪",
"n_laay_tree": "侵犯财产罪,盗窃罪",
"n_pcjg": "给予刑事处罚",
"n_pcpcje_level": 0,
"n_slcx": "⼀审",
"n_ssdw": "被告⼈",
"n_ssdw_ys": "被告⼈"
}
],
"count": {
"area_stat": "京海市(4)",
"ay_stat": "侵犯财产罪(4)",
"count_beigao": 4,
"count_jie_beigao": 4,
"count_jie_other": 0,
"count_jie_total": 4,
"count_jie_yuangao": 0,
"count_other": 0,
"count_total": 4,
"count_wei_beigao": 0,
"count_wei_other": 0,
"count_wei_total": 0,
"count_wei_yuangao": 0,
"count_yuangao": 0,
"jafs_stat": "判决(4)",
"larq_stat": "2009(1),2021(1),2022(1),2023(1)",
"money_beigao": 0,
"money_jie_beigao": 0,
"money_jie_other": 0,
"money_jie_total": 0,
"money_jie_yuangao": 0,
"money_other": 0,
"money_total": 0,
"money_wei_beigao": 0,
"money_wei_other": 0,
"money_wei_total": 0,
"money_wei_yuangao": 0,
"money_yuangao": 0
}
},
"implement": {
"cases": [
{
"c_ah": "(2021)京0113执2***",
"c_dsrxx": [
{
"c_mc": "王丹霞",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "申请执⾏⼈"
},
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被执⾏⼈"
}
],
"c_gkws_glah": "2020京0113⺠初***号",
"c_id": "4904d5bf89ca75a79bf7401727080c03",
"c_ssdy": "京海市",
"d_jarq": "2021-08-19",
"d_larq": "2021-02-23",
"n_ajbs": "54e45b851f5baedc7d249ab755e39fbe",
"n_ajjzjd": "已结案",
"n_ajlx": "⾸次执⾏",
"n_crc": 2505253178,
"n_jaay": "⺠事",
"n_jafs": "终结本次执⾏程序",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "⺠事",
"n_sjdwje": 0,
"n_sqzxbdje": 111260,
"n_ssdw": "被执⾏⼈"
},
{
"c_ah": "(2021)京0113执***号",
"c_dsrxx": [
{
"c_mc": "京海市顺义区⼈⺠法院",
"n_dsrlx": "企业组织",
"n_ssdw": "申请执⾏⼈"
},
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被执⾏⼈"
}
],
"c_id": "435d6483338571526e6ebb0308dc6d04",
"c_ssdy": "京海市",
"d_jarq": "2021-11-25",
"d_larq": "2021-10-26",
"n_ajbs": "3e8392c51bbc1b7fb8e050284c89d220",
"n_ajjzjd": "已结案",
"n_ajlx": "⾸次执⾏",
"n_crc": 1948524411,
"n_jaay": "刑事",
"n_jabdje": 3876,
"n_jafs": "终结本次执⾏程序",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "刑事",
"n_sjdwje": 0,
"n_sqzxbdje": 3876,
"n_ssdw": "被执⾏⼈"
},
{
"c_ah": "(2022)京0113执****号",
"c_dsrxx": [
{
"c_mc": "京海市顺义区⼈⺠法院",
"n_dsrlx": "企业组织",
"n_ssdw": "申请执⾏⼈"
},
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被执⾏⼈"
}
],
"c_id": "4683b25207c45768ed9bcead28b51036",
"c_ssdy": "京海市",
"d_jarq": "2022-08-04",
"d_larq": "2022-07-12",
"n_ajbs": "c345a052409a2c0ebaecd6cee45b8050",
"n_ajjzjd": "已结案",
"n_ajlx": "⾸次执⾏",
"n_crc": 3747572709,
"n_jaay": "刑事",
"n_jabdje": 18110,
"n_jafs": "终结本次执⾏程序",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "刑事",
"n_sjdwje": 0,
"n_sqzxbdje": 18110,
"n_ssdw": "被执⾏⼈"
},
{
"c_ah": "(2023)京0113执*****号",
"c_dsrxx": [
{
"c_mc": "京海市顺义区⼈⺠法院",
"n_dsrlx": "企业组织",
"n_ssdw": "申请执⾏⼈"
},
{
"c_mc": "靳帅",
"n_dsrlx": "⾃然⼈",
"n_ssdw": "被执⾏⼈"
}
],
"c_gkws_glah": "2023京0113刑****号",
"c_id": "30285f31d30a24a2a41cc59fcb0928bc",
"c_ssdy": "京海市",
"d_jarq": "2024-01-02",
"d_larq": "2023-11-20",
"n_ajbs": "8dda746bb87c72f76d49a2cacee0efa0",
"n_ajjzjd": "已结案",
"n_ajlx": "⾸次执⾏",
"n_crc": 2098789290,
"n_jaay": "刑事",
"n_jabdje": 4670,
"n_jafs": "终结本次执⾏程序",
"n_jbfy": "京海市顺义区⼈⺠法院",
"n_jbfy_cj": "基层法院",
"n_laay": "刑事",
"n_sjdwje": 0,
"n_sqzxbdje": 4670,
"n_ssdw": "被执⾏⼈"
}
],
"count": {
"area_stat": "京海市(4)",
"ay_stat": "刑事(3),未知(1)",
"count_beigao": 4,
"count_jie_beigao": 4,
"count_jie_other": 0,
"count_jie_total": 4,
"count_jie_yuangao": 0,
"count_other": 0,
"count_total": 4,
"count_wei_beigao": 0,
"count_wei_other": 0,
"count_wei_total": 0,
"count_wei_yuangao": 0,
"count_yuangao": 0,
"jafs_stat": "终结本次执⾏程序(4)",
"larq_stat": "2021(2),2022(1),2023(1)",
"money_beigao": 3,
"money_jie_beigao": 3,
"money_jie_other": 0,
"money_jie_total": 3,
"money_jie_yuangao": 0,
"money_other": 0,
"money_total": 3,
"money_wei_beigao": 0,
"money_wei_other": 0,
"money_wei_percent": 0,
"money_wei_total": 0,
"money_wei_yuangao": 0,
"money_yuangao": 0
}
},
"preservation": {}
}
}
}
}
}
]