csx 4 年之前
父節點
當前提交
d589258389
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      service/gdyb_service.go

+ 3 - 1
service/gdyb_service.go 查看文件

@@ -1242,6 +1242,8 @@ func Gdyb2503(psnNo string, insutype string, org_name string, doctor string, fix
1242 1242
 	tempTime := time.Unix(timestamp, 0)
1243 1243
 	timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
1244 1244
 
1245
+	timeFormatTwo := tempTime.Format("2006-01-02")
1246
+
1245 1247
 	// 生成输入报文
1246 1248
 	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
1247 1249
 	input := make(map[string]interface{})
@@ -1254,7 +1256,7 @@ func Gdyb2503(psnNo string, insutype string, org_name string, doctor string, fix
1254 1256
 	inputData["insu_optins"] = mdtrtarea_admvs     // 险种类型(来自1101接口返回)
1255 1257
 	inputData["ide_fixmedins_no"] = fixmedins_code // 险种类型(来自1101接口返回)
1256 1258
 	inputData["ide_fixmedins_name"] = org_name     // 险种类型(来自1101接口返回)
1257
-	inputData["hosp_ide_date"] = timeFormatOne     // 险种类型(来自1101接口返回)
1259
+	inputData["hosp_ide_date"] = timeFormatTwo     // 险种类型(来自1101接口返回)
1258 1260
 	inputData["diag_dr_codg"] = doctor_id          // 开始时间
1259 1261
 	inputData["diag_dr_name"] = doctor             // 开始时间
1260 1262
 	inputData["begndate"] = timeFormatOne          // 医师编码