| | |
| | | import com.google.common.collect.Lists; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.system.api.ISysBaseAPI; |
| | | import org.jeecg.common.system.vo.DictModel; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.flowable.apithird.entity.SysCategory; |
| | | import org.jeecg.modules.flowable.apithird.entity.SysRole; |
| | | import org.jeecg.modules.flowable.apithird.entity.SysUser; |
| | | import org.jeecg.modules.flowable.apithird.service.IFlowThirdService; |
| | | import org.jeecg.modules.system.service.ISysDictService; |
| | | import org.jeecg.modules.system.service.impl.SysRoleServiceImpl; |
| | | import org.jeecg.modules.system.service.impl.SysUserServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | SysUserServiceImpl sysUserService; |
| | | @Autowired |
| | | SysRoleServiceImpl sysRoleService; |
| | | @Autowired |
| | | ISysDictService sysDictService; |
| | | @Override |
| | | public SysUser getLoginUser() { |
| | | LoginUser sysUser = null; |
| | |
| | | } |
| | | @Override |
| | | public List<SysCategory> getAllCategory() { |
| | | // todo 获取流程分类信息,此处为例子 |
| | | SysCategory category1 = new SysCategory(); |
| | | category1.setId("drApproval"); |
| | | category1.setName("指派NC程序至设备"); |
| | | SysCategory category2 = new SysCategory(); |
| | | category2.setId("ggApproval"); |
| | | category2.setName("NC程序签派"); |
| | | SysCategory category3= new SysCategory(); |
| | | category3.setId("sbdjApproval"); |
| | | category3.setName("设备点检"); |
| | | SysCategory category4= new SysCategory(); |
| | | category3.setId("sbwxApproval"); |
| | | category3.setName("设备维修"); |
| | | return Lists.newArrayList(category1,category2,category3,category4); |
| | | List<DictModel> list = sysDictService.getDictItems("flow_type"); |
| | | List<SysCategory> categoryList = Lists.newArrayList(); |
| | | if (list == null || list.isEmpty()) { |
| | | return null; |
| | | }else { |
| | | list.forEach(o -> { |
| | | SysCategory sysCategory = new SysCategory(); |
| | | sysCategory.setId(o.getValue()); |
| | | sysCategory.setName(o.getText()); |
| | | categoryList.add(sysCategory); |
| | | }); |
| | | } |
| | | return categoryList; |
| | | } |
| | | |
| | | @Override |