ci: 问题接口增加日志
This commit is contained in:
+4
@@ -23,6 +23,7 @@ import com.jero.modules.system.entity.SysDictItem;
|
|||||||
import com.jero.modules.system.entity.SysUser;
|
import com.jero.modules.system.entity.SysUser;
|
||||||
import com.jero.modules.system.service.ISysDepartService;
|
import com.jero.modules.system.service.ISysDepartService;
|
||||||
import com.jero.modules.system.service.ISysUserService;
|
import com.jero.modules.system.service.ISysUserService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.SecurityUtils;
|
||||||
@@ -53,6 +54,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Slf4j
|
||||||
@Transactional(rollbackFor = JeroBootException.class)
|
@Transactional(rollbackFor = JeroBootException.class)
|
||||||
public class LawsProblemLibraryServiceImpl extends ServiceImpl<LawsProblemLibraryMapper, LawsProblemLibrary> implements ILawsProblemLibraryService {
|
public class LawsProblemLibraryServiceImpl extends ServiceImpl<LawsProblemLibraryMapper, LawsProblemLibrary> implements ILawsProblemLibraryService {
|
||||||
|
|
||||||
@@ -274,6 +276,7 @@ public class LawsProblemLibraryServiceImpl extends ServiceImpl<LawsProblemLibrar
|
|||||||
* @Description: 发送消息
|
* @Description: 发送消息
|
||||||
**/
|
**/
|
||||||
private void sendMsg(LawsAnswerLibrary lawsAnswerLibrary) {
|
private void sendMsg(LawsAnswerLibrary lawsAnswerLibrary) {
|
||||||
|
log.info("lawsAnswerLibrary.getProblemId()的id为:{}", lawsAnswerLibrary.getProblemId());
|
||||||
LawsProblemLibrary lawsProblemLibrary = getById(lawsAnswerLibrary.getProblemId());
|
LawsProblemLibrary lawsProblemLibrary = getById(lawsAnswerLibrary.getProblemId());
|
||||||
SendMessageDTO sendMessageDTO = new SendMessageDTO();
|
SendMessageDTO sendMessageDTO = new SendMessageDTO();
|
||||||
sendMessageDTO.setTemplateCode(MessageTemplateCodeCommon.LAWS_PROBLEM_LIBRARY);
|
sendMessageDTO.setTemplateCode(MessageTemplateCodeCommon.LAWS_PROBLEM_LIBRARY);
|
||||||
@@ -283,6 +286,7 @@ public class LawsProblemLibraryServiceImpl extends ServiceImpl<LawsProblemLibrar
|
|||||||
map.put("standardName", lawsProblemLibrary.getStandardName());
|
map.put("standardName", lawsProblemLibrary.getStandardName());
|
||||||
map.put("title", lawsProblemLibrary.getTitle());
|
map.put("title", lawsProblemLibrary.getTitle());
|
||||||
map.put("openType", "url");
|
map.put("openType", "url");
|
||||||
|
log.info("openPage:{}", "/businessSupport/questionDetail?id=" + lawsAnswerLibrary.getProblemId() + "&canAnswer=1");
|
||||||
map.put("openPage", "/businessSupport/questionDetail?id=" + lawsAnswerLibrary.getProblemId() + "&canAnswer=1");
|
map.put("openPage", "/businessSupport/questionDetail?id=" + lawsAnswerLibrary.getProblemId() + "&canAnswer=1");
|
||||||
sendMessageDTO.setMap(map);
|
sendMessageDTO.setMap(map);
|
||||||
sendMessageAPI.sendMessage(sendMessageDTO);
|
sendMessageAPI.sendMessage(sendMessageDTO);
|
||||||
|
|||||||
Reference in New Issue
Block a user