Commit dc6a2659 authored by wei's avatar wei 🎱

常量

parent f37a11b3
...@@ -50,6 +50,7 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe ...@@ -50,6 +50,7 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
public static final String BEAN_NAME = "documentServiceImpl"; public static final String BEAN_NAME = "documentServiceImpl";
public static final String EXT_DOC_WF = "ExtDocWF";
@Autowired @Autowired
private ExtDxDocumentFolderService dxDocumentFolderService; private ExtDxDocumentFolderService dxDocumentFolderService;
...@@ -93,10 +94,10 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe ...@@ -93,10 +94,10 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
if (dxDocumentVO == null) { if (dxDocumentVO == null) {
throw new DxBusinessException("500", "获取不到对象"); throw new DxBusinessException("500", "获取不到对象");
} }
if (!dxDocumentVO.getState().equals("edit")) { if (!dxDocumentVO.getState().equals(Constants.EDIT)) {
throw new DxBusinessException("500", "该对象不是编制状态"); throw new DxBusinessException("500", "该对象不是编制状态");
} }
wfcProcessFeign.startProcessByKey("ExtDocWF", dxDocumentVO); wfcProcessFeign.startProcessByKey(EXT_DOC_WF, dxDocumentVO);
return this.changeStatus(dxDocumentVO.getId(), Constants.SUBMIT_REVIEWING, true); return this.changeStatus(dxDocumentVO.getId(), Constants.SUBMIT_REVIEWING, true);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment