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
3de2a1b1
Commit
3de2a1b1
authored
Feb 03, 2021
by
tangf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息发送
parent
25695e14
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
217 additions
and
84 deletions
+217
-84
CompanyMsgDaoImpl.java
...om/pangding/web/authority/dao/impl/CompanyMsgDaoImpl.java
+3
-2
CompanyCodeServiceImpl.java
...ng/web/authority/service/impl/CompanyCodeServiceImpl.java
+12
-4
CompanyServiceImpl.java
...ngding/web/authority/service/impl/CompanyServiceImpl.java
+192
-78
GenerateQrCodeUrlReqVo.java
...ngding/web/authority/vo/reqvo/GenerateQrCodeUrlReqVo.java
+10
-0
No files found.
src/main/java/com/pangding/web/authority/dao/impl/CompanyMsgDaoImpl.java
View file @
3de2a1b1
...
...
@@ -25,9 +25,10 @@ public class CompanyMsgDaoImpl extends BaseDaoImpl implements CompanyMsgDao {
table
.
add
(
QUERY_LIST_PAGE
,
"select m.*,cm.msg_id,cm.company_id,cm.type,cm.merchant_id "
+
"from pd_company_msg cm left join pd_msg m on cm.msg_id = m.id where 1=1 "
)
.
add
(
"companyId"
,
"
and
cm.company_id = ? "
)
.
add
(
"companyId"
,
"
AND
cm.company_id = ? "
)
.
add
(
"merchantId"
,
" AND cm.merchant_id = ? "
)
.
add
(
"type"
,
"and cm.type = ? "
);
.
add
(
"msgId"
,
" AND cm.msg_id = ? "
)
.
add
(
"type"
,
" AND cm.type = ? "
);
}
...
...
src/main/java/com/pangding/web/authority/service/impl/CompanyCodeServiceImpl.java
View file @
3de2a1b1
...
...
@@ -37,10 +37,18 @@ public class CompanyCodeServiceImpl implements CompanyCodeService {
@Override
public
String
saveComapnyCode
(
CompanyCodeReqVo
req
){
CompanyCodeVo
companyCodeVo
=
new
CompanyCodeVo
();
CompanyCodeReqVo
companyCodeReqVo
=
new
CompanyCodeReqVo
();
companyCodeReqVo
.
setCompanyId
(
req
.
getCompanyId
());
companyCodeReqVo
.
setCodeCode
(
req
.
getCodeCode
());
companyCodeReqVo
.
setCodeType
(
req
.
getCodeType
());
CompanyCodeVo
companyCodeVo
=
companyCodeDao
.
load
(
companyCodeReqVo
,
CompanyCodeVo
.
class
);
if
(
StringHelper
.
isEmpty
(
companyCodeVo
)){
companyCodeVo
=
new
CompanyCodeVo
();
ObjectHelper
.
writeWithFrom
(
companyCodeVo
,
req
);
companyCodeVo
.
setCompanyCodeId
(
StringHelper
.
getNewID
());
return
companyCodeDao
.
create
(
companyCodeVo
);
companyCodeDao
.
create
(
companyCodeVo
);
}
return
""
;
}
}
src/main/java/com/pangding/web/authority/service/impl/CompanyServiceImpl.java
View file @
3de2a1b1
This diff is collapsed.
Click to expand it.
src/main/java/com/pangding/web/authority/vo/reqvo/GenerateQrCodeUrlReqVo.java
View file @
3de2a1b1
...
...
@@ -16,6 +16,8 @@ public class GenerateQrCodeUrlReqVo {
private
String
merchantName
;
@ApiModelProperty
(
notes
=
"二维码类型,1支付码, 2 营销码"
)
public
Integer
codeType
;
@ApiModelProperty
(
notes
=
"推送消息id"
)
public
String
msgId
;
private
int
select
;
...
...
@@ -66,4 +68,12 @@ public class GenerateQrCodeUrlReqVo {
public
void
setCodeType
(
Integer
codeType
)
{
this
.
codeType
=
codeType
;
}
public
String
getMsgId
()
{
return
msgId
;
}
public
void
setMsgId
(
String
msgId
)
{
this
.
msgId
=
msgId
;
}
}
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