libushang 3 veckor sedan
förälder
incheckning
26c7062739
1 ändrade filer med 11 tillägg och 5 borttagningar
  1. 11 5
      routers/api/yst/daiban.py

+ 11 - 5
routers/api/yst/daiban.py

@@ -17,7 +17,11 @@ router = APIRouter()
 
 
 '''
 '''
 在浏览器打开如下链接,并替换对应参数值,参数占位符为{xxx}。返回正确代码即基础校验通过。
 在浏览器打开如下链接,并替换对应参数值,参数占位符为{xxx}。返回正确代码即基础校验通过。
+文档说明
 https://bs-test.digitalgd.com.cn/yqt_back/scg/yst-ec/ec-task-record/checkTaskParam?accessToken={access_token}&accessApi={access_api}&accessPaasId={access_paasid}&accessPaasIdToken={access_paasid_token}&startTime={start_time}&endTime={end_time}
 https://bs-test.digitalgd.com.cn/yqt_back/scg/yst-ec/ec-task-record/checkTaskParam?accessToken={access_token}&accessApi={access_api}&accessPaasId={access_paasid}&accessPaasIdToken={access_paasid_token}&startTime={start_time}&endTime={end_time}
+
+实际参数
+https://bs-test.digitalgd.com.cn/yqt_back/scg/yst-ec/ec-task-record/checkTaskParam?accessToken=af53d502-20e8-11f0-895f-0242ac140002&accessApi=/ebus/yst_mmsyjjzhyjxt/api/yst/daiban/query&startTime=2021-01-01%2001:01:01&endTime=2026-01-01%2001:01:01
 '''
 '''
 
 
 class DaibanQueryReq(BaseModel):
 class DaibanQueryReq(BaseModel):
@@ -119,9 +123,7 @@ def index(
     pages = 1
     pages = 1
     hasNextPage = pageCount >= pageSize
     hasNextPage = pageCount >= pageSize
 
 
-    logger.info(records)
-
-    return {
+    resp = {
         "errcode": 0,
         "errcode": 0,
         "errmsg": "成功",
         "errmsg": "成功",
         "data": {
         "data": {
@@ -135,6 +137,10 @@ def index(
         }
         }
     }
     }
 
 
+    logger.info(resp)
+
+    return resp
+
 def new_record(data: dict):
 def new_record(data: dict):
     shixiang = data['sxmc']
     shixiang = data['sxmc']
     projectNo = data['bzid']
     projectNo = data['bzid']
@@ -216,11 +222,11 @@ def new_record(data: dict):
         # 地市区划编码
         # 地市区划编码
         'zoneCode': '4414',
         'zoneCode': '4414',
         # 办件提交时间
         # 办件提交时间
-        'applyTime': applyTime,
+        'applyTime': get_datetime_str(applyTime),
         # 办件详细信息URL
         # 办件详细信息URL
         'detailURL': detailURL,
         'detailURL': detailURL,
         # 更新时间
         # 更新时间
-        'updateTime': updateTime,
+        'updateTime': get_datetime_str(updateTime),
         # 申请人信息
         # 申请人信息
         'applyerInfo': {
         'applyerInfo': {
             # 申请人类型
             # 申请人类型