| | |
| | | IPage<AdminColumnVo> selectAdminColumnVoInPage(Page<AdminColumnVo> page, @Param("record")ColumnEntity columnEntity); |
| | | |
| | | List<AdminColumnVo> selectColumnInListByParentId(@Param("parentId")Long parentidDefault,@Param("belongId")Long belongId); |
| | | |
| | | ColumnEntity selectByCodeAndCompanyId(@Param("code") String code, @Param("companyId") Long companyId); |
| | | } |
| | |
| | | ArticleEntity articleEntity = articleMapper.selectById(Long.parseLong(columnEntity.getTargetUrl())); |
| | | adminSeeColumnInfoVo.setTargetName(articleEntity.getTitle()); |
| | | } else if (columnEntity.getTargetType() == 2) { |
| | | ColumnEntity column = this.baseMapper.selectById(Long.parseLong(columnEntity.getTargetUrl())); |
| | | ColumnEntity column = this.baseMapper.selectByCodeAndCompanyId(columnEntity.getTargetUrl(), LoginUserUtil.getCompanyId()); |
| | | adminSeeColumnInfoVo.setTargetName(column.getColumnName()); |
| | | } |
| | | } |
| | |
| | | order by a.order_num ASC,a.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectByCodeAndCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.ColumnEntity"> |
| | | select * from t_column |
| | | where column_code=#{code} and company_id=#{companyId} |
| | | </select> |
| | | </mapper> |