Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
Project
Project
Details
Activity
Releases
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
TCM
tcm-system
Commits
32918cb1
Commit
32918cb1
authored
Jun 10, 2025
by
tangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审核bug
parent
e4017cc8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
25 deletions
+61
-25
AgreementController.java
...angding/web/authority/controller/AgreementController.java
+4
-3
CompanyConsumer.java
...n/java/com/pangding/web/authority/mq/CompanyConsumer.java
+5
-0
AgreementServiceImpl.java
...ding/web/authority/service/impl/AgreementServiceImpl.java
+6
-2
CompanyMsgServiceImpl.java
...ing/web/authority/service/impl/CompanyMsgServiceImpl.java
+38
-14
CodeService.java
.../java/com/pangding/web/authority/vo/code/CodeService.java
+4
-4
PdDebugConfig.java
...ava/com/pangding/web/authority/vo/code/PdDebugConfig.java
+2
-2
bootstrap-dev.yml
src/main/resources/bootstrap-dev.yml
+2
-0
No files found.
src/main/java/com/pangding/web/authority/controller/AgreementController.java
View file @
32918cb1
...
@@ -10,7 +10,6 @@ import freemarker.template.Configuration;
...
@@ -10,7 +10,6 @@ import freemarker.template.Configuration;
import
freemarker.template.Template
;
import
freemarker.template.Template
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -21,7 +20,6 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -21,7 +20,6 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.BufferedWriter
;
import
java.io.BufferedWriter
;
import
java.io.OutputStreamWriter
;
import
java.io.OutputStreamWriter
;
import
java.io.Writer
;
import
java.io.Writer
;
import
java.net.StandardProtocolFamily
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
...
@@ -35,9 +33,12 @@ import java.nio.charset.StandardCharsets;
...
@@ -35,9 +33,12 @@ import java.nio.charset.StandardCharsets;
@Api
(
value
=
"合同模板类"
,
description
=
"合同模板的查询,新增,修改,删除等相关操作"
)
@Api
(
value
=
"合同模板类"
,
description
=
"合同模板的查询,新增,修改,删除等相关操作"
)
public
class
AgreementController
{
public
class
AgreementController
{
@Autowired
private
AgreementService
agreementService
;
private
AgreementService
agreementService
;
public
AgreementController
(
AgreementService
agreementService
)
{
this
.
agreementService
=
agreementService
;
}
@RequestMapping
(
value
=
"/getListAgreement"
)
@RequestMapping
(
value
=
"/getListAgreement"
)
@ApiOperation
(
value
=
"获取合同模板列表"
,
notes
=
"返回合同模板列表"
)
@ApiOperation
(
value
=
"获取合同模板列表"
,
notes
=
"返回合同模板列表"
)
public
ResponseResult
getListAgreement
(
@RequestBody
AgreementTemplateReqVo
req
)
{
public
ResponseResult
getListAgreement
(
@RequestBody
AgreementTemplateReqVo
req
)
{
...
...
src/main/java/com/pangding/web/authority/mq/CompanyConsumer.java
View file @
32918cb1
...
@@ -20,6 +20,7 @@ import com.pangding.web.vo.system.req.CompanyMsgReqVo;
...
@@ -20,6 +20,7 @@ import com.pangding.web.vo.system.req.CompanyMsgReqVo;
import
com.pangding.web.vo.system.req.SystemWarnReqVo
;
import
com.pangding.web.vo.system.req.SystemWarnReqVo
;
import
com.pangding.web.vo.system.req.company.UpdateCompanyMoneyReqVo
;
import
com.pangding.web.vo.system.req.company.UpdateCompanyMoneyReqVo
;
import
com.pangding.web.vo.system.res.company.CompanyResVo
;
import
com.pangding.web.vo.system.res.company.CompanyResVo
;
import
com.pangding.web.vo2.distribution.sound.req.SendMsgReqVo
;
import
com.pangding.web.vo2.user.company.req.CompanyOtherMoneyUpdateReqVo
;
import
com.pangding.web.vo2.user.company.req.CompanyOtherMoneyUpdateReqVo
;
import
com.rabbitmq.client.Channel
;
import
com.rabbitmq.client.Channel
;
import
com.yanzuoguang.mq.service.MqService
;
import
com.yanzuoguang.mq.service.MqService
;
...
@@ -236,6 +237,10 @@ public class CompanyConsumer {
...
@@ -236,6 +237,10 @@ public class CompanyConsumer {
payProducer
.
sendSound
(
soundReqVo
);
payProducer
.
sendSound
(
soundReqVo
);
}
}
public
void
thirdSendSound
(
SendMsgReqVo
sendMsgReqVo
)
{
payProducer
.
thirdSendSound
(
sendMsgReqVo
);
}
/**
/**
* 同步公司信息
* 同步公司信息
*
*
...
...
src/main/java/com/pangding/web/authority/service/impl/AgreementServiceImpl.java
View file @
32918cb1
...
@@ -10,14 +10,18 @@ import com.yanzuoguang.util.helper.DateHelper;
...
@@ -10,14 +10,18 @@ import com.yanzuoguang.util.helper.DateHelper;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
@
Service
@
Component
public
class
AgreementServiceImpl
implements
AgreementService
{
public
class
AgreementServiceImpl
implements
AgreementService
{
@Autowired
private
AgreementTemplateDao
agreementTemplateDao
;
private
AgreementTemplateDao
agreementTemplateDao
;
public
AgreementServiceImpl
(
AgreementTemplateDao
agreementTemplateDao
)
{
this
.
agreementTemplateDao
=
agreementTemplateDao
;
}
@Override
@Override
public
AgreementTemplateResVo
findAgreementDetail
(
AgreementTemplateReqVo
req
)
{
public
AgreementTemplateResVo
findAgreementDetail
(
AgreementTemplateReqVo
req
)
{
AgreementTemplateResVo
agreementTemplateResVo
=
agreementTemplateDao
.
load
(
req
,
AgreementTemplateResVo
.
class
);
AgreementTemplateResVo
agreementTemplateResVo
=
agreementTemplateDao
.
load
(
req
,
AgreementTemplateResVo
.
class
);
...
...
src/main/java/com/pangding/web/authority/service/impl/CompanyMsgServiceImpl.java
View file @
32918cb1
...
@@ -21,6 +21,7 @@ import com.pangding.web.vo.system.res.CompanyMsgResVo;
...
@@ -21,6 +21,7 @@ import com.pangding.web.vo.system.res.CompanyMsgResVo;
import
com.pangding.web.vo.system.res.DeviceResVo
;
import
com.pangding.web.vo.system.res.DeviceResVo
;
import
com.pangding.web.vo.system.res.authority.UserResVo
;
import
com.pangding.web.vo.system.res.authority.UserResVo
;
import
com.pangding.web.vo.system.res.company.CompanyResVo
;
import
com.pangding.web.vo.system.res.company.CompanyResVo
;
import
com.pangding.web.vo2.distribution.sound.req.SendMsgReqVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
...
@@ -72,20 +73,12 @@ public class CompanyMsgServiceImpl implements CompanyMsgService {
...
@@ -72,20 +73,12 @@ public class CompanyMsgServiceImpl implements CompanyMsgService {
System
.
out
.
println
(
"请求参数:"
+
JsonHelper
.
serialize
(
deviceReqVo
)
+
",查询结果:"
+
JsonHelper
.
serialize
(
deviceResVo
));
System
.
out
.
println
(
"请求参数:"
+
JsonHelper
.
serialize
(
deviceReqVo
)
+
",查询结果:"
+
JsonHelper
.
serialize
(
deviceResVo
));
if
(!
StringHelper
.
isEmpty
(
deviceResVo
))
{
if
(!
StringHelper
.
isEmpty
(
deviceResVo
))
{
String
deviceCode
=
deviceResVo
.
getDeviceCode
();
String
deviceCode
=
deviceResVo
.
getDeviceCode
();
String
deviceName
=
deviceResVo
.
getDeviceName
();
if
(
"a1hCrozAwg1"
.
equals
(
deviceCode
)){
SoundContentInfoVo
soundContentInfoVo
=
new
SoundContentInfoVo
();
// 通联音响
soundContentInfoVo
.
setMsg_content
(
reqVo
.
getMsgContent
());
sendTonglianSound
(
reqVo
,
deviceResVo
);
soundContentInfoVo
.
setMsg_id
(
reqVo
.
getId
());
}
else
{
soundContentInfoVo
.
setVoice_speed
(
"50"
);
sendThirdSound
(
reqVo
,
deviceResVo
);
SoundContentReqVo
soundContentReqVo
=
new
SoundContentReqVo
();
}
soundContentReqVo
.
setInfo
(
soundContentInfoVo
);
soundContentReqVo
.
setType
(
"audio"
);
SoundReqVo
soundReqVo
=
new
SoundReqVo
();
soundReqVo
.
setContent
(
soundContentReqVo
);
soundReqVo
.
setProKey
(
deviceCode
);
soundReqVo
.
setTopicName
(
"/"
+
deviceCode
+
"/"
+
deviceName
+
"/user/report"
);
companyConsumer
.
sendSound
(
soundReqVo
);
}
}
SoundContentVo
soundContentVo
=
new
SoundContentVo
();
SoundContentVo
soundContentVo
=
new
SoundContentVo
();
...
@@ -107,6 +100,37 @@ public class CompanyMsgServiceImpl implements CompanyMsgService {
...
@@ -107,6 +100,37 @@ public class CompanyMsgServiceImpl implements CompanyMsgService {
}
}
public
void
sendTonglianSound
(
CompanyMsgReqVo
reqVo
,
DeviceResVo
deviceResVo
){
String
deviceCode
=
deviceResVo
.
getDeviceCode
();
String
deviceName
=
deviceResVo
.
getDeviceName
();
SoundContentInfoVo
soundContentInfoVo
=
new
SoundContentInfoVo
();
soundContentInfoVo
.
setMsg_content
(
reqVo
.
getMsgContent
());
soundContentInfoVo
.
setMsg_id
(
reqVo
.
getId
());
soundContentInfoVo
.
setVoice_speed
(
"50"
);
SoundContentReqVo
soundContentReqVo
=
new
SoundContentReqVo
();
soundContentReqVo
.
setInfo
(
soundContentInfoVo
);
soundContentReqVo
.
setType
(
"audio"
);
SoundReqVo
soundReqVo
=
new
SoundReqVo
();
soundReqVo
.
setContent
(
soundContentReqVo
);
soundReqVo
.
setProKey
(
deviceCode
);
soundReqVo
.
setTopicName
(
"/"
+
deviceCode
+
"/"
+
deviceName
+
"/user/report"
);
companyConsumer
.
sendSound
(
soundReqVo
);
}
public
void
sendThirdSound
(
CompanyMsgReqVo
reqVo
,
DeviceResVo
deviceResVo
){
String
deviceCode
=
deviceResVo
.
getDeviceCode
();
SendMsgReqVo
sendMsgReqVo
=
new
SendMsgReqVo
();
sendMsgReqVo
.
setMessage
(
reqVo
.
getMsgContent
());
sendMsgReqVo
.
setTime
(
String
.
valueOf
(
System
.
currentTimeMillis
()));
sendMsgReqVo
.
setType
(
1
);
sendMsgReqVo
.
setDevid
(
deviceCode
);
sendMsgReqVo
.
setOrderid
(
""
);
sendMsgReqVo
.
setPayment
(
100
);
sendMsgReqVo
.
setReqid
(
StringHelper
.
getNewID
());
companyConsumer
.
thirdSendSound
(
sendMsgReqVo
);
}
public
void
checkCompanyExpirationDate
(
CompanyReqVo
req
){
public
void
checkCompanyExpirationDate
(
CompanyReqVo
req
){
CompanyResVo
companyResVo
=
companyDao
.
load
(
req
.
getId
(),
CompanyResVo
.
class
);
CompanyResVo
companyResVo
=
companyDao
.
load
(
req
.
getId
(),
CompanyResVo
.
class
);
...
...
src/main/java/com/pangding/web/authority/vo/code/CodeService.java
View file @
32918cb1
...
@@ -24,15 +24,15 @@ import java.util.concurrent.TimeUnit;
...
@@ -24,15 +24,15 @@ import java.util.concurrent.TimeUnit;
public
class
CodeService
{
public
class
CodeService
{
private
final
DefaultKaptcha
defaultKaptcha
;
private
final
DefaultKaptcha
defaultKaptcha
;
private
final
DebugConfig
d
ebugConfig
;
private
final
PdDebugConfig
pdD
ebugConfig
;
@CreateCache
(
name
=
CacheName
.
USER_PASSWORD_CODE
,
cacheType
=
CacheType
.
REMOTE
,
expire
=
60
,
timeUnit
=
TimeUnit
.
MINUTES
)
@CreateCache
(
name
=
CacheName
.
USER_PASSWORD_CODE
,
cacheType
=
CacheType
.
REMOTE
,
expire
=
60
,
timeUnit
=
TimeUnit
.
MINUTES
)
private
Cache
<
String
,
String
>
cache
;
private
Cache
<
String
,
String
>
cache
;
public
CodeService
(
DefaultKaptcha
defaultKaptcha
,
DebugConfig
d
ebugConfig
)
{
public
CodeService
(
DefaultKaptcha
defaultKaptcha
,
PdDebugConfig
pdD
ebugConfig
)
{
this
.
defaultKaptcha
=
defaultKaptcha
;
this
.
defaultKaptcha
=
defaultKaptcha
;
this
.
debugConfig
=
d
ebugConfig
;
this
.
pdDebugConfig
=
pdD
ebugConfig
;
}
}
...
@@ -55,7 +55,7 @@ public class CodeService {
...
@@ -55,7 +55,7 @@ public class CodeService {
// 对字节组Base64编码
// 对字节组Base64编码
String
img
=
Base64
.
getEncoder
().
encodeToString
(
out
.
toByteArray
());
String
img
=
Base64
.
getEncoder
().
encodeToString
(
out
.
toByteArray
());
CodeVo
code
=
new
CodeVo
(
StringHelper
.
getNewID
(),
img
);
CodeVo
code
=
new
CodeVo
(
StringHelper
.
getNewID
(),
img
);
if
(
d
ebugConfig
.
isDebug
())
{
if
(
pdD
ebugConfig
.
isDebug
())
{
code
.
setCode
(
text
);
code
.
setCode
(
text
);
}
}
// 验证验证码文字
// 验证验证码文字
...
...
src/main/java/com/pangding/web/authority/vo/code/DebugConfig.java
→
src/main/java/com/pangding/web/authority/vo/code/
Pd
DebugConfig.java
View file @
32918cb1
...
@@ -4,7 +4,7 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -4,7 +4,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
@Component
@Component
public
class
DebugConfig
{
public
class
Pd
DebugConfig
{
@Value
(
"${pd.debug:false}"
)
@Value
(
"${pd.debug:false}"
)
private
boolean
debug
;
private
boolean
debug
;
@Value
(
"${pd.debugLog:false}"
)
@Value
(
"${pd.debugLog:false}"
)
...
@@ -12,7 +12,7 @@ public class DebugConfig {
...
@@ -12,7 +12,7 @@ public class DebugConfig {
@Value
(
"${pd.cache:true}"
)
@Value
(
"${pd.cache:true}"
)
private
boolean
cache
;
private
boolean
cache
;
public
DebugConfig
()
{
public
Pd
DebugConfig
()
{
}
}
public
boolean
isDebug
()
{
public
boolean
isDebug
()
{
...
...
src/main/resources/bootstrap-dev.yml
View file @
32918cb1
...
@@ -8,6 +8,8 @@ yzg:
...
@@ -8,6 +8,8 @@ yzg:
PrintSql
:
true
PrintSql
:
true
pd
:
pd
:
debug
:
true
debug
:
true
debugLog
:
false
cache
:
true
msg
:
msg
:
payMsgId
:
4
payMsgId
:
4
...
...
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