| | |
| | | } |
| | | FieldSetEntity page=null; |
| | | |
| | | DataTableEntity curButtonDte = new DataTableEntity(); |
| | | if(!StringUtils.isEmpty(functionUuid)) { |
| | | //根据按钮类型查出按钮uuid |
| | | if(StringUtils.isEmpty(buttonUuid)&& !StringUtils.isEmpty(buttonType) ) { |
| | | DataTableEntity d=baseDao.listTable("product_sys_function_buttons", " function_uuid=? and button_category_uuid=? ", new String[] {functionUuid,buttonType},"button_type"); |
| | | if(!DataTableEntity.isEmpty(d)) { |
| | | buttonUuid=d.getFieldSetEntity(0).getUUID();//取第一条 |
| | | FieldSetEntity curButtonFse = d.getFieldSetEntity(0); |
| | | curButtonFse.setTableName("cur_button"); |
| | | curButtonDte.addFieldSetEntity(curButtonFse); |
| | | buttonUuid=curButtonFse.getUUID();//取第一条 |
| | | } |
| | | } |
| | | //查出按钮对应界面,可能按钮有多个,取第一个 |
| | |
| | | .append(")"); |
| | | DataTableEntity d=baseDao.listTable(b.toString() , new String[] {functionUuid,functionUuid,page.getUUID()} ); |
| | | page.addSubDataTable(d); |
| | | page.addSubDataTable(curButtonDte); |
| | | }else { |
| | | throw new BaseException(MobileCoreCode.GET_ROUTER_FAIL); |
| | | } |