|
@@ -0,0 +1,63 @@
|
|
|
+package com.zkqy.execution.produce.dispersed.service.impl.runbpm.chemicalfiber;
|
|
|
+
|
|
|
+import com.zkqy.common.core.domain.AjaxResult;
|
|
|
+import com.zkqy.execution.produce.dispersed.entity.CommonEntity;
|
|
|
+import com.zkqy.execution.produce.dispersed.entity.runbpm.BpmRunNodeFromVo;
|
|
|
+import com.zkqy.execution.produce.dispersed.entity.runbpm.IRunBPMEntity;
|
|
|
+import com.zkqy.execution.produce.dispersed.service.ICommonService;
|
|
|
+import com.zkqy.execution.produce.dispersed.service.IRunBPMService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.context.annotation.Scope;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import javax.annotation.PreDestroy;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 化纤包装-正常节点
|
|
|
+ */
|
|
|
+@Service("e72def21-9b11-421b-965b-4b8781d73c74")
|
|
|
+@Scope("prototype")
|
|
|
+public class WrappingNode implements IRunBPMService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICommonService commonService;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public CommonEntity getNodeFormData(BpmRunNodeFromVo bpmRunNodeFromVo) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult preValidation(IRunBPMEntity iRunBPMEntity) {
|
|
|
+ System.err.println(iRunBPMEntity.toString());
|
|
|
+ String id = iRunBPMEntity.getExecutionMap().get("taskPlanKey").toString();
|
|
|
+ CommonEntity commonEntity = new CommonEntity();
|
|
|
+ commonEntity.getBasicMap().put("tableName","sale_products");
|
|
|
+ commonEntity.getConditionMap().put("id",id);
|
|
|
+ commonEntity.getCommMap().put("status","6");
|
|
|
+ commonService.edit(commonEntity);
|
|
|
+
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult executeNode(IRunBPMEntity iRunBPMEntity) {
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public AjaxResult afterValidation(IRunBPMEntity iRunBPMEntity) {
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean isVerificationMethod() {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @PreDestroy
|
|
|
+ public boolean preDestroy() {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+}
|