Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
40d518a0
Commit
40d518a0
authored
Sep 02, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询商品不强制登录2
parent
1b3f8854
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/GroupPurchaseController.java
.../wwdz/ch/wx/web/distribution/GroupPurchaseController.java
+13
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SpecialPerformanceController.java
.../ch/wx/web/distribution/SpecialPerformanceController.java
+10
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
40d518a0
...
@@ -46,7 +46,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -46,7 +46,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/distributionOrder/refund"
,
"/wx/distributionOrder/refund"
,
"/wx/supplierItem/findItemsOfCurrentDistributor"
,
"/wx/selfPage/updateSwitch"
,
"/wx/supplierItem/findHomePage"
,
"/wx/supplierItem/findItemsOfCurrentDistributor"
,
"/wx/selfPage/updateSwitch"
,
"/wx/supplierItem/findHomePage"
,
"/wx/specialPerformance/sendMsg"
,
"/wx/specialPerformance/sendMsgTest"
,
"/wx/groupPurchase/systemAddRecord"
,
"/wx/officialAccount/**"
,
"/wx/specialPerformance/sendMsg"
,
"/wx/specialPerformance/sendMsgTest"
,
"/wx/groupPurchase/systemAddRecord"
,
"/wx/officialAccount/**"
,
"/wx/supplierItem/**"
"/wx/supplierItem/**"
,
"/wx/specialPerformance/**"
,
"/wx/groupPurchase/**"
//下列路径上线注释
//下列路径上线注释
/* ,"/wx/specialPerformance/**"
/* ,"/wx/specialPerformance/**"
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/GroupPurchaseController.java
View file @
40d518a0
package
com.wwdz.ch.wx.web.distribution
;
package
com.wwdz.ch.wx.web.distribution
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseConfigRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.GroupPurchaseConfigRequestDto
;
...
@@ -30,6 +31,9 @@ public class GroupPurchaseController {
...
@@ -30,6 +31,9 @@ public class GroupPurchaseController {
@PostMapping
(
"/findList"
)
@PostMapping
(
"/findList"
)
public
Result
findList
(
@RequestBody
GroupPurchaseConfigRequestDto
dto
)
{
public
Result
findList
(
@RequestBody
GroupPurchaseConfigRequestDto
dto
)
{
logger
.
info
(
"查询团购信息,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
logger
.
info
(
"查询团购信息,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
groupPurchaseService
.
findList
(
dto
);
return
groupPurchaseService
.
findList
(
dto
);
}
}
...
@@ -38,6 +42,9 @@ public class GroupPurchaseController {
...
@@ -38,6 +42,9 @@ public class GroupPurchaseController {
@PostMapping
(
"/findItemDetail"
)
@PostMapping
(
"/findItemDetail"
)
public
Result
findItemDetail
(
@RequestBody
SupplierItemRequestDto
dto
)
{
public
Result
findItemDetail
(
@RequestBody
SupplierItemRequestDto
dto
)
{
logger
.
info
(
"查询团购商品详情,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
logger
.
info
(
"查询团购商品详情,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
groupPurchaseService
.
findItemDetail
(
dto
);
return
groupPurchaseService
.
findItemDetail
(
dto
);
}
}
...
@@ -49,6 +56,9 @@ public class GroupPurchaseController {
...
@@ -49,6 +56,9 @@ public class GroupPurchaseController {
if
(!
StringUtils
.
isAllNotEmpty
(
dto
.
getDistributionOrderId
()))
{
if
(!
StringUtils
.
isAllNotEmpty
(
dto
.
getDistributionOrderId
()))
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
}
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
groupPurchaseService
.
cancelOrder
(
dto
);
return
groupPurchaseService
.
cancelOrder
(
dto
);
}
}
...
@@ -57,6 +67,9 @@ public class GroupPurchaseController {
...
@@ -57,6 +67,9 @@ public class GroupPurchaseController {
@PostMapping
(
"/systemAddRecord"
)
@PostMapping
(
"/systemAddRecord"
)
public
Result
systemAddRecord
(
@RequestBody
GroupPurchaseRecordRequestDto
dto
)
{
public
Result
systemAddRecord
(
@RequestBody
GroupPurchaseRecordRequestDto
dto
)
{
logger
.
info
(
"系统新增团购记录,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
logger
.
info
(
"系统新增团购记录,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
groupPurchaseService
.
systemAddRecord
(
dto
);
return
groupPurchaseService
.
systemAddRecord
(
dto
);
}
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SpecialPerformanceController.java
View file @
40d518a0
package
com.wwdz.ch.wx.web.distribution
;
package
com.wwdz.ch.wx.web.distribution
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.consts.ResultCode
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.DistributorShareRecordRequestDto
;
...
@@ -36,6 +37,9 @@ public class SpecialPerformanceController {
...
@@ -36,6 +37,9 @@ public class SpecialPerformanceController {
if
(
dto
.
getType
()
==
null
)
{
if
(
dto
.
getType
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
}
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
specialPerformanceService
.
findInfo
(
dto
);
return
specialPerformanceService
.
findInfo
(
dto
);
}
}
...
@@ -47,6 +51,9 @@ public class SpecialPerformanceController {
...
@@ -47,6 +51,9 @@ public class SpecialPerformanceController {
if
(
dto
.
getType
()
==
null
)
{
if
(
dto
.
getType
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
}
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
specialPerformanceService
.
findInfos
(
dto
);
return
specialPerformanceService
.
findInfos
(
dto
);
}
}
...
@@ -58,6 +65,9 @@ public class SpecialPerformanceController {
...
@@ -58,6 +65,9 @@ public class SpecialPerformanceController {
if
(
dto
.
getSpecialPerformanceId
()
==
null
)
{
if
(
dto
.
getSpecialPerformanceId
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
}
if
(
dto
.
getUserId
()
==
null
)
{
dto
.
setUserId
(
CommConsts
.
SYSTEM_ACCOUNT_FOR_UNLOGIN
);
}
return
specialPerformanceService
.
findItemList
(
dto
);
return
specialPerformanceService
.
findItemList
(
dto
);
}
}
...
...
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