|
|
@@ -115,6 +115,12 @@ func AppletApplicationSave(c *gin.Context) { |
|
|
|
} |
|
|
|
user := GetUser(c) |
|
|
|
engine := MasterDb(c) |
|
|
|
count, _ := engine.Where("id<>? and name=?", utils.StrToInt(req.Id), req.Name).Count(&model.AppletApplication{}) |
|
|
|
if count > 0 { |
|
|
|
e.OutErr(c, 400, e.NewErr(400, "名称重复")) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
NewAppletApplicationDb := implement.NewAppletApplicationDb(engine) |
|
|
|
var data *model.AppletApplication |
|
|
|
if utils.StrToInt(req.Id) > 0 { |
|
|
|