Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
692754fc
Commit
692754fc
authored
Aug 13, 2020
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
401e4263
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
CommonController.java
src/main/java/com/egolm/shop/api/CommonController.java
+13
-1
No files found.
src/main/java/com/egolm/shop/api/CommonController.java
View file @
692754fc
...
@@ -126,7 +126,19 @@ public class CommonController {
...
@@ -126,7 +126,19 @@ public class CommonController {
List
<
Map
<
String
,
Object
>>
goodsTags
=
jdbcTemplate
.
queryForList
(
"select sGoodsTagID, sGoodsTag from tOrgGoodsTag where sOrgNO = ? and nTag&1 = 0"
,
sOrgNO
);
List
<
Map
<
String
,
Object
>>
goodsTags
=
jdbcTemplate
.
queryForList
(
"select sGoodsTagID, sGoodsTag from tOrgGoodsTag where sOrgNO = ? and nTag&1 = 0"
,
sOrgNO
);
Map
<
String
,
Object
>
shareInfo
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
shareInfo
=
new
HashMap
<
String
,
Object
>();
try
{
try
{
shareInfo
=
jdbcTemplate
.
queryForMap
(
"SELECT SharePicUrl = sPicUrl, ShareTitle = sShareTitle FROM tOrg WHERE sOrgNO = ? AND sAppID = ?"
,
sOrgNO
,
appId
);
String
sql
=
""
+
"SELECT "
+
"SharePicUrl = sPicUrl, "
+
"ShareTitle = sShareTitle, "
+
"IsAppCustService = convert(BIT, CASE WHEN nIsAppCustService = 1 THEN 1 ELSE 0 END), "
+
"IsJumpButton = convert(BIT, CASE WHEN nIsJumpButton = 1 THEN 1 ELSE 0 END) "
+
" "
+
"FROM "
+
"tOrg "
+
"WHERE "
+
"sOrgNO = ? "
+
"AND sAppID = ?"
;
shareInfo
=
jdbcTemplate
.
queryForMap
(
sql
,
sOrgNO
,
appId
);
}
catch
(
EmptyResultDataAccessException
e
)
{}
}
catch
(
EmptyResultDataAccessException
e
)
{}
return
Rjx
.
jsonOk
().
set
(
"OrgInfo"
,
map
).
set
(
"PicInfo"
,
omap
).
set
(
"ExemptCheck"
,
cmap
).
set
(
"payTypes"
,
payTypes
).
set
(
"goodsTags"
,
goodsTags
).
set
(
"shareInfo"
,
shareInfo
).
toJson
();
return
Rjx
.
jsonOk
().
set
(
"OrgInfo"
,
map
).
set
(
"PicInfo"
,
omap
).
set
(
"ExemptCheck"
,
cmap
).
set
(
"payTypes"
,
payTypes
).
set
(
"goodsTags"
,
goodsTags
).
set
(
"shareInfo"
,
shareInfo
).
toJson
();
...
...
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