|
@@ -1606,8 +1606,11 @@ func (this *NewDialysisApiController) SaveFeed() {
|
1606
|
1606
|
fmt.Print("phone", phone)
|
1607
|
1607
|
times, _ := this.GetInt64("time")
|
1608
|
1608
|
fmt.Print("time", times)
|
|
1609
|
+ adminuserid, _ := this.GetInt64("admin_user_id")
|
|
1610
|
+ fmt.Println("admin", adminuserid)
|
1609
|
1611
|
adminUser := this.GetMobileAdminUserInfo()
|
1610
|
1612
|
orgid := adminUser.Org.Id
|
|
1613
|
+ appid := adminUser.App.Id
|
1611
|
1614
|
feedback := models.XtPatientFeedback{
|
1612
|
1615
|
ProblemType: question,
|
1613
|
1616
|
Title: title,
|
|
@@ -1617,6 +1620,8 @@ func (this *NewDialysisApiController) SaveFeed() {
|
1617
|
1620
|
UserOrgId: orgid,
|
1618
|
1621
|
Ctime: time.Now().Unix(),
|
1619
|
1622
|
Status: 1,
|
|
1623
|
+ AdminUserId: adminuserid,
|
|
1624
|
+ AppId: appid,
|
1620
|
1625
|
}
|
1621
|
1626
|
err := service.CreateFeedBack(&feedback)
|
1622
|
1627
|
if err != nil {
|
|
@@ -1640,3 +1645,18 @@ func (this *NewDialysisApiController) DeleteInspection() {
|
1640
|
1645
|
this.ServeSuccessJSON(returnData)
|
1641
|
1646
|
return
|
1642
|
1647
|
}
|
|
1648
|
+
|
|
1649
|
+func (this *NewDialysisApiController) DeleteChildInspection() {
|
|
1650
|
+ admininfo := this.GetMobileAdminUserInfo()
|
|
1651
|
+ orgid := admininfo.Org.Id
|
|
1652
|
+ name := this.GetString("name")
|
|
1653
|
+ fmt.Println("name", name)
|
|
1654
|
+ date, _ := this.GetInt64("date")
|
|
1655
|
+ fmt.Println("date", date)
|
|
1656
|
+ err := service.DeleteChildInspection(name, date, orgid)
|
|
1657
|
+ fmt.Println("删除失败", err)
|
|
1658
|
+ returnData := make(map[string]interface{}, 0)
|
|
1659
|
+ returnData["msg"] = "手机号码已存在"
|
|
1660
|
+ this.ServeSuccessJSON(returnData)
|
|
1661
|
+ return
|
|
1662
|
+}
|