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
eb27168b
Commit
eb27168b
authored
Mar 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缺失字段补充
parent
25944b8d
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
96 additions
and
28 deletions
+96
-28
ch-core/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
...ore/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
+5
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
...src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
+10
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/DistributorShareRecordDao.java
...wdz/ch/db/dao/distribution/DistributorShareRecordDao.java
+1
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/DistributorShareRecordDaoImpl.java
...h/db/impl/distribution/DistributorShareRecordDaoImpl.java
+1
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
...com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
+11
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountCallbackController.java
...com/wwdz/ch/wx/api/OfficialAccountCallbackController.java
+10
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+47
-20
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/SupplierItemService.java
.../wwdz/ch/wx/service/distribution/SupplierItemService.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SupplierItemController.java
...m/wwdz/ch/wx/web/distribution/SupplierItemController.java
+10
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/consts/CommConsts.java
View file @
eb27168b
...
@@ -40,6 +40,11 @@ public interface CommConsts {
...
@@ -40,6 +40,11 @@ public interface CommConsts {
public
static
final
Long
SYSTEM_ACCOUNT
=
8888888888L
;
public
static
final
Long
SYSTEM_ACCOUNT
=
8888888888L
;
/**
* 系统默认用户头像URL
*/
public
static
final
String
DEFAULT_AVATAR_URL
=
"https://cdn.wanwudezhi.com/mall-portal/image/4337400862"
;
}
}
ch-core/src/main/java/com/wwdz/ch/core/entity/SupplierItemVo.java
View file @
eb27168b
...
@@ -220,4 +220,14 @@ public class SupplierItemVo implements Entity {
...
@@ -220,4 +220,14 @@ public class SupplierItemVo implements Entity {
* 收藏人头像
* 收藏人头像
*/
*/
private
List
<
String
>
collectorsAvatar
;
private
List
<
String
>
collectorsAvatar
;
/**
* 当前用户是否已收藏
*/
private
Boolean
isCollected
;
/**
* 当前用户是否已分享过
*/
private
Boolean
isShared
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/DistributorShareRecordDao.java
View file @
eb27168b
...
@@ -68,4 +68,5 @@ public interface DistributorShareRecordDao {
...
@@ -68,4 +68,5 @@ public interface DistributorShareRecordDao {
*/
*/
DistributorShareRecord
findItemShareRecordByDistributorId
(
long
distributorId
,
long
itemId
);
DistributorShareRecord
findItemShareRecordByDistributorId
(
long
distributorId
,
long
itemId
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/DistributorShareRecordDaoImpl.java
View file @
eb27168b
...
@@ -37,6 +37,7 @@ public class DistributorShareRecordDaoImpl implements DistributorShareRecordDao
...
@@ -37,6 +37,7 @@ public class DistributorShareRecordDaoImpl implements DistributorShareRecordDao
DistributorShareRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
DistributorShareRecordExample
.
Criteria
criteria
=
example
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getDistributorIdList
(),
criteria:
:
andDistributorIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getDistributorIdList
(),
criteria:
:
andDistributorIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getItemIdList
(),
criteria:
:
andItemIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getItemIdList
(),
criteria:
:
andItemIdIn
);
JdbcHelper
.
ifPresent
(
dto
.
getType
(),
criteria:
:
andTypeEqualTo
);
criteria
.
andEnabledEqualTo
(
true
);
criteria
.
andEnabledEqualTo
(
true
);
return
distributorShareRecordMapper
.
selectByExample
(
example
);
return
distributorShareRecordMapper
.
selectByExample
(
example
);
}
}
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
View file @
eb27168b
...
@@ -86,12 +86,17 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
...
@@ -86,12 +86,17 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
public
List
<
SupplierItem
>
findForHomePage
(
SupplierItemRequestDto
dto
)
{
public
List
<
SupplierItem
>
findForHomePage
(
SupplierItemRequestDto
dto
)
{
SupplierItemExample
supplierItemExample
=
new
SupplierItemExample
();
SupplierItemExample
supplierItemExample
=
new
SupplierItemExample
();
SupplierItemExample
.
Criteria
criteria
=
supplierItemExample
.
createCriteria
();
SupplierItemExample
.
Criteria
criteria
=
supplierItemExample
.
createCriteria
();
JdbcHelper
.
ifPresent
(
dto
.
getId
(),
criteria:
:
andIdEqualTo
);
criteria
.
andCreatorIdIn
(
dto
.
getCreatorIdList
());
JdbcHelper
.
ifPresent
(
dto
.
getIds
(),
criteria:
:
andIdIn
);
criteria
.
andTypeIn
(
dto
.
getTypeList
());
JdbcHelper
.
ifPresent
(
dto
.
getType
(),
criteria:
:
andTypeEqualTo
);
criteria
.
andStockGreaterThan
(
0
);
JdbcHelper
.
ifPresent
(
dto
.
getStock
(),
criteria:
:
andStockGreaterThan
);
criteria
.
andIsDeletedEqualTo
(
false
);
JdbcHelper
.
ifPresent
(
dto
.
getIsOnSale
(),
criteria:
:
andIsOnSaleEqualTo
);
criteria
.
andIsOnSaleEqualTo
(
true
);
JdbcHelper
.
ifPresent
(
dto
.
getIsDeleted
(),
criteria:
:
andIsDeletedEqualTo
);
SupplierItemExample
.
Criteria
orCriteria
=
supplierItemExample
.
or
();
orCriteria
.
andIdIn
(
dto
.
getIds
());
orCriteria
.
andTypeIn
(
dto
.
getTypeList
());
orCriteria
.
andStockGreaterThan
(
0
);
orCriteria
.
andIsDeletedEqualTo
(
false
);
orCriteria
.
andIsOnSaleEqualTo
(
true
);
supplierItemExample
.
setOrderByClause
(
" update_time desc"
);
supplierItemExample
.
setOrderByClause
(
" update_time desc"
);
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
return
supplierItemMapper
.
selectByExampleWithBLOBs
(
supplierItemExample
);
return
supplierItemMapper
.
selectByExampleWithBLOBs
(
supplierItemExample
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/OfficialAccountCallbackController.java
View file @
eb27168b
...
@@ -38,6 +38,10 @@ public class OfficialAccountCallbackController {
...
@@ -38,6 +38,10 @@ public class OfficialAccountCallbackController {
private
final
static
String
UNSUBSCRIBE_EVENT
=
"unsubscribe"
;
private
final
static
String
UNSUBSCRIBE_EVENT
=
"unsubscribe"
;
//一次性订阅消息
private
final
static
String
SUBSCRIBE_MSG_POPUP_EVENT
=
"subscribe_msg_popup_event"
;
@Value
(
"${dts.wx.officialaccount-token}"
)
@Value
(
"${dts.wx.officialaccount-token}"
)
private
String
OFFICIALACCOUNTTOKEN
;
private
String
OFFICIALACCOUNTTOKEN
;
...
@@ -122,7 +126,12 @@ public class OfficialAccountCallbackController {
...
@@ -122,7 +126,12 @@ public class OfficialAccountCallbackController {
officialAccountSubscribeRecord
.
setPlatformType
(
OfficalAccountEnum
.
PlatformTypeEnum
.
WECHAT
.
getCode
());
officialAccountSubscribeRecord
.
setPlatformType
(
OfficalAccountEnum
.
PlatformTypeEnum
.
WECHAT
.
getCode
());
officialAccountSubscribeRecordService
.
insert
(
officialAccountSubscribeRecord
);
officialAccountSubscribeRecordService
.
insert
(
officialAccountSubscribeRecord
);
}
}
logger
.
info
(
"=============== 更新订阅记录成功 =============="
);
logger
.
info
(
"=============== 更新订阅公众号记录成功 =============="
);
}
else
if
(
SUBSCRIBE_MSG_POPUP_EVENT
.
equals
(
event
))
{
//一次性订阅消息
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"微信公众号通知回调接口 error : {}"
,
e
);
logger
.
error
(
"微信公众号通知回调接口 error : {}"
,
e
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
eb27168b
This diff is collapsed.
Click to expand it.
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/SupplierItemService.java
View file @
eb27168b
...
@@ -87,6 +87,6 @@ public interface SupplierItemService {
...
@@ -87,6 +87,6 @@ public interface SupplierItemService {
* @param dto
* @param dto
* @return
* @return
*/
*/
Result
h
omePage
(
SupplierItemRequestDto
dto
);
Result
findH
omePage
(
SupplierItemRequestDto
dto
);
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SupplierItemController.java
View file @
eb27168b
...
@@ -131,4 +131,14 @@ public class SupplierItemController {
...
@@ -131,4 +131,14 @@ public class SupplierItemController {
return
supplierItemService
.
delete
(
dto
);
return
supplierItemService
.
delete
(
dto
);
}
}
@ApiOperation
(
value
=
"查询主页列表"
)
@PostMapping
(
"/findHomePage"
)
public
Result
findHomePage
(
@RequestBody
SupplierItemRequestDto
dto
)
{
logger
.
info
(
"删除用户查询主页列表藏品,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
if
(
dto
.
getId
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
PARAM_ERROR
);
}
return
supplierItemService
.
findHomePage
(
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