Commit a8f380a6e71d94ec984eab76b57080fb3d6414f5
1 parent
4deaffbe
m
Showing
2 changed files
with
9 additions
and
28 deletions
trash-workFlow/src/main/java/com/trash/business/mapper/GarMapper.java
| ... | ... | @@ -2,12 +2,6 @@ package com.trash.business.mapper; |
| 2 | 2 | |
| 3 | 3 | import org.apache.ibatis.annotations.Param; |
| 4 | 4 | |
| 5 | -import com.trash.activiti.domain.vo.ActReDeploymentVO; | |
| 6 | - | |
| 7 | -import java.util.List; | |
| 8 | -import java.util.Map; | |
| 9 | -import java.util.Set; | |
| 10 | - | |
| 11 | 5 | public interface GarMapper { |
| 12 | 6 | |
| 13 | 7 | public int updateDropPointById(@Param("id")String id ,@Param("status") String status); | ... | ... |
trash-workFlow/src/main/java/com/trash/workflow/listener/DropPointListener.java
| 1 | 1 | package com.trash.workflow.listener; |
| 2 | 2 | |
| 3 | -import com.trash.business.domain.SupervisionTrack; | |
| 4 | -import com.trash.business.mapper.GarMapper; | |
| 5 | -import com.trash.business.mapper.SupervisionTrackMapper; | |
| 6 | -import com.trash.casefile.service.IViolationCaseFileService; | |
| 7 | -import com.trash.common.utils.RemoteServerUtils; | |
| 8 | -import com.trash.common.utils.spring.SpringUtils; | |
| 9 | -import com.trash.workflow.service.IWorkflowService; | |
| 3 | +import java.util.ArrayList; | |
| 4 | +import java.util.List; | |
| 5 | +import java.util.Map; | |
| 6 | + | |
| 10 | 7 | import org.activiti.engine.delegate.DelegateExecution; |
| 11 | 8 | import org.activiti.engine.delegate.ExecutionListener; |
| 12 | 9 | import org.activiti.engine.delegate.Expression; |
| 13 | 10 | import org.springframework.beans.factory.annotation.Autowired; |
| 14 | 11 | |
| 15 | -import java.util.ArrayList; | |
| 16 | -import java.util.Date; | |
| 17 | -import java.util.HashMap; | |
| 18 | -import java.util.List; | |
| 19 | -import java.util.Map; | |
| 12 | +import com.trash.business.mapper.GarMapper; | |
| 13 | +import com.trash.common.utils.spring.SpringUtils; | |
| 20 | 14 | |
| 21 | 15 | |
| 22 | 16 | public class DropPointListener implements ExecutionListener { |
| 23 | 17 | |
| 24 | 18 | private Expression state; |
| 25 | 19 | |
| 26 | - | |
| 27 | - @Autowired | |
| 28 | - GarMapper mapper; | |
| 29 | - | |
| 30 | - | |
| 31 | 20 | @Override |
| 32 | 21 | public void notify(DelegateExecution delegateExecution) { |
| 33 | 22 | |
| 34 | 23 | List<Map> maps = new ArrayList<Map>(); |
| 35 | - | |
| 36 | - SupervisionTrack supervisionTrack = new SupervisionTrack(); | |
| 37 | - | |
| 24 | + | |
| 38 | 25 | String idString = (delegateExecution.getProcessInstanceBusinessKey().split(":")[1]); |
| 39 | 26 | String status = (state.getValue(delegateExecution).toString()); |
| 40 | 27 | |
| 41 | - mapper.updateDropPointById(idString, status); | |
| 42 | - | |
| 28 | + SpringUtils.getBean(GarMapper.class).updateDropPointById(idString, status); | |
| 29 | + | |
| 43 | 30 | workflowUtils.sendDataToHisTory(delegateExecution, state,null); |
| 44 | 31 | |
| 45 | 32 | System.out.println("纪检督察流程状态更新 更新ID:" + delegateExecution.getProcessInstanceBusinessKey() + "状态:" + state.getValue(delegateExecution).toString()); | ... | ... |