From c729748faab8d01651f678367a818fcbc10ce9ad Mon Sep 17 00:00:00 2001 From: ck <851316342@qq.com> Date: Fri, 16 Oct 2020 17:34:46 +0800 Subject: [PATCH] attachment --- .../service/CaseContentCommentsService.java | 3 ++ .../impl/CaseContentCommentsServiceImpl.java | 38 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/src/main/java/com/bsd/cases/service/CaseContentCommentsService.java b/src/main/java/com/bsd/cases/service/CaseContentCommentsService.java index cb1a5e1..aca92d6 100644 --- a/src/main/java/com/bsd/cases/service/CaseContentCommentsService.java +++ b/src/main/java/com/bsd/cases/service/CaseContentCommentsService.java @@ -1,10 +1,13 @@ package com.bsd.cases.service; import com.alibaba.fastjson.JSONObject; +import com.bsd.cases.util.AjaxResult; import java.util.List; public interface CaseContentCommentsService extends BaseService { JSONObject getCaseContentCommentsByContentId(Long contentId, Integer pageNum, Integer pageSize); + + AjaxResult addComments(Long contentId,String comments); } diff --git a/src/main/java/com/bsd/cases/service/impl/CaseContentCommentsServiceImpl.java b/src/main/java/com/bsd/cases/service/impl/CaseContentCommentsServiceImpl.java index 027bd0c..9baf36b 100644 --- a/src/main/java/com/bsd/cases/service/impl/CaseContentCommentsServiceImpl.java +++ b/src/main/java/com/bsd/cases/service/impl/CaseContentCommentsServiceImpl.java @@ -3,8 +3,11 @@ package com.bsd.cases.service.impl; import com.alibaba.fastjson.JSONObject; import com.bsd.cases.constants.Constants; import com.bsd.cases.mapper.CaseContentCommentsMapper; +import com.bsd.cases.mapper.CaseContentStaticalMapper; import com.bsd.cases.model.CaseContentComments; +import com.bsd.cases.model.CaseContentStatical; import com.bsd.cases.service.CaseContentCommentsService; +import com.bsd.cases.util.AjaxResult; import com.bsd.cases.util.PageUtils; import com.bsd.cases.vo.CaseContentCommentsVo; import com.sun.org.apache.bcel.internal.generic.NEW; @@ -13,6 +16,7 @@ import org.springframework.transaction.annotation.Transactional; import org.yaml.snakeyaml.scanner.Constant; import javax.annotation.Resource; +import java.util.Date; import java.util.List; @Service("caseContentCommentsService") @@ -21,6 +25,8 @@ public class CaseContentCommentsServiceImpl extends BaseServiceImpl { @Resource private CaseContentCommentsMapper caseContentCommentsMapper; + @Resource + private CaseContentStaticalMapper caseContentStaticalMapper; /** @@ -39,4 +45,36 @@ public class CaseContentCommentsServiceImpl extends BaseServiceImpl