| | |
| | | <template> |
| | | <basic-container> |
| | | |
| | | <el-header> |
| | | <div style="margin-bottom: 15px"> |
| | | 编码规则: |
| | |
| | | @change="selectHandler"> |
| | | <el-option v-for="(item,index) in queryReleasedList" |
| | | :key="item.oid" |
| | | :label="item.name" |
| | | :label="item.name + ' (' + item.id + ')'" |
| | | :value="item.oid"></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <template> |
| | | <basic-container> |
| | | |
| | | <el-header> |
| | | <div style="margin-bottom: 15px"> |
| | | 编码规则: |
| | |
| | | @change="selectHandler"> |
| | | <el-option v-for="(item,index) in queryReleasedList" |
| | | :key="item.oid" |
| | | :label="item.name" |
| | | :label="item.name + ' (' + item.id + ')'" |
| | | :value="item.oid"></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <template> |
| | | <basic-container> |
| | | |
| | | <el-header> |
| | | <div style="margin-bottom: 15px"> |
| | | 编码规则: |
| | |
| | | <template> |
| | | <basic-container> |
| | | |
| | | <el-header> |
| | | <div style="margin-bottom: 15px"> |
| | | 编码规则: |
| | |
| | | @change="selectHandler"> |
| | | <el-option v-for="(item,index) in queryReleasedList" |
| | | :key="item.oid" |
| | | :label="item.name" |
| | | :label="item.name + ' (' + item.id + ')'" |
| | | :value="item.oid"></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | } else if(key.endsWith("_notin")) { |
| | | String field = UBCSSqlKeyword.getColumn(key, "_notin"); |
| | | sql = VciBaseUtil.toInSql(field,value); |
| | | }else{ |
| | | sql = VciBaseUtil.toInSql(key,value); |
| | | } |
| | | if(!sql.isEmpty()){ |
| | | whereSqlList.add(sql); |
| | |
| | | } catch (Exception e) { |
| | | String errorMessage = e.getMessage(); |
| | | if (errorMessage.contains("无法解析的成员访问表达式")) { |
| | | throw new ServiceException("缺少" + errorMessage.substring(errorMessage.indexOf("[t.") + 1, errorMessage.indexOf("]")) + "字段"); |
| | | throw new ServiceException("缺少" + errorMessage.substring(errorMessage.indexOf("[T.") + 1, errorMessage.indexOf("]")) + "字段"); |
| | | } |
| | | throw new ServiceException(e.getMessage()); |
| | | } |
| | |
| | | Map<String,String>resembleMap=new HashMap<>(); |
| | | List<DataResembleVO> dataResembleVOS=new ArrayList<>(); |
| | | String btmtypeid= classifyFullInfo.getTopClassifyVO().getBtmTypeId(); |
| | | //相似项查询规则 |
| | | bathcResembleQuery(codeClassifyOid,templateVO,needSaveCboList,resembleMap,btmtypeid,dataResembleVOS); |
| | | if(resembleMap.size()>0) { |
| | | if(!CollectionUtils.isEmpty(dataResembleVOS)) { |
| | |
| | | Map<String, String> resembleMap = new HashMap<>(); |
| | | List<DataResembleVO> dataResembleVOS = new ArrayList<>(); |
| | | String btmtypeid = classifyFullInfo.getTopClassifyVO().getBtmTypeId(); |
| | | // 相似项查询 |
| | | bathcResembleQuery(templateVO.getCodeclassifyoid(), templateVO, needSaveCboList, resembleMap, btmtypeid, dataResembleVOS); |
| | | if (resembleMap.size() > 0) { |
| | | if (!CollectionUtils.isEmpty(dataResembleVOS)) { |
| | |
| | | createRedisDatas(uuid + "-resemble", templateVO, rowIndexCboMap, dataSet, fieldIndexMap, resembleMap, false); |
| | | } |
| | | } |
| | | |
| | | //生成class缓存 |
| | | Map<String, String> rowIndexClsOidMap = cboList.stream().filter(cbo -> cbo != null).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getAttributeValue((IMPORT_ROW_INDEX)), t -> t.getAttributeValue(CODE_CLASSIFY_OID_FIELD))); |
| | | createRedisByCodeClassify(uuid + "-class",templateVO,dataSet,fieldIndexMap,true); |
| | |
| | | Map<String,String>resembleMap=new HashMap<>(); |
| | | List<DataResembleVO> dataResembleVOS=new ArrayList<>(); |
| | | String btmtypeid= classifyFullInfo.getTopClassifyVO().getBtmTypeId(); |
| | | //相似项查询 |
| | | bathcResembleQuery(orderDTO.getCodeClassifyOid(),templateVO,needSaveCboList,resembleMap,btmtypeid,dataResembleVOS); |
| | | if(resembleMap.size()>0) { |
| | | isCreateUUid=true; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 转换流水码段的值 |
| | | * @param serialSecVOList 流水码段 |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 转换流水码段的值 |
| | | * @param serialSecVOList 流水码段 |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vci.ubcs.omd.cache.EnumCache; |
| | | import com.vci.ubcs.omd.constant.BtmTypeConstant; |
| | | import com.vci.ubcs.omd.constant.BtmTypeFieldConstant; |
| | | import com.vci.ubcs.omd.dto.BtmAndLinkTypeDdlDTO; |
| | | import com.vci.ubcs.omd.entity.*; |
| | | import com.vci.ubcs.omd.enums.EnumEnum; |
| | | import com.vci.ubcs.omd.repeater.DomainRepeater; |
| | | import com.vci.ubcs.omd.service.*; |
| | | import com.vci.ubcs.omd.vo.*; |
| | |
| | | }); |
| | | } |
| | | |
| | | return list; |
| | | // 设置字段类型中文显示值,和排序 |
| | | List<BtmTypeAttributeVO> sortedList = list.stream() |
| | | .sorted(Comparator.comparing(BtmTypeAttributeVO::getIsDefaultAttr)) |
| | | .map(item-> { |
| | | item.setAttrDataTypeText(EnumCache.getValue(EnumEnum.VCI_FIELD_TYPE, item.getAttrDataType())); |
| | | return item; |
| | | }).collect(Collectors.toList()); |
| | | return sortedList; |
| | | } |
| | | |
| | | } |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | List<Menu> getButtonByIdsOrByParentCode(@Param("roleIds") String roleIds, @Param("code") String code,@Param("ids") List<String> ids); |
| | | List<Menu> getButtonByIdsOrByParentCode(@Param("roleIds") List<String> roleIds, @Param("code") String code,@Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 权限配置菜单 |
| | |
| | | * @param roleIds |
| | | * @return |
| | | */ |
| | | List<Menu> getMenuListByCode(List<String> ids,String menuCode,String roleIds); |
| | | List<Menu> getMenuListByCode(List<String> ids,String menuCode,List<String> roleIds); |
| | | |
| | | /** |
| | | * 根据角色id获取已授权的按钮信息 |
| | |
| | | } |
| | | // 返回的分类oid是当前节点为第一个,后面依次是他的上层节点 |
| | | List<String> classifyOidList = listR.getData(); |
| | | final String roleIds = AuthUtil.getUser().getRoleId(); |
| | | final List<String> roleIds = Func.toStrList(",",AuthUtil.getUser().getRoleId()); |
| | | // 先查询按钮id列表 |
| | | LambdaQueryWrapper<ClassifyAuth> wrapper = Wrappers.<ClassifyAuth>query() |
| | | .lambda().eq(ClassifyAuth::getClassifyId, classifyId) |
| | |
| | | } |
| | | // 返回的分类oid是当前节点为第一个,后面依次是他的上层节点 |
| | | List<String> classifyOidList = listR.getData(); |
| | | final String roleIds = AuthUtil.getUser().getRoleId(); |
| | | final List<String> roleIds = Func.toStrList(",",AuthUtil.getUser().getRoleId()); |
| | | // 先查询按钮id列表 |
| | | LambdaQueryWrapper<ClassifyAuth> wrapper = Wrappers.<ClassifyAuth>query() |
| | | .lambda().eq(ClassifyAuth::getClassifyId, classifyId) |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Menu> getMenuListByCode(List<String> ids,String menuCode,String roleIds){ |
| | | public List<Menu> getMenuListByCode(List<String> ids,String menuCode,List<String> roleIds){ |
| | | List<Menu> menuButtonList = null; |
| | | if(VciBaseUtil.checkAdminTenant()){ |
| | | // 正常情况下来说这个不存在为空的情况 |
| | |
| | | |
| | | <select id="getButtonByIdsOrByParentCode" resultMap="menuResultMap"> |
| | | SELECT |
| | | pm.* |
| | | DISTINCT pm.* |
| | | FROM |
| | | PL_SYS_MENU pm |
| | | <if test="code != null and code != ''"> |
| | |
| | | </if> |
| | | <if test="roleIds != null and roleIds != ''"> |
| | | AND pm.ID = prom.MENU_ID |
| | | AND prom.ROLE_ID in (#{roleIds}) |
| | | AND prom.ROLE_ID IN |
| | | <foreach collection="roleIds" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="ids != null and ids != ''"> |
| | | AND pm.ID IN |