Commit ba19a872 authored by haoyanbin's avatar haoyanbin

1

parent c73565e3
......@@ -277,6 +277,7 @@ func (e OrgMatchEvaluate) Update(c *gin.Context) {
}
reqWonderfulDelete := dto.OrgMatchEvaluateWonderfulDeleteReq{}
reqWonderfulDelete.Ids = delIds
reqWonderfulDelete.EId = eId
sWonderful.Remove(&reqWonderfulDelete)
e.OK(req.GetId(), "修改成功")
}
......@@ -91,6 +91,7 @@ func (s *OrgMatchEvaluateWonderfulGetReq) GetId() interface{} {
// OrgMatchEvaluateWonderfulDeleteReq 功能删除请求参数
type OrgMatchEvaluateWonderfulDeleteReq struct {
Ids []int `json:"ids"`
EId int `json:"eId"`
}
func (s *OrgMatchEvaluateWonderfulDeleteReq) GetId() interface{} {
......
......@@ -95,6 +95,7 @@ func (e *OrgMatchEvaluateWonderful) Remove(d *dto.OrgMatchEvaluateWonderfulDelet
db := e.Orm.Model(&data).
Where("id not in (?)", d.GetId()).
Where("match_evaluate_id = ? ", d.EId).
Delete(&data)
if err := db.Error; err != nil {
e.Log.Errorf("Service RemoveOrgMatchEvaluateWonderful error:%s \r\n", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment