|
@@ -38,12 +38,12 @@ public class WechatReplyServiceImpl implements WechatReplyService {
|
|
|
/**
|
|
|
* 获取回复配置列表
|
|
|
*
|
|
|
- * @param type 类型: 1采美,2呵呵商城
|
|
|
- * @param title 回复素材标题
|
|
|
- * @param responseType 事件类型
|
|
|
- * @param msgType 回复类型
|
|
|
- * @param pageNum 页码
|
|
|
- * @param pageSize 每页大小
|
|
|
+ * @param type 类型: 1采美,2呵呵商城
|
|
|
+ * @param title 回复素材标题
|
|
|
+ * @param responseType 事件类型
|
|
|
+ * @param msgType 回复类型
|
|
|
+ * @param pageNum 页码
|
|
|
+ * @param pageSize 每页大小
|
|
|
*/
|
|
|
@Override
|
|
|
public ResponseJson<PaginationVo<WechatReply>> getReplyList(Integer type, String title, String responseType, String msgType, int pageNum, int pageSize) {
|
|
@@ -79,18 +79,19 @@ public class WechatReplyServiceImpl implements WechatReplyService {
|
|
|
if (null == dbReply) {
|
|
|
return ResponseJson.error("当前回复配置异常!", null);
|
|
|
}
|
|
|
- if (StringUtils.hasLength(reply.getMsgType())){
|
|
|
+ if (StringUtils.hasLength(reply.getMsgType())) {
|
|
|
dbReply.setMsgType(reply.getMsgType());
|
|
|
}
|
|
|
- if (StringUtils.hasLength(reply.getResponseType())){
|
|
|
+ if (StringUtils.hasLength(reply.getResponseType())) {
|
|
|
dbReply.setResponseType(reply.getResponseType());
|
|
|
}
|
|
|
- if (StringUtils.hasLength(reply.getKeyword())){
|
|
|
+ if (StringUtils.hasLength(reply.getKeyword())) {
|
|
|
dbReply.setKeyword(reply.getKeyword());
|
|
|
}
|
|
|
- if (StringUtils.hasLength(reply.getTitle())){
|
|
|
+ if (StringUtils.hasLength(reply.getTitle())) {
|
|
|
dbReply.setTitle(reply.getTitle());
|
|
|
}
|
|
|
+ dbReply.setRelateId(reply.getRelateId());
|
|
|
Integer userId = systemDao.getUserIdByUsername(username);
|
|
|
dbReply.setUserId(userId);
|
|
|
// 更新
|