|
@@ -3241,8 +3241,8 @@ func (c *HisApiController) CreateHisPrescription() {
|
3241
|
3241
|
timeLayout := "2006-01-02"
|
3242
|
3242
|
loc, _ := time.LoadLocation("Local")
|
3243
|
3243
|
theTime2, err := time.ParseInLocation(timeLayout+" 15:04", preTime, loc)
|
3244
|
|
- result := strings.Split(preTime, " ")
|
3245
|
|
- theTime3, _ := time.ParseInLocation(timeLayout, result[0], loc)
|
|
3244
|
+ //result := strings.Split(preTime, " ")
|
|
3245
|
+ theTime3, _ := time.ParseInLocation(timeLayout, record_date, loc)
|
3246
|
3246
|
if err != nil {
|
3247
|
3247
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
3248
|
3248
|
return
|
|
@@ -4421,8 +4421,8 @@ func (c *HisApiController) CreateHisPrescription() {
|
4421
|
4421
|
timeLayout := "2006-01-02"
|
4422
|
4422
|
loc, _ := time.LoadLocation("Local")
|
4423
|
4423
|
theTime2, err := time.ParseInLocation(timeLayout+" 15:04", preTime, loc)
|
4424
|
|
- result := strings.Split(preTime, " ")
|
4425
|
|
- theTime3, _ := time.ParseInLocation(timeLayout, result[0], loc)
|
|
4424
|
+ //result := strings.Split(preTime, " ")
|
|
4425
|
+ theTime3, _ := time.ParseInLocation(timeLayout, record_date, loc)
|
4426
|
4426
|
if err != nil {
|
4427
|
4427
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
4428
|
4428
|
return
|