| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class WorksheetLinkService { |
| | |
| | | if(link.getLinkStatus() == 2){ //驳回 |
| | | //驳回到员工进行处理 |
| | | //查询工单的员工 |
| | | Integer createUserId = mainService.getInfoById(link.getMainId()).getCreateUserId(); |
| | | Long createUserId = mainService.getInfoById(link.getMainId()).getCreateUserId(); |
| | | WorksheetLink link2 = new WorksheetLink(); |
| | | link2.setMainId(link.getMainId()); |
| | | link2.setParentId(link.getId()); |
| | |
| | | if(link.getLinkStatus() == 2){ //驳回 |
| | | //驳回到员工进行处理 |
| | | //查询工单的员工 |
| | | Integer createUserId = mainService.getInfoById(link.getMainId()).getCreateUserId(); |
| | | Long createUserId = mainService.getInfoById(link.getMainId()).getCreateUserId(); |
| | | WorksheetLink link2 = new WorksheetLink(); |
| | | link2.setMainId(link.getMainId()); |
| | | link2.setParentId(link.getId()); |
| | |
| | | mainService.updateStatusById(link.getMainId(),0); |
| | | }else{ |
| | | //审批通过,更新主表状态 |
| | | mainService.updateStatusById(link.getMainId(),5); |
| | | mainService.updateEndStatusById(link.getMainId(),"完结",5); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取节点信息(包含main表)列表 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public List<WorksheetLink> getInfoList(Long id) { |
| | | return linkMapper.getInfoList(id); |
| | | } |
| | | } |