Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
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
sa_aidea
Aidea
Commits
e17e479c
Commit
e17e479c
authored
Nov 02, 2020
by
黎聪聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年11月2日 19:43:14
parent
caa5f1a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
ProductServiceImpl.java
...a/com/cftech/product/service/impl/ProductServiceImpl.java
+3
-3
MobileProductController.java
.../java/com/cftech/product/web/MobileProductController.java
+2
-2
CfarticleMapper.java
...in/java/com/cftech/cms/cfarticle/dao/CfarticleMapper.java
+1
-1
CfarticleMapper.xml
...ain/java/com/cftech/cms/cfarticle/dao/CfarticleMapper.xml
+1
-1
No files found.
aidea-modules/product-module/src/main/java/com/cftech/product/service/impl/ProductServiceImpl.java
View file @
e17e479c
...
...
@@ -169,15 +169,15 @@ public class ProductServiceImpl extends GenericServiceImpl<Product> implements P
}
@Override
public
JSONObject
productId
(
Long
ID
,
String
appId
)
{
public
JSONObject
productId
(
Long
id
,
String
appId
)
{
JSONObject
rtnJson
=
new
JSONObject
();
try
{
if
(
ID
.
equals
(
""
)
){
if
(
id
==
null
){
rtnJson
.
put
(
"errorNO"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"id不能为空"
);
return
rtnJson
;
}
List
<
ProductVO
>
product
=
productMapper
.
product
(
ID
);
List
<
ProductVO
>
product
=
productMapper
.
product
(
id
);
if
(
product
==
null
){
rtnJson
.
put
(
"errorNO"
,
"1"
);
rtnJson
.
put
(
"errorMsg"
,
"查询失败"
);
...
...
aidea-modules/product-module/src/main/java/com/cftech/product/web/MobileProductController.java
View file @
e17e479c
...
...
@@ -33,8 +33,8 @@ public class MobileProductController {
* @return
**/
@RequestMapping
(
value
=
"/productId"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
productMenu
(
Long
ID
,
String
appId
){
return
productService
.
productId
(
ID
,
appId
);
public
JSONObject
productMenu
(
Long
id
,
String
appId
){
return
productService
.
productId
(
id
,
appId
);
}
}
cms-modules/cms-core-module/src/main/java/com/cftech/cms/cfarticle/dao/CfarticleMapper.java
View file @
e17e479c
...
...
@@ -48,7 +48,7 @@ public interface CfarticleMapper extends GenericDao<Cfarticle> {
* @Param
* @return
**/
List
<
CfarticleVO
>
recommended
(
Long
id
);
List
<
CfarticleVO
>
recommended
(
@Param
(
"id"
)
Long
id
);
/**
* @Author Licc
* @Description 阅读量
...
...
cms-modules/cms-core-module/src/main/java/com/cftech/cms/cfarticle/dao/CfarticleMapper.xml
View file @
e17e479c
...
...
@@ -340,7 +340,7 @@
where id = #{id}
</update>
<select
id=
"recommended"
resultType=
"com.cftech.cms.cfarticle.model.CfarticleVO"
parameterType=
"java.lang.Long"
>
<select
id=
"recommended"
resultType=
"com.cftech.cms.cfarticle.model.CfarticleVO"
>
select
a.id,
a.title,
...
...
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