parent
b199a9199f
commit
058b462b64
|
@ -19,6 +19,8 @@
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package net.mingsoft;
|
package net.mingsoft;
|
||||||
|
|
||||||
import org.mybatis.spring.annotation.MapperScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package net.mingsoft;
|
package net.mingsoft;
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
|
@ -224,8 +224,8 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//查询数量
|
//查询数量 站群会自动拼appId区分
|
||||||
int count = contentBiz.getSearchCount(contentModel, fieldValueList, searchMap, BasicUtil.getApp().getAppId(), categoryIds);
|
int count = contentBiz.getSearchCount(contentModel, fieldValueList, searchMap, categoryIds);
|
||||||
page.setRcount(count);
|
page.setRcount(count);
|
||||||
params.put("search", searchMap);
|
params.put("search", searchMap);
|
||||||
|
|
||||||
|
|
|
@ -61,11 +61,10 @@ public interface IContentBiz extends IBaseBiz<ContentEntity> {
|
||||||
* @param contentModel 文章模型,
|
* @param contentModel 文章模型,
|
||||||
* @param diyList 扩展模型字段 List<Map> key:自定义模型字段:值
|
* @param diyList 扩展模型字段 List<Map> key:自定义模型字段:值
|
||||||
* @param whereMap 条件
|
* @param whereMap 条件
|
||||||
* @param websiteId 站点编号
|
|
||||||
* @param categoryIds 栏目编号集合 格式:1,2,3
|
* @param categoryIds 栏目编号集合 格式:1,2,3
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int getSearchCount(ModelEntity contentModel, List diyList, Map whereMap, String websiteId, String categoryIds);
|
int getSearchCount(ModelEntity contentModel, List diyList, Map whereMap, String categoryIds);
|
||||||
/**
|
/**
|
||||||
* 根据文章属性查询,不包括单篇
|
* 根据文章属性查询,不包括单篇
|
||||||
* @param contentBean
|
* @param contentBean
|
||||||
|
|
|
@ -94,11 +94,11 @@ public class ContentBizImpl extends BaseBizImpl<IContentDao, ContentEntity> imp
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getSearchCount(ModelEntity contentModel, List diyList, Map whereMap, String appId, String categoryIds) {
|
public int getSearchCount(ModelEntity contentModel, List diyList, Map whereMap, String categoryIds) {
|
||||||
if (contentModel!=null) {
|
if (contentModel!=null) {
|
||||||
return contentDao.getSearchCount(contentModel.getModelTableName(),diyList,whereMap, appId,categoryIds);
|
return contentDao.getSearchCount(contentModel.getModelTableName(),diyList,whereMap, categoryIds);
|
||||||
}
|
}
|
||||||
return contentDao.getSearchCount(null,null,whereMap, appId,categoryIds);
|
return contentDao.getSearchCount(null,null,whereMap, categoryIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package net.mingsoft.cms.dao;
|
package net.mingsoft.cms.dao;
|
||||||
|
|
||||||
import net.mingsoft.base.dao.IBaseDao;
|
import net.mingsoft.base.dao.IBaseDao;
|
||||||
|
@ -70,12 +72,11 @@ public interface IContentDao extends IBaseDao<ContentEntity> {
|
||||||
* @param map
|
* @param map
|
||||||
* key:字段名 value:List 字段的各种判断值 list[0]:是否为自定义字段 list[1]:是否为整形
|
* key:字段名 value:List 字段的各种判断值 list[0]:是否为自定义字段 list[1]:是否为整形
|
||||||
* list[2]:是否是等值查询 list[3]:字段的值
|
* list[2]:是否是等值查询 list[3]:字段的值
|
||||||
* @param appId 站点id
|
|
||||||
* @param categoryIds 栏目id集合
|
* @param categoryIds 栏目id集合
|
||||||
* @return 文章实体总数
|
* @return 文章实体总数
|
||||||
*/
|
*/
|
||||||
int getSearchCount(@Param("tableName") String tableName, @Param("diyList") List diyList, @Param("map") Map<String, Object> map,
|
int getSearchCount(@Param("tableName") String tableName, @Param("diyList") List diyList, @Param("map") Map<String, Object> map,
|
||||||
@Param("appId") String appId, @Param("categoryIds") String categoryIds);
|
@Param("categoryIds") String categoryIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分类编号删除文章
|
* 分类编号删除文章
|
||||||
|
|
|
@ -35,5 +35,5 @@ category.diy.url=\u81EA\u5B9A\u4E49\u94FE\u63A5
|
||||||
content.keyword=\u5173\u952E\u5B57
|
content.keyword=\u5173\u952E\u5B57
|
||||||
template.file=\u672A\u627E\u5230\u6A21\u677F\u6587\u4EF6
|
template.file=\u672A\u627E\u5230\u6A21\u677F\u6587\u4EF6
|
||||||
category.pinyin=\u62FC\u97F3
|
category.pinyin=\u62FC\u97F3
|
||||||
datetime.format=时间格式
|
datetime.format=\u65F6\u95F4\u683C\u5F0F
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span style="cursor: pointer" class="copyBtn cell-tooltip " :data-clipboard-text="scope.row.id"
|
<span style="cursor: pointer" class="copyBtn" :data-clipboard-text="scope.row.id"
|
||||||
@click="copyContent(true)">{{scope.row.id}}</span>
|
@click="copyContent(true)">{{scope.row.id}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -354,8 +354,3 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
|
||||||
.el-table .cell.el-tooltip {
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -84,7 +84,7 @@ html *, body * {
|
||||||
/*搜索*/
|
/*搜索*/
|
||||||
.ms-search{
|
.ms-search{
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 10px 14px 0 14px;
|
padding: 10px 10px 0 10px;
|
||||||
border-bottom: 1px dashed #ebeef5;
|
border-bottom: 1px dashed #ebeef5;
|
||||||
}
|
}
|
||||||
.ms-search .ms-search-footer{
|
.ms-search .ms-search-footer{
|
||||||
|
|
Loading…
Reference in New Issue