Commit 1f4d59a9 by huangZW

111

parent d9612797
package com.gic.haoban.manage.api.service; package com.gic.haoban.manage.api.service;
import java.util.List;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.BasePageInfo; import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.manage.api.dto.HelpDTO; import com.gic.haoban.manage.api.dto.HelpDTO;
...@@ -18,4 +20,6 @@ public interface HelpApiService { ...@@ -18,4 +20,6 @@ public interface HelpApiService {
void deleteOne(String helpId); void deleteOne(String helpId);
List<HelpDTO> getList();
} }
...@@ -22,4 +22,6 @@ public interface TabHaobanHelpMapper { ...@@ -22,4 +22,6 @@ public interface TabHaobanHelpMapper {
Page<HelpDTO> pageList(); Page<HelpDTO> pageList();
TabHaobanHelp selectByHelpTitle(String helpTitle); TabHaobanHelp selectByHelpTitle(String helpTitle);
List<TabHaobanHelp> getList();
} }
\ No newline at end of file
...@@ -68,4 +68,10 @@ public class HelpApiServiceImpl implements HelpApiService{ ...@@ -68,4 +68,10 @@ public class HelpApiServiceImpl implements HelpApiService{
tabHaobanHelpMapper.deleteByPrimaryKey(helpId); tabHaobanHelpMapper.deleteByPrimaryKey(helpId);
} }
@Override
public List<HelpDTO> getList() {
List<TabHaobanHelp> list = tabHaobanHelpMapper.getList();
return EntityUtil.changeEntityListByJSON(HelpDTO.class, list);
}
} }
...@@ -144,6 +144,7 @@ ...@@ -144,6 +144,7 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_haoban_help from tab_haoban_help
where status_flag = 1
order by update_time desc order by update_time desc
</select> </select>
<select id="selectByHelpTitle" resultMap="BaseResultMap" parameterType="java.lang.String" > <select id="selectByHelpTitle" resultMap="BaseResultMap" parameterType="java.lang.String" >
...@@ -154,4 +155,13 @@ ...@@ -154,4 +155,13 @@
and status_flag = 1 and status_flag = 1
</select> </select>
<select id="getList" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_help
where status_flag = 1
and open_flag =1
order by update_time desc
</select>
</mapper> </mapper>
\ No newline at end of file
package com.gic.haoban.manage.web.controller;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.gic.haoban.common.utils.CheckSmsCodeUtil;
import com.gic.haoban.common.utils.GooglePhoneNumberUtil;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.communicate.api.service.valid.ValidationCodeService;
import com.gic.haoban.manage.api.service.HelpApiService;
//import com.gic.haoban.manage.api.dto.StaffDTO;
//import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.redis.data.util.RedisUtil;
import com.gic.reponse.SendSmsResponse;
@RestController
public class HelpController extends WebBaseController{
private static Logger logger = LoggerFactory.getLogger(HelpController.class);
@Autowired
private HelpApiService helpApiService;
/**
* 验证码校验
*
* @param phoneNumber
* @return
*/
@RequestMapping("/get-help-list")
public HaobanResponse getHelpList() {
helpApiService.getList();
return resultResponse(HaoBanErrCode.ERR_1);
}
}
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
<dubbo:reference interface="com.gic.haoban.manage.api.service.AuditApiService" id="auditApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.AuditApiService" id="auditApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.AuditSettingApiService" id="auditSettingApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.AuditSettingApiService" id="auditSettingApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.DictApiService" id="dictApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.DictApiService" id="dictApiService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.HelpApiService" id="helpApiService"/>
<dubbo:reference interface="com.gic.wechat.token.api.service.QywxTokenManageService" id="qywxTokenManageService"/> <dubbo:reference interface="com.gic.wechat.token.api.service.QywxTokenManageService" id="qywxTokenManageService"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment