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
c799f851
Commit
c799f851
authored
Nov 12, 2020
by
黎聪聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年11月12日 13:28:48
parent
48ebf1bd
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
32 additions
and
25 deletions
+32
-25
OrderMapper.xml
...module/src/main/java/com/cftech/order/dao/OrderMapper.xml
+5
-5
OrderMobileDto.java
.../src/main/java/com/cftech/order/model/OrderMobileDto.java
+2
-1
OrderService.java
.../src/main/java/com/cftech/order/service/OrderService.java
+1
-1
OrderServiceImpl.java
.../java/com/cftech/order/service/impl/OrderServiceImpl.java
+14
-8
MobileOrderController.java
...main/java/com/cftech/order/web/MobileOrderController.java
+2
-2
MobileclassifyController.java
.../cftech/productclassify/web/MobileclassifyController.java
+1
-2
MobileProductController.java
.../java/com/cftech/product/web/MobileProductController.java
+1
-1
CfarticleMapper.xml
...ain/java/com/cftech/cms/cfarticle/dao/CfarticleMapper.xml
+1
-1
MobileCfArticleController.java
...m/cftech/cms/cfarticle/web/MobileCfArticleController.java
+1
-1
MemberService.java
...rc/main/java/com/cftech/member/service/MemberService.java
+1
-1
MemberServiceImpl.java
...ava/com/cftech/member/service/impl/MemberServiceImpl.java
+2
-1
MobileMemberController.java
...in/java/com/cftech/member/web/MobileMemberController.java
+1
-1
No files found.
aidea-modules/order-module/src/main/java/com/cftech/order/dao/OrderMapper.xml
View file @
c799f851
...
...
@@ -483,8 +483,8 @@
<if
test=
"id !=null"
>
AND t.id =#{id}
</if>
<if
test=
"open
i
d !=null"
>
AND t.openid =#{open
i
d}
<if
test=
"open
I
d !=null"
>
AND t.openid =#{open
I
d}
</if>
<if
test=
"status!=null "
>
AND t.status =#{status}
...
...
@@ -541,12 +541,12 @@ FROM t_order WHERE del_flag = 0
LEFT JOIN area b ON s.city_id = b.areaid
LEFT JOIN area c ON s.area_id = c.areaid
WHERE t.del_flag=0
<if
test=
"open
id !=null and openi
d!= ''"
>
AND t.openid =#{open
i
d}
<if
test=
"open
Id !=null and openI
d!= ''"
>
AND t.openid =#{open
I
d}
</if>
<if
test=
"searchName!=null and searchName !=''"
>
AND CONCAT(
t.number, p.product_name
) LIKE '%${searchName}%'
AND CONCAT(
IFNULL(`t.number`,''), IFNULL(`p.product_name`,'')
) LIKE '%${searchName}%'
</if>
<if
test=
"status!=null "
>
AND t.status = #{status}
...
...
aidea-modules/order-module/src/main/java/com/cftech/order/model/OrderMobileDto.java
View file @
c799f851
...
...
@@ -9,12 +9,13 @@ import lombok.Data;
*/
@Data
public
class
OrderMobileDto
{
private
String
open
i
d
;
private
String
open
I
d
;
private
String
search
;
private
String
searchName
;
private
Long
status
;
private
Long
page
;
private
Long
pageSize
;
private
Long
id
;
private
String
appId
;
}
aidea-modules/order-module/src/main/java/com/cftech/order/service/OrderService.java
View file @
c799f851
...
...
@@ -43,7 +43,7 @@ public interface OrderService extends GenericService<Order> {
* @Param
* @return
**/
JSONObject
orderSize
(
String
open
i
d
);
JSONObject
orderSize
(
String
open
Id
,
String
appI
d
);
/**
* @Author Licc
...
...
aidea-modules/order-module/src/main/java/com/cftech/order/service/impl/OrderServiceImpl.java
View file @
c799f851
package
com
.
cftech
.
order
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.cftech.accounts.model.MpAccountsEntity
;
import
com.cftech.accounts.service.MpAccountsService
;
import
com.cftech.core.sql.Sort
;
import
com.cftech.core.util.StringUtils
;
import
com.cftech.order.model.*
;
...
...
@@ -35,7 +37,8 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
@Autowired
@Qualifier
(
"orderMapper"
)
private
OrderMapper
orderMapper
;
@Autowired
private
MpAccountsService
mpAccountsService
;
@Override
public
GenericDao
<
Order
>
getGenericMapper
()
{
return
orderMapper
;
...
...
@@ -161,16 +164,17 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
com
.
alibaba
.
fastjson
.
JSONObject
rtnJson
=
new
com
.
alibaba
.
fastjson
.
JSONObject
();
com
.
alibaba
.
fastjson
.
JSONObject
object
=
new
com
.
alibaba
.
fastjson
.
JSONObject
();
try
{
if
(
StringUtils
.
isEmpty
(
orderMobileDto
.
getOpen
i
d
())){
rtnJson
.
put
(
"errorNo"
,
"
0
"
);
if
(
StringUtils
.
isEmpty
(
orderMobileDto
.
getOpen
I
d
())){
rtnJson
.
put
(
"errorNo"
,
"
1
"
);
rtnJson
.
put
(
"errorMsg"
,
"openid不能为空"
);
return
rtnJson
;
}
if
(
orderMobileDto
.
getStatus
()==
null
){
rtnJson
.
put
(
"errorNo"
,
"
0
"
);
rtnJson
.
put
(
"errorNo"
,
"
1
"
);
rtnJson
.
put
(
"errorMsg"
,
"status不能为空"
);
return
rtnJson
;
}
MpAccountsEntity
mpAccountsAppid
=
mpAccountsService
.
getMpAccountsAppid
(
orderMobileDto
.
getAppId
());
List
<
OrderMobile
>
orderMobiles
=
orderMapper
.
orderFall
(
orderMobileDto
);
for
(
OrderMobile
orderMobile
:
orderMobiles
)
{
Long
mobileId
=
orderMobile
.
getId
();
...
...
@@ -192,15 +196,16 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
}
@Override
public
com
.
alibaba
.
fastjson
.
JSONObject
orderSize
(
String
open
i
d
)
{
public
com
.
alibaba
.
fastjson
.
JSONObject
orderSize
(
String
open
Id
,
String
appI
d
)
{
com
.
alibaba
.
fastjson
.
JSONObject
rtnJson
=
new
com
.
alibaba
.
fastjson
.
JSONObject
();
try
{
if
(
StringUtils
.
isEmpty
(
open
i
d
)){
if
(
StringUtils
.
isEmpty
(
open
I
d
)){
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"errorMsg"
,
"openid不能为空"
);
return
rtnJson
;
}
OrderSizeVO
productMobiles
=
orderMapper
.
orderSize
(
openid
);
MpAccountsEntity
mpAccountsAppid
=
mpAccountsService
.
getMpAccountsAppid
(
appId
);
OrderSizeVO
productMobiles
=
orderMapper
.
orderSize
(
openId
);
if
(
productMobiles
!=
null
){
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"data"
,
productMobiles
);
...
...
@@ -219,7 +224,7 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
com
.
alibaba
.
fastjson
.
JSONObject
rtnJson
=
new
com
.
alibaba
.
fastjson
.
JSONObject
();
com
.
alibaba
.
fastjson
.
JSONObject
object
=
new
com
.
alibaba
.
fastjson
.
JSONObject
();
try
{
if
(
StringUtils
.
isEmpty
(
orderMobileDto
.
getOpen
i
d
())){
if
(
StringUtils
.
isEmpty
(
orderMobileDto
.
getOpen
I
d
())){
rtnJson
.
put
(
"errorNo"
,
"0"
);
rtnJson
.
put
(
"errorMsg"
,
"openid不能为空"
);
return
rtnJson
;
...
...
@@ -229,6 +234,7 @@ public class OrderServiceImpl extends GenericServiceImpl<Order> implements Order
rtnJson
.
put
(
"errorMsg"
,
"订单状态不能为空"
);
return
rtnJson
;
}
MpAccountsEntity
mpAccountsAppid
=
mpAccountsService
.
getMpAccountsAppid
(
orderMobileDto
.
getAppId
());
List
<
OrderMobile
>
orderMobiles
=
orderMapper
.
orderList
(
orderMobileDto
);
for
(
OrderMobile
orderMobile
:
orderMobiles
)
{
Long
mobileId
=
orderMobile
.
getId
();
...
...
aidea-modules/order-module/src/main/java/com/cftech/order/web/MobileOrderController.java
View file @
c799f851
...
...
@@ -42,8 +42,8 @@ public class MobileOrderController {
* @Param
**/
@RequestMapping
(
value
=
"/orderSize"
,
method
=
{
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
orderSize
(
String
open
i
d
)
{
return
orderService
.
orderSize
(
open
i
d
);
public
JSONObject
orderSize
(
String
open
Id
,
String
appI
d
)
{
return
orderService
.
orderSize
(
open
Id
,
appI
d
);
}
/**
...
...
aidea-modules/product-classify-module/src/main/java/com/cftech/productclassify/web/MobileclassifyController.java
View file @
c799f851
...
...
@@ -49,8 +49,7 @@ public class MobileclassifyController {
* @return com.alibaba.fastjson.JSONObject
**/
@RequestMapping
(
value
=
"/productDosage"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
productDosage
(
@RequestParam
String
appId
,
@RequestParam
(
required
=
false
)
String
dosageName
){
public
JSONObject
productDosage
(
String
appId
,
String
dosageName
){
return
ProductclassifyService
.
productDosage
(
appId
,
dosageName
);
}
/**
...
...
aidea-modules/product-module/src/main/java/com/cftech/product/web/MobileProductController.java
View file @
c799f851
...
...
@@ -30,7 +30,7 @@ public class MobileProductController {
* @return
**/
@RequestMapping
(
value
=
"/productId"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
productMenu
(
@RequestParam
(
required
=
true
)
Long
id
,
@RequestParam
(
required
=
true
)
String
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.xml
View file @
c799f851
...
...
@@ -472,7 +472,7 @@ WHERE del_flag=0
AND `column`= #{id}
</if>
<if
test=
"title!=null and title!=''"
>
AND CONCAT(
title,author) LIKE
'%${title}%'
AND CONCAT(
IFNULL(`title`,''),IFNULL(`author`,'')) LIKE
'%${title}%'
</if>
ORDER BY
create_time
...
...
cms-modules/cms-core-module/src/main/java/com/cftech/cms/cfarticle/web/MobileCfArticleController.java
View file @
c799f851
...
...
@@ -169,7 +169,7 @@ public class MobileCfArticleController {
}
/**
* @Author Licc
* @Description 栏目文章
详情
栏目文章搜索
* @Description 栏目文章
列表
栏目文章搜索
* @Date 10:34 2020/10/30
* @Param
* @return
...
...
membercard-modules/member-module/src/main/java/com/cftech/member/service/MemberService.java
View file @
c799f851
...
...
@@ -65,5 +65,5 @@ public interface MemberService extends GenericService<Member> {
* @Param
* @return
**/
JSONObject
fanssChat
(
String
openid
);
JSONObject
fanssChat
(
String
openid
,
String
appId
);
}
membercard-modules/member-module/src/main/java/com/cftech/member/service/impl/MemberServiceImpl.java
View file @
c799f851
...
...
@@ -151,7 +151,7 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
}
@Override
public
JSONObject
fanssChat
(
String
openid
)
{
public
JSONObject
fanssChat
(
String
openid
,
String
appId
)
{
JSONObject
rtnJson
=
new
JSONObject
();
try
{
if
(
StringUtils
.
isEmpty
(
openid
)){
...
...
@@ -159,6 +159,7 @@ public class MemberServiceImpl extends GenericServiceImpl<Member> implements Mem
rtnJson
.
put
(
"data"
,
"openid不能为空"
);
return
rtnJson
;
}
MpAccountsEntity
accountsAppid
=
mpAccountsService
.
getMpAccountsAppid
(
appId
);
FanssVO
fanssVO
=
memberMapper
.
fanssChat
(
openid
);
if
(
fanssVO
!=
null
){
rtnJson
.
put
(
"errorNo"
,
"0"
);
...
...
membercard-modules/member-module/src/main/java/com/cftech/member/web/MobileMemberController.java
View file @
c799f851
...
...
@@ -53,7 +53,7 @@ public class MobileMemberController {
* @return
**/
@RequestMapping
(
value
=
"/fanssChat"
,
method
=
{
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
fanssChat
(
String
openid
){
public
JSONObject
fanssChat
(
String
openid
,
String
appId
){
return
memberService
.
fanssChat
(
openid
);
}
}
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