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
1
Merge Requests
1
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
795938b1
Commit
795938b1
authored
Jun 17, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管
parent
05f0a7ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
228 additions
and
0 deletions
+228
-0
QywxAlarmWordsController.java
.../manage/web/controller/open/QywxAlarmWordsController.java
+110
-0
AlarmWordsLogPageQO.java
...om/gic/haoban/manage/web/qo/open/AlarmWordsLogPageQO.java
+64
-0
AlarmWordsPageQO.java
...a/com/gic/haoban/manage/web/qo/open/AlarmWordsPageQO.java
+37
-0
AlarmWordsQO.java
.../java/com/gic/haoban/manage/web/qo/open/AlarmWordsQO.java
+17
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxAlarmWordsController.java
0 → 100644
View file @
795938b1
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
open
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.manage.web.qo.open.AlarmWordsLogPageQO
;
import
com.gic.haoban.manage.web.qo.open.AlarmWordsPageQO
;
import
com.gic.haoban.manage.web.qo.open.AlarmWordsQO
;
import
com.gic.haoban.task.manage.api.dto.open.*
;
import
com.gic.haoban.task.manage.api.qdto.open.AlarmWordsLogQDTO
;
import
com.gic.haoban.task.manage.api.qdto.open.QwOpenAlarmWordsQDTO
;
import
com.gic.haoban.task.manage.api.service.OpenQwApiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 企微托管-敏感词
*/
@RestController
@RequestMapping
(
"/qw-open"
)
public
class
QywxAlarmWordsController
{
@Autowired
private
OpenQwApiService
openQwApiService
;
/**
* 敏感词列表
*/
@RequestMapping
(
"page-alarm-words"
)
public
RestResponse
<
Page
<
OpenQwAlarmWordsDTO
>>
pageAlarmWords
(
AlarmWordsPageQO
qo
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
()
;
String
enterpriseId
=
loginUser
.
getEnterpriseId
()
;
BasePageInfo
basePageInfo
=
new
BasePageInfo
()
;
basePageInfo
.
setPageNum
(
qo
.
getPageNum
());
basePageInfo
.
setPageSize
(
qo
.
getPageSize
());
QwOpenAlarmWordsQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
QwOpenAlarmWordsQDTO
.
class
,
qo
)
;
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Page
<
OpenQwAlarmWordsDTO
>>
resp
=
this
.
openQwApiService
.
alarmWordsPage
(
qdto
,
basePageInfo
)
;
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
}
return
RestResponse
.
successResult
(
resp
.
getResult
())
;
}
/**
* 保存敏感词
* @param qo
* @return
*/
@RequestMapping
(
"save-alarm-words"
)
public
RestResponse
<
Void
>
saveAlarmWords
(
AlarmWordsQO
qo
)
{
OpenQwAlarmWordsDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
OpenQwAlarmWordsDTO
.
class
,
qo
)
;
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
()
;
String
enterpriseId
=
loginUser
.
getEnterpriseId
()
;
dto
.
setWxEnterpriseId
(
wxEnterpriseId
);
dto
.
setEnterpriseId
(
enterpriseId
);
dto
.
setCreatorName
(
loginUser
.
getClerkId
());
dto
.
setCreatorName
(
loginUser
.
getClerkName
());
ServiceResponse
<
Void
>
resp
=
this
.
openQwApiService
.
saveAlarmWords
(
dto
)
;
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
}
return
RestResponse
.
successResult
()
;
}
/**
* 删除敏感词
* @param id
* @return
*/
@RequestMapping
(
"del-alarm-words"
)
public
RestResponse
<
Void
>
delAlarmWords
(
Long
id
)
{
ServiceResponse
<
Void
>
resp
=
this
.
openQwApiService
.
delAlarmWords
(
id
)
;
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
}
return
RestResponse
.
successResult
()
;
}
/**
* 敏感词监控列表
*/
@RequestMapping
(
"page-alarm-words-log"
)
public
RestResponse
<
Page
<
OpenQwAlarmLogDTO
>>
pageAlarmLog
(
AlarmWordsLogPageQO
qo
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
()
;
String
enterpriseId
=
loginUser
.
getEnterpriseId
()
;
BasePageInfo
basePageInfo
=
new
BasePageInfo
()
;
basePageInfo
.
setPageNum
(
qo
.
getPageNum
());
basePageInfo
.
setPageSize
(
qo
.
getPageSize
());
AlarmWordsLogQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
AlarmWordsLogQDTO
.
class
,
qo
)
;
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Page
<
OpenQwAlarmLogDTO
>>
resp
=
this
.
openQwApiService
.
alarmWordsLogPage
(
qdto
,
basePageInfo
)
;
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
())
;
}
return
RestResponse
.
successResult
(
resp
.
getResult
())
;
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/open/AlarmWordsLogPageQO.java
0 → 100644
View file @
795938b1
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
open
;
import
com.gic.api.base.commons.BasePageInfo
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
AlarmWordsLogPageQO
extends
BasePageInfo
implements
Serializable
{
/**
* 导购
*/
private
String
clerkParams
;
/**
* 门店
*/
private
String
storeParams
;
/**
* 0全部 1单聊 2群
*/
private
int
chatType
;
private
Date
startDate
;
private
Date
endDate
;
public
String
getClerkParams
()
{
return
clerkParams
;
}
public
void
setClerkParams
(
String
clerkParams
)
{
this
.
clerkParams
=
clerkParams
;
}
public
String
getStoreParams
()
{
return
storeParams
;
}
public
void
setStoreParams
(
String
storeParams
)
{
this
.
storeParams
=
storeParams
;
}
public
int
getChatType
()
{
return
chatType
;
}
public
void
setChatType
(
int
chatType
)
{
this
.
chatType
=
chatType
;
}
public
Date
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
Date
startDate
)
{
this
.
startDate
=
startDate
;
}
public
Date
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/open/AlarmWordsPageQO.java
0 → 100644
View file @
795938b1
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
open
;
import
com.gic.api.base.commons.BasePageInfo
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
AlarmWordsPageQO
extends
BasePageInfo
implements
Serializable
{
private
String
searchParam
;
private
Date
startDate
;
private
Date
endDate
;
public
String
getSearchParam
()
{
return
searchParam
;
}
public
void
setSearchParam
(
String
searchParam
)
{
this
.
searchParam
=
searchParam
;
}
public
Date
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
Date
startDate
)
{
this
.
startDate
=
startDate
;
}
public
Date
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/open/AlarmWordsQO.java
0 → 100644
View file @
795938b1
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
open
;
import
java.io.Serializable
;
public
class
AlarmWordsQO
implements
Serializable
{
/**敏感词*/
private
String
words
;
public
String
getWords
()
{
return
words
;
}
public
void
setWords
(
String
words
)
{
this
.
words
=
words
;
}
}
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