Skip to content

Commit

Permalink
pom依赖管理
Browse files Browse the repository at this point in the history
  • Loading branch information
misTiger committed Aug 6, 2024
1 parent 3756000 commit a597242
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<lang3.version>3.14.0</lang3.version>
<fastjson.version>1.2.83</fastjson.version>
<jwt.version>4.4.0</jwt.version>
<dozer.version>5.5.1</dozer.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -83,6 +84,11 @@
<artifactId>commons-lang3</artifactId>
<version>${lang3.version}</version>
</dependency>
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer</artifactId>
<version>${dozer.version}</version>
</dependency>
</dependencies>

</dependencyManagement>
Expand Down
1 change: 0 additions & 1 deletion survey-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer</artifactId>
<version>5.5.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class WorkspaceServiceImpl implements WorkspaceService {
@Autowired
private WorkspaceMemberService memberService;

@Autowired
private MongoEntityInterceptor mongoEntityInterceptor;

/**
* 创建空间
* @param request
Expand Down Expand Up @@ -180,7 +183,7 @@ public void update(HttpServletRequest request, WorkspaceParam workspaceParam, St
public void delete(HttpServletRequest request, String workspaceId) {
Workspace workspace = mongoRepository.findOne(new Query().addCriteria(Criteria.where("_id").is(workspaceId)), Workspace.class);
// 更新空间状态
InitBaseEntity initBaseEntity = MongoEntityInterceptor.updateDocument(workspace.getStatusList());
InitBaseEntity initBaseEntity = mongoEntityInterceptor.updateDocument(workspace.getStatusList());
mongoRepository.updateMulti(new Query().addCriteria(Criteria.where("_id").is(workspaceId)),
new Update().set("curStatus", initBaseEntity.getCurStatus())
.set("statusList", initBaseEntity.getStatusList()), Workspace.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onBeforeConvert(BeforeConvertEvent<T> event) {
* @param statusList
* @return
*/
public static InitBaseEntity updateDocument(List<Status> statusList) {
public InitBaseEntity updateDocument(List<Status> statusList) {
long time = System.currentTimeMillis();
Status status = new Status().setStatus(RecordStatusEnum.REMOVED.getStatusType()).setDate(time);
statusList.add(status);
Expand Down

0 comments on commit a597242

Please sign in to comment.