@Service @Transactional public class CmsCommentService extends BaseService<CmsComment>
限定符和类型 | 字段和说明 |
---|---|
private CmsContentService |
contentService |
private CmsCommentDao |
dao |
static int |
STATUS_NORMAL |
static int |
STATUS_PEND |
basedao, log
构造器和说明 |
---|
CmsCommentService() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsComment> |
batchUpdate(java.util.List<CmsComment> entityList) |
java.util.Set<CmsContent> |
check(short siteId,
java.io.Serializable[] ids,
long userId) |
java.util.Set<CmsContent> |
delete(short siteId,
java.io.Serializable[] ids) |
PageHandler |
getPage(java.lang.Short[] siteIds,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
PageHandler |
getPage(java.lang.Short siteId,
java.lang.Long userId,
java.lang.Long replyId,
java.lang.Boolean emptyReply,
java.lang.Long replyUserId,
java.lang.Long contentId,
java.lang.Long checkUserId,
java.lang.Integer status,
java.lang.Boolean disabled,
java.lang.String orderField,
java.lang.String orderType,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
java.util.Set<CmsContent> |
uncheck(short siteId,
java.io.Serializable[] ids) |
CmsComment |
updateReplies(short siteId,
java.io.Serializable id,
int replies) |
CmsComment |
updateScores(short siteId,
java.io.Serializable id,
int scores) |
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, getId, save, save, update, update
public static final int STATUS_NORMAL
public static final int STATUS_PEND
private CmsCommentDao dao
private CmsContentService contentService
@Transactional(readOnly=true) public PageHandler getPage(java.lang.Short siteId, java.lang.Long userId, java.lang.Long replyId, java.lang.Boolean emptyReply, java.lang.Long replyUserId, java.lang.Long contentId, java.lang.Long checkUserId, java.lang.Integer status, java.lang.Boolean disabled, java.lang.String orderField, java.lang.String orderType, java.lang.Integer pageIndex, java.lang.Integer pageSize)
siteId
- userId
- replyId
- emptyReply
- replyUserId
- contentId
- checkUserId
- status
- disabled
- orderField
- orderType
- pageIndex
- pageSize
- @Transactional(readOnly=true) public PageHandler getPage(java.lang.Short[] siteIds, java.lang.Integer pageIndex, java.lang.Integer pageSize)
siteIds
- pageIndex
- pageSize
- public java.util.Set<CmsContent> check(short siteId, java.io.Serializable[] ids, long userId)
siteId
- ids
- userId
- public java.util.Set<CmsContent> uncheck(short siteId, java.io.Serializable[] ids)
siteId
- ids
- @Transactional(isolation=READ_COMMITTED) public CmsComment updateReplies(short siteId, java.io.Serializable id, int replies)
siteId
- id
- replies
- @Transactional(isolation=READ_COMMITTED) public CmsComment updateScores(short siteId, java.io.Serializable id, int scores)
siteId
- id
- scores
- public java.util.Set<CmsContent> delete(short siteId, java.io.Serializable[] ids)
siteId
- ids
- public java.util.List<CmsComment> batchUpdate(java.util.List<CmsComment> entityList)
entityList
-