Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
1f4d59a9
Commit
1f4d59a9
authored
Apr 20, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
d9612797
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
0 deletions
+70
-0
HelpApiService.java
...ava/com/gic/haoban/manage/api/service/HelpApiService.java
+4
-0
TabHaobanHelpMapper.java
...haoban/manage/service/dao/mapper/TabHaobanHelpMapper.java
+3
-0
HelpApiServiceImpl.java
...n/manage/service/service/out/impl/HelpApiServiceImpl.java
+6
-0
TabHaobanHelpMapper.xml
...service/src/main/resources/mapper/TabHaobanHelpMapper.xml
+11
-0
HelpController.java
.../com/gic/haoban/manage/web/controller/HelpController.java
+45
-0
dubbo-haoban-manage-web.xml
...3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
+1
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/HelpApiService.java
View file @
1f4d59a9
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
java.util.List
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.manage.api.dto.HelpDTO
;
...
...
@@ -17,5 +19,7 @@ public interface HelpApiService {
Page
<
HelpDTO
>
pageList
(
BasePageInfo
pageInfo
);
void
deleteOne
(
String
helpId
);
List
<
HelpDTO
>
getList
();
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanHelpMapper.java
View file @
1f4d59a9
...
...
@@ -22,4 +22,6 @@ public interface TabHaobanHelpMapper {
Page
<
HelpDTO
>
pageList
();
TabHaobanHelp
selectByHelpTitle
(
String
helpTitle
);
List
<
TabHaobanHelp
>
getList
();
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HelpApiServiceImpl.java
View file @
1f4d59a9
...
...
@@ -68,4 +68,10 @@ public class HelpApiServiceImpl implements HelpApiService{
tabHaobanHelpMapper
.
deleteByPrimaryKey
(
helpId
);
}
@Override
public
List
<
HelpDTO
>
getList
()
{
List
<
TabHaobanHelp
>
list
=
tabHaobanHelpMapper
.
getList
();
return
EntityUtil
.
changeEntityListByJSON
(
HelpDTO
.
class
,
list
);
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanHelpMapper.xml
View file @
1f4d59a9
...
...
@@ -144,6 +144,7 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_help
where status_flag = 1
order by update_time desc
</select>
<select
id=
"selectByHelpTitle"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
...
...
@@ -153,5 +154,14 @@
where help_title = #{helpTitleitle,jdbcType=VARCHAR}
and status_flag = 1
</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>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/HelpController.java
0 → 100644
View file @
1f4d59a9
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
);
}
}
haoban-manage3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
View file @
1f4d59a9
...
...
@@ -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.AuditSettingApiService"
id=
"auditSettingApiService"
/>
<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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment