移交管理

new
JiilingLee 1 year ago
parent a43ccbf1da
commit 66af8e39cf

@ -13,9 +13,4 @@ import javax.validation.constraints.*;
public class TurnOverCreateReqVO extends TurnOverBaseVO {
@Schema(description = "id")
private Long id;
@AssertTrue(message = "状态只能是0或者1提交")
public boolean isStatusValid() {
//只能传未提交和待审核
return getStatus().equals(ArchivesStatusEnum.NOSUBMIT.getValue()) || getStatus().equals(ArchivesStatusEnum.PROCESS.getValue());
}
}

@ -59,6 +59,7 @@ public class TurnOverServiceImpl extends MPJBaseServiceImpl<TurnOverMapper, Turn
//添加数据userid
turnOver.setUserId(loginUser.getId());
turnOver.setStatus(BpmProcessInstanceResultEnum.PROCESS.getResult().toString());
turnOver.setCreateById(loginUser.getId());
turnOverMapper.insert(turnOver);
if (turnOver.getStatus().equals(ArchivesStatusEnum.PROCESS.getValue())) {

Loading…
Cancel
Save