|
@@ -4740,7 +4740,12 @@ func (c *DialysisAPIController) BatchAdviceExecution() {
|
4740
|
4740
|
fmt.Println("dis22222222", ids)
|
4741
|
4741
|
idArray := strings.Split(ids, ",")
|
4742
|
4742
|
creator := c.GetAdminUserInfo().AdminUser.Id
|
4743
|
|
- err := service.BatchAdviceExecution(idArray, creator)
|
|
4743
|
+ executionTime := c.GetString("execution_time")
|
|
4744
|
+ timeLayout := "2006-01-02 15:04:05"
|
|
4745
|
+ loc, _ := time.LoadLocation("Local")
|
|
4746
|
+
|
|
4747
|
+ theTime, _ := time.ParseInLocation(timeLayout, executionTime, loc)
|
|
4748
|
+ err := service.BatchAdviceExecution(idArray, creator, theTime.Unix())
|
4744
|
4749
|
fmt.Println(err)
|
4745
|
4750
|
c.ServeSuccessJSON(map[string]interface{}{
|
4746
|
4751
|
"msg": "批量删除成功",
|