BUGFIX: library关联分类;

This commit is contained in:
shahaibo
2023-11-13 11:50:45 +08:00
parent 8afec1e962
commit 6da1286e56
2 changed files with 6 additions and 1 deletions

View File

@@ -15,8 +15,12 @@ public enum ResultEnum {
NO_LOGIN(false, -100, "User not logged in"),
NO_PERMISSION(false, -200, "No access"),
ACCOUNT_LOCK(false, -300, "Account frozen");
ACCOUNT_LOCK(false, -300, "Account frozen"),
PROMPT(false, 1, "Prompt"),
WARNING(false, 2, "Warning"),
;
private int code;
private String msg;
private boolean isOK;

View File

@@ -151,6 +151,7 @@ public class ClassificationServiceImpl implements ClassificationService {
classificationRelLibrary.setClassificationId(addId);
classificationRelLibrary.setLibraryId(classificationDTO.getLibraryId());
classificationRelLibrary.setCreateTime(LocalDateTime.now());
classificationRelLibrary.setIsDeleted(0);
// classificationRelLibrary.setUserId();
classificationRelLibraryMapper.insert(classificationRelLibrary);
}