Parcourir la source

Merge remote-tracking branch 'origin/20230223_xt_api_new_branch' into 20230223_xt_api_new_branch

28169 il y a 1 an
Parent
révision
ab1932195d
7 fichiers modifiés avec 53143 ajouts et 12 suppressions
  1. 31490 0
      b.json
  2. 9987 0
      c.json
  3. 1 0
      controllers/stock_in_api_controller.go
  4. 1510 0
      e.json
  5. 9561 0
      f.json
  6. 12 12
      service/pharmacy_service.go
  7. 582 0
      zzz.json

Fichier diff supprimé car celui-ci est trop grand
+ 31490 - 0
b.json


Fichier diff supprimé car celui-ci est trop grand
+ 9987 - 0
c.json


+ 1 - 0
controllers/stock_in_api_controller.go Voir le fichier

@@ -3556,6 +3556,7 @@ func (this *StockManagerApiController) AddGoodInformation() {
3556 3556
 
3557 3557
 		retail_prices := goodNameM["retail_price"].(string)
3558 3558
 		retail_price, _ := strconv.ParseFloat(retail_prices, 64)
3559
+
3559 3560
 		if retail_price <= 0 { //名字为空则生成一条导入错误日志
3560 3561
 			err_log := models.ExportErrLog{
3561 3562
 				LogType:    5,

Fichier diff supprimé car celui-ci est trop grand
+ 1510 - 0
e.json


Fichier diff supprimé car celui-ci est trop grand
+ 9561 - 0
f.json


+ 12 - 12
service/pharmacy_service.go Voir le fichier

@@ -1438,15 +1438,15 @@ func ReplacementDrugs(orgid int64, special bool) (list []*models.ReplacementDrug
1438 1438
 	for _, v := range lib {
1439 1439
 		v := v
1440 1440
 		g.Go(func() error {
1441
-			var tmp models.Manufacturer
1442
-			err := readDb.Model(&models.Manufacturer{}).Where("id = ?", v.Manufacturer).Find(&tmp).Error
1443
-			if err != nil {
1444
-				return err
1445
-			}
1441
+			//var tmp models.Manufacturer
1442
+			//err := readDb.Model(&models.Manufacturer{}).Where("id = ?", v.Manufacturer).Find(&tmp).Error
1443
+			//if err != nil {
1444
+			//	return err
1445
+			//}
1446 1446
 			lock.Lock()
1447 1447
 			list = append(list, &models.ReplacementDrugs{
1448 1448
 				Id:   v.ID,
1449
-				Name: v.DrugName + " " + v.Dose + v.DoseUnit + "*" + config.ToString(v.MinNumber) + v.MinUnit + "/" + v.MaxUnit + " " + tmp.ManufacturerName,
1449
+				Name: v.DrugName + " " + v.Dose + v.DoseUnit + "*" + config.ToString(v.MinNumber) + v.MinUnit + "/" + v.MaxUnit + " " + v.Number,
1450 1450
 			})
1451 1451
 			lock.Unlock()
1452 1452
 			return err
@@ -1467,15 +1467,15 @@ func ReplacementDrugsT(orgid int64) (list []*models.ReplacementDrugs, err error)
1467 1467
 		return
1468 1468
 	}
1469 1469
 	for _, v := range lib {
1470
-		var tmp models.Manufacturer
1471
-		err = readDb.Model(&models.Manufacturer{}).Where("id = ?", v.Manufacturer).Find(&tmp).Error
1472
-		if err != nil {
1473
-			return
1474
-		}
1470
+		//var tmp models.Manufacturer
1471
+		//err = readDb.Model(&models.Manufacturer{}).Where("id = ?", v.Manufacturer).Find(&tmp).Error
1472
+		//if err != nil {
1473
+		//	return
1474
+		//}
1475 1475
 
1476 1476
 		list = append(list, &models.ReplacementDrugs{
1477 1477
 			Id:   v.ID,
1478
-			Name: v.DrugName + " " + v.Dose + v.DoseUnit + "*" + config.ToString(v.MinNumber) + v.MinUnit + "/" + v.PrescribingNumberUnit + " " + tmp.ManufacturerName,
1478
+			Name: v.DrugName + " " + v.Dose + v.DoseUnit + "*" + config.ToString(v.MinNumber) + v.MinUnit + "/" + v.PrescribingNumberUnit + " " + v.Number,
1479 1479
 		})
1480 1480
 	}
1481 1481
 	return

+ 582 - 0
zzz.json Voir le fichier

@@ -0,0 +1,582 @@
1
+[
2
+  {
3
+    "one": "",
4
+    "two": "1835",
5
+    "three": "2190"
6
+  },
7
+  {
8
+    "one": "国械注进20182152235",
9
+    "two": "2361",
10
+    "three": "3531"
11
+  },
12
+  {
13
+    "one": "",
14
+    "two": "2066",
15
+    "three": "2992"
16
+  },
17
+  {
18
+    "one": "国械注准20153142380",
19
+    "two": "2066",
20
+    "three": "3721"
21
+  },
22
+  {
23
+    "one": "国械注进20192022136",
24
+    "two": "1968",
25
+    "three": "2443"
26
+  },
27
+  {
28
+    "one": "国械注进20153453111",
29
+    "two": "1654",
30
+    "three": "1922"
31
+  },
32
+  {
33
+    "one": "国械注进20153103111",
34
+    "two": "1654",
35
+    "three": "2184"
36
+  },
37
+  {
38
+    "one": "国械注进20193101928",
39
+    "two": "1654",
40
+    "three": "2185"
41
+  },
42
+  {
43
+    "one": "国械注进20193101928",
44
+    "two": "1654",
45
+    "three": "2186"
46
+  },
47
+  {
48
+    "one": "国械注进20163452908",
49
+    "two": "1654",
50
+    "three": "3011"
51
+  },
52
+  {
53
+    "one": "国械注进20163452908",
54
+    "two": "1654",
55
+    "three": "3012"
56
+  },
57
+  {
58
+    "one": "国械注准20153100873",
59
+    "two": "2099",
60
+    "three": "3105"
61
+  },
62
+  {
63
+    "one": "国械注准20183101889",
64
+    "two": "2099",
65
+    "three": "3110"
66
+  },
67
+  {
68
+    "one": "国械注准20183101889",
69
+    "two": "2099",
70
+    "three": "3111"
71
+  },
72
+  {
73
+    "one": "国械注准20143101831",
74
+    "two": "1654",
75
+    "three": "3163"
76
+  },
77
+  {
78
+    "one": "国械注准20143101831",
79
+    "two": "1654",
80
+    "three": "3164"
81
+  },
82
+  {
83
+    "one": "国械注进20153103111",
84
+    "two": "1654",
85
+    "three": "3465"
86
+  },
87
+  {
88
+    "one": "国械注进20153101907",
89
+    "two": "1654",
90
+    "three": "3579"
91
+  },
92
+  {
93
+    "one": "国械注进20173100232",
94
+    "two": "1654",
95
+    "three": "4162"
96
+  },
97
+  {
98
+    "one": "国械注进20173450233",
99
+    "two": "2074",
100
+    "three": "3016"
101
+  },
102
+  {
103
+    "one": "国械注进20193101929",
104
+    "two": "1675",
105
+    "three": "1948"
106
+  },
107
+  {
108
+    "one": "国械注进20193101929",
109
+    "two": "1675",
110
+    "three": "2262"
111
+  },
112
+  {
113
+    "one": "国械注准20213100155",
114
+    "two": "2151",
115
+    "three": "3261"
116
+  },
117
+  {
118
+    "one": "国械注准20213100155",
119
+    "two": "1675",
120
+    "three": "3283"
121
+  },
122
+  {
123
+    "one": "国械注进20153451695",
124
+    "two": "2151",
125
+    "three": "3625"
126
+  },
127
+  {
128
+    "one": "国械注进20213100252",
129
+    "two": "1675",
130
+    "three": "3649"
131
+  },
132
+  {
133
+    "one": "国械注准2015314002",
134
+    "two": "2728",
135
+    "three": "3914"
136
+  },
137
+  {
138
+    "one": "国械注准20153451633",
139
+    "two": "2538",
140
+    "three": "3672"
141
+  },
142
+  {
143
+    "one": "国械注进20173451861",
144
+    "two": "1886",
145
+    "three": "2263"
146
+  },
147
+  {
148
+    "one": "国械准字20193100310",
149
+    "two": "1886",
150
+    "three": "3128"
151
+  },
152
+  {
153
+    "one": "国械注准20203100169",
154
+    "two": "1886",
155
+    "three": "3542"
156
+  },
157
+  {
158
+    "one": "",
159
+    "two": "2089",
160
+    "three": "3080"
161
+  },
162
+  {
163
+    "one": "湘械注准20172220337",
164
+    "two": "2089",
165
+    "three": "3263"
166
+  },
167
+  {
168
+    "one": "浙械注准20162220827",
169
+    "two": "2089",
170
+    "three": "3394"
171
+  },
172
+  {
173
+    "one": "浙械注准20232221139",
174
+    "two": "2089",
175
+    "three": "4043"
176
+  },
177
+  {
178
+    "one": "国械注进20192220480",
179
+    "two": "2089",
180
+    "three": "4146"
181
+  },
182
+  {
183
+    "one": "国械注进20192400519",
184
+    "two": "1804",
185
+    "three": "2130"
186
+  },
187
+  {
188
+    "one": "国械注准20162402313",
189
+    "two": "2088",
190
+    "three": "3079"
191
+  },
192
+  {
193
+    "one": "湘械注准20162400156",
194
+    "two": "2088",
195
+    "three": "3393"
196
+  },
197
+  {
198
+    "one": "湘械注准20152400113",
199
+    "two": "2088",
200
+    "three": "3962"
201
+  },
202
+  {
203
+    "one": "浙械注准20232221139",
204
+    "two": "2088",
205
+    "three": "4044"
206
+  },
207
+  {
208
+    "one": "浙械注准20162400927",
209
+    "two": "2088",
210
+    "three": "4045"
211
+  },
212
+  {
213
+    "one": "国械注准20183101801",
214
+    "two": "2080",
215
+    "three": "3035"
216
+  },
217
+  {
218
+    "one": "国械注准20193101882",
219
+    "two": "1652",
220
+    "three": "1920"
221
+  },
222
+  {
223
+    "one": "国械注准20173104247",
224
+    "two": "1652",
225
+    "three": "3202"
226
+  },
227
+  {
228
+    "one": "国械注准20173104247",
229
+    "two": "1652",
230
+    "three": "3437"
231
+  },
232
+  {
233
+    "one": "国械注准20173104247",
234
+    "two": "1652",
235
+    "three": "3438"
236
+  },
237
+  {
238
+    "one": "国械注准20213100947",
239
+    "two": "1652",
240
+    "three": "3439"
241
+  },
242
+  {
243
+    "one": "国械注准20173100505",
244
+    "two": "1652",
245
+    "three": "3540"
246
+  },
247
+  {
248
+    "one": "国械注准20213100515",
249
+    "two": "1652",
250
+    "three": "3902"
251
+  },
252
+  {
253
+    "one": "国械注进20143105627",
254
+    "two": "1653",
255
+    "three": "1921"
256
+  },
257
+  {
258
+    "one": "国械注进20163452183",
259
+    "two": "1653",
260
+    "three": "2980"
261
+  },
262
+  {
263
+    "one": "国械注准20163100473",
264
+    "two": "1653",
265
+    "three": "3541"
266
+  },
267
+  {
268
+    "one": "国械注进20163151629",
269
+    "two": "1656",
270
+    "three": "1924"
271
+  },
272
+  {
273
+    "one": "国械注准20173154167",
274
+    "two": "1656",
275
+    "three": "3166"
276
+  },
277
+  {
278
+    "one": "国械注准20143142113",
279
+    "two": "1656",
280
+    "three": "3415"
281
+  },
282
+  {
283
+    "one": "国械注进20143105618",
284
+    "two": "2059",
285
+    "three": "2976"
286
+  },
287
+  {
288
+    "one": "苏械注准20182081749",
289
+    "two": "1714",
290
+    "three": "1993"
291
+  },
292
+  {
293
+    "one": "苏械注准20162080521",
294
+    "two": "1714",
295
+    "three": "3213"
296
+  },
297
+  {
298
+    "one": "苏械注准20162080020",
299
+    "two": "1714",
300
+    "three": "3553"
301
+  },
302
+  {
303
+    "one": "苏械注准20182560598",
304
+    "two": "1714",
305
+    "three": "3559"
306
+  },
307
+  {
308
+    "one": "苏械注准20172081724",
309
+    "two": "1714",
310
+    "three": "3702"
311
+  },
312
+  {
313
+    "one": "国械注准20173660838",
314
+    "two": "1962",
315
+    "three": "2433"
316
+  },
317
+  {
318
+    "one": "国械注准20173664565",
319
+    "two": "1962",
320
+    "three": "3817"
321
+  },
322
+  {
323
+    "one": "国械注准20173144565",
324
+    "two": "1962",
325
+    "three": "4083"
326
+  },
327
+  {
328
+    "one": "国械注准20183661606",
329
+    "two": "1877",
330
+    "three": "2249"
331
+  },
332
+  {
333
+    "one": "",
334
+    "two": "1681",
335
+    "three": "1955"
336
+  },
337
+  {
338
+    "one": "粤械注准20192140744",
339
+    "two": "1681",
340
+    "three": "3682"
341
+  },
342
+  {
343
+    "one": "国械注准20163100663",
344
+    "two": "2239",
345
+    "three": "3400"
346
+  },
347
+  {
348
+    "one": "国械注准20163100663",
349
+    "two": "2239",
350
+    "three": "3401"
351
+  },
352
+  {
353
+    "one": "国械注准20163220454",
354
+    "two": "1774",
355
+    "three": "2095"
356
+  },
357
+  {
358
+    "one": "苏械注准20152220174",
359
+    "two": "1774",
360
+    "three": "3392"
361
+  },
362
+  {
363
+    "one": "苏械注准20152220174",
364
+    "two": "1774",
365
+    "three": "3539"
366
+  },
367
+  {
368
+    "one": "国械注准20153220967",
369
+    "two": "1774",
370
+    "three": "3703"
371
+  },
372
+  {
373
+    "one": "津械注准20192220126",
374
+    "two": "1774",
375
+    "three": "3963"
376
+  },
377
+  {
378
+    "one": "国械注准20153222149",
379
+    "two": "1774",
380
+    "three": "4082"
381
+  },
382
+  {
383
+    "one": "国械注准20153141539",
384
+    "two": "1731",
385
+    "three": "2030"
386
+  },
387
+  {
388
+    "one": "国械注准20153152019",
389
+    "two": "1731",
390
+    "three": "3705"
391
+  },
392
+  {
393
+    "one": "国械注准20153141002",
394
+    "two": "2062",
395
+    "three": "2984"
396
+  },
397
+  {
398
+    "one": "",
399
+    "two": "1608",
400
+    "three": "1808"
401
+  },
402
+  {
403
+    "one": "",
404
+    "two": "1608",
405
+    "three": "3279"
406
+  },
407
+  {
408
+    "one": "",
409
+    "two": "1607",
410
+    "three": "1807"
411
+  },
412
+  {
413
+    "one": "",
414
+    "two": "1607",
415
+    "three": "2338"
416
+  },
417
+  {
418
+    "one": "浙械注准20152140323",
419
+    "two": "2199",
420
+    "three": "3323"
421
+  },
422
+  {
423
+    "one": "",
424
+    "two": "1609",
425
+    "three": "1809"
426
+  },
427
+  {
428
+    "one": "",
429
+    "two": "1609",
430
+    "three": "1810"
431
+  },
432
+  {
433
+    "one": "",
434
+    "two": "1609",
435
+    "three": "1811"
436
+  },
437
+  {
438
+    "one": "",
439
+    "two": "1609",
440
+    "three": "2250"
441
+  },
442
+  {
443
+    "one": "",
444
+    "two": "1609",
445
+    "three": "2540"
446
+  },
447
+  {
448
+    "one": "",
449
+    "two": "1609",
450
+    "three": "3692"
451
+  },
452
+  {
453
+    "one": "",
454
+    "two": "1896",
455
+    "three": "2281"
456
+  },
457
+  {
458
+    "one": "国械注准20193100567",
459
+    "two": "1676",
460
+    "three": "3173"
461
+  },
462
+  {
463
+    "one": "国械注准20163101181",
464
+    "two": "1676",
465
+    "three": "3212"
466
+  },
467
+  {
468
+    "one": "国械注准20193101759",
469
+    "two": "1676",
470
+    "three": "3214"
471
+  },
472
+  {
473
+    "one": "国械注准20193100567",
474
+    "two": "1676",
475
+    "three": "3414"
476
+  },
477
+  {
478
+    "one": "苏械注准20162410527",
479
+    "two": "1770",
480
+    "three": "2091"
481
+  },
482
+  {
483
+    "one": "苏械注准20162410527",
484
+    "two": "1770",
485
+    "three": "2577"
486
+  },
487
+  {
488
+    "one": "冀械注准20202220473",
489
+    "two": "1770",
490
+    "three": "3363"
491
+  },
492
+  {
493
+    "one": "冀械注准20202220473",
494
+    "two": "1770",
495
+    "three": "3364"
496
+  },
497
+  {
498
+    "one": "国械注进20153030477",
499
+    "two": "2098",
500
+    "three": "3104"
501
+  },
502
+  {
503
+    "one": "湘械注准20152140153",
504
+    "two": "1687",
505
+    "three": "1964"
506
+  },
507
+  {
508
+    "one": "湘械注准20152140153",
509
+    "two": "1687",
510
+    "three": "2415"
511
+  },
512
+  {
513
+    "one": "国械注准20173450509",
514
+    "two": "1655",
515
+    "three": "1923"
516
+  },
517
+  {
518
+    "one": "国械注准20143452021",
519
+    "two": "1655",
520
+    "three": "3598"
521
+  },
522
+  {
523
+    "one": "国械注进20173452111",
524
+    "two": "1674",
525
+    "three": "1947"
526
+  },
527
+  {
528
+    "one": "国械注准20203100791",
529
+    "two": "1674",
530
+    "three": "3165"
531
+  },
532
+  {
533
+    "one": "国械注进20173102111",
534
+    "two": "1674",
535
+    "three": "3464"
536
+  },
537
+  {
538
+    "one": "国械注准20143102122",
539
+    "two": "1674",
540
+    "three": "3600"
541
+  },
542
+  {
543
+    "one": "国械注准20193140761",
544
+    "two": "1763",
545
+    "three": "2064"
546
+  },
547
+  {
548
+    "one": "国械注进20163152061",
549
+    "two": "1763",
550
+    "three": "3398"
551
+  },
552
+  {
553
+    "one": "国械注进20173151271",
554
+    "two": "1763",
555
+    "three": "3546"
556
+  },
557
+  {
558
+    "one": "国械注准20153141779",
559
+    "two": "1763",
560
+    "three": "3552"
561
+  },
562
+  {
563
+    "one": "国械注准20153151779",
564
+    "two": "1763",
565
+    "three": "4028"
566
+  },
567
+  {
568
+    "one": "国械注进20153030061",
569
+    "two": "2076",
570
+    "three": "3026"
571
+  },
572
+  {
573
+    "one": "津械注准20192140103",
574
+    "two": "1725",
575
+    "three": "2022"
576
+  },
577
+  {
578
+    "one": "津械注准20142150021",
579
+    "two": "1725",
580
+    "three": "3399"
581
+  }
582
+]