| | |
| | | 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; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | 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("导入审批流程"); |
| | | SysCategory category2 = new SysCategory(); |
| | | category2.setId("ggApproval"); |
| | | category2.setName("设计更改单流程"); |
| | | SysCategory category3 = new SysCategory(); |
| | | category3.setId("jjApproval"); |
| | | category3.setName("机加工艺规程流程"); |
| | | SysCategory category4 = new SysCategory(); |
| | | category4.setId("lsApproval"); |
| | | category4.setName("临时工艺规程流程"); |
| | | SysCategory category5 = new SysCategory(); |
| | | category5.setId("fxApproval"); |
| | | category5.setName("返修工艺规程流程"); |
| | | SysCategory category6 = new SysCategory(); |
| | | category6.setId("jjggApproval"); |
| | | category6.setName("机加更改单流程"); |
| | | ArrayList<SysCategory> sysCategories = Lists.newArrayList(category1,category2,category3,category4,category5,category6); |
| | | return sysCategories; |
| | | 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 |