|
@@ -511,13 +511,16 @@ func (c *ExcelInfoController) Edit() {
|
|
}
|
|
}
|
|
|
|
|
|
// 标记编辑状态
|
|
// 标记编辑状态
|
|
- _, err = services.UpdateExcelEditMark(req.ExcelInfoId, sysUser.AdminId, 1, sysUser.RealName)
|
|
|
|
|
|
+ markRet, err := services.UpdateExcelEditMark(req.ExcelInfoId, sysUser.AdminId, 1, sysUser.RealName)
|
|
if err != nil {
|
|
if err != nil {
|
|
br.Msg = "查询标记状态失败"
|
|
br.Msg = "查询标记状态失败"
|
|
br.ErrMsg = "查询标记状态失败,Err:" + err.Error()
|
|
br.ErrMsg = "查询标记状态失败,Err:" + err.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if markRet.Status == 1 {
|
|
|
|
+ br.Data = markRet
|
|
|
|
+ return
|
|
|
|
+ }
|
|
excelClassify, err := excel3.GetExcelClassifyById(req.ExcelClassifyId)
|
|
excelClassify, err := excel3.GetExcelClassifyById(req.ExcelClassifyId)
|
|
if err != nil {
|
|
if err != nil {
|
|
if err.Error() == utils.ErrNoRow() {
|
|
if err.Error() == utils.ErrNoRow() {
|