|
@@ -189,7 +189,7 @@ public class GwFlowController {
|
|
|
gwCirculationCard2DTO.setState("3");
|
|
|
gwCirculationCard2Service.saveOrUpdate (gwCirculationCard2Wrapper.toEntity (gwCirculationCard2DTO));
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}else{
|
|
|
|
|
|
int count=gwFlowService.isEnd(gwFlowDTO.getGwId());
|
|
@@ -204,9 +204,23 @@ public class GwFlowController {
|
|
|
gwFlowDTOn.setNextTruename(userDTO3.getName());
|
|
|
gwFlowDTOn.setNextUser(userDTO3.getId());
|
|
|
if(userDTO.getRoleNames().contains("局领导")){
|
|
|
- gwFlowDTOn.setWhich("3");
|
|
|
- }else if(userDTO.getRoleNames().contains("办公室主任")){
|
|
|
- gwFlowDTOn.setWhich("3");
|
|
|
+ gwFlowDTOn.setWhich("3");
|
|
|
+ }else if(userDTO.getRoleNames().contains("办公室主任")){
|
|
|
+
|
|
|
+ gwFlowDTOn.setWhich("1");
|
|
|
+
|
|
|
+ gwFlowDTOn.setCreateTruename(userDTO.getName());
|
|
|
+ gwFlowDTOn.setCreateBy(userDTO);
|
|
|
+ gwFlowDTOn.setUpdateBy(userDTO);
|
|
|
+
|
|
|
+ List <UserDTO> result = userService.findUserListByRole ( "1770353074553331713" );
|
|
|
+ UserDTO userDTO4=userDTO;
|
|
|
+ if(result!=null&&result.size()>0){
|
|
|
+ userDTO4=result.get(0);
|
|
|
+ }
|
|
|
+ gwFlowDTOn.setNextTruename(userDTO4.getName());
|
|
|
+ gwFlowDTOn.setNextUser(userDTO4.getId());
|
|
|
+
|
|
|
}else{
|
|
|
gwFlowDTOn.setWhich("4");
|
|
|
}
|