Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
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
徐少华
midjourney-proxy
Commits
b92a415c
Commit
b92a415c
authored
Jul 15, 2019
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mymaster' into 'master'
修改群发记录bug See merge request rays/pcloud-book!47
parents
f725f7e2
d4cd50d4
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
7 deletions
+37
-7
PushBiz.java
...-book/src/main/java/com/pcloud/book/push/biz/PushBiz.java
+1
-1
PushBizImpl.java
.../main/java/com/pcloud/book/push/biz/impl/PushBizImpl.java
+3
-2
PushItemDao.java
...k/src/main/java/com/pcloud/book/push/dao/PushItemDao.java
+7
-0
PushItemDaoImpl.java
...n/java/com/pcloud/book/push/dao/impl/PushItemDaoImpl.java
+7
-0
PushFacade.java
...src/main/java/com/pcloud/book/push/facade/PushFacade.java
+1
-0
PushFacadeImpl.java
...java/com/pcloud/book/push/facade/impl/PushFacadeImpl.java
+2
-1
PushGroupMapper.xml
...e-book/src/main/resources/mapper/push/PushGroupMapper.xml
+4
-2
PushItemMapper.xml
...ce-book/src/main/resources/mapper/push/PushItemMapper.xml
+12
-0
PushRecordMapper.xml
...-book/src/main/resources/mapper/push/PushRecordMapper.xml
+0
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/push/biz/PushBiz.java
View file @
b92a415c
...
@@ -103,7 +103,7 @@ public interface PushBiz {
...
@@ -103,7 +103,7 @@ public interface PushBiz {
* @param numPerPage
* @param numPerPage
* @return
* @return
*/
*/
PageBeanNew
<
PushGroupDTO
>
getPushGroupList
(
Long
pushId
,
Integer
currentPage
,
Integer
numPerPage
);
PageBeanNew
<
PushGroupDTO
>
getPushGroupList
(
Long
pushId
,
Boolean
isRecord
,
Integer
currentPage
,
Integer
numPerPage
);
/**
/**
* 获取群发记录集合
* 获取群发记录集合
...
...
pcloud-service-book/src/main/java/com/pcloud/book/push/biz/impl/PushBizImpl.java
View file @
b92a415c
...
@@ -616,10 +616,11 @@ public class PushBizImpl implements PushBiz {
...
@@ -616,10 +616,11 @@ public class PushBizImpl implements PushBiz {
@ParamLog
(
"获取群发关联集合"
)
@ParamLog
(
"获取群发关联集合"
)
@Override
@Override
public
PageBeanNew
<
PushGroupDTO
>
getPushGroupList
(
Long
pushId
,
Integer
currentPage
,
Integer
numPerPage
)
{
public
PageBeanNew
<
PushGroupDTO
>
getPushGroupList
(
Long
pushId
,
Boolean
isRecord
,
Integer
currentPage
,
Integer
numPerPage
)
{
PageParam
pageParam
=
new
PageParam
(
currentPage
,
numPerPage
);
PageParam
pageParam
=
new
PageParam
(
currentPage
,
numPerPage
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"pushId"
,
pushId
);
map
.
put
(
"pushId"
,
pushId
);
map
.
put
(
"isRecord"
,
isRecord
);
PageBeanNew
<
PushGroupDTO
>
pageBeanNew
=
pushGroupDao
.
listPageNew
(
pageParam
,
map
,
"getPushGroupList"
);
PageBeanNew
<
PushGroupDTO
>
pageBeanNew
=
pushGroupDao
.
listPageNew
(
pageParam
,
map
,
"getPushGroupList"
);
return
pageBeanNew
;
return
pageBeanNew
;
}
}
...
@@ -1245,7 +1246,7 @@ public class PushBizImpl implements PushBiz {
...
@@ -1245,7 +1246,7 @@ public class PushBizImpl implements PushBiz {
return
;
return
;
}
}
List
<
Long
>
pushIds
=
pushRecordDTOS
.
stream
().
map
(
PushRecordDTO:
:
getPushId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
Long
>
pushIds
=
pushRecordDTOS
.
stream
().
map
(
PushRecordDTO:
:
getPushId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
PushItem
>
pushItems
=
pushItemDao
.
getListByPushIds
(
pushIds
);
List
<
PushItem
>
pushItems
=
pushItemDao
.
get
All
ListByPushIds
(
pushIds
);
Map
<
Long
,
List
<
PushItem
>>
pushItemMap
=
new
HashMap
<>();
Map
<
Long
,
List
<
PushItem
>>
pushItemMap
=
new
HashMap
<>();
List
<
Long
>
appIds
=
new
ArrayList
<>();
List
<
Long
>
appIds
=
new
ArrayList
<>();
List
<
Long
>
productIds
=
new
ArrayList
<>();
List
<
Long
>
productIds
=
new
ArrayList
<>();
...
...
pcloud-service-book/src/main/java/com/pcloud/book/push/dao/PushItemDao.java
View file @
b92a415c
...
@@ -64,4 +64,11 @@ public interface PushItemDao extends BaseDao<PushItem> {
...
@@ -64,4 +64,11 @@ public interface PushItemDao extends BaseDao<PushItem> {
* @return
* @return
*/
*/
List
<
PushItem
>
getListByPushId
(
Long
pushId
);
List
<
PushItem
>
getListByPushId
(
Long
pushId
);
/**
* 根据群发id集合查询所有(包括删除了的)
* @param pushIds
* @return
*/
List
<
PushItem
>
getAllListByPushIds
(
List
<
Long
>
pushIds
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/push/dao/impl/PushItemDaoImpl.java
View file @
b92a415c
...
@@ -66,4 +66,11 @@ public class PushItemDaoImpl extends BaseDaoImpl<PushItem> implements PushItemDa
...
@@ -66,4 +66,11 @@ public class PushItemDaoImpl extends BaseDaoImpl<PushItem> implements PushItemDa
public
List
<
PushItem
>
getListByPushId
(
Long
pushId
)
{
public
List
<
PushItem
>
getListByPushId
(
Long
pushId
)
{
return
super
.
getSqlSession
().
selectList
(
getStatement
(
"getListByPushId"
),
pushId
);
return
super
.
getSqlSession
().
selectList
(
getStatement
(
"getListByPushId"
),
pushId
);
}
}
@Override
public
List
<
PushItem
>
getAllListByPushIds
(
List
<
Long
>
pushIds
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"pushIds"
,
pushIds
);
return
super
.
getSqlSession
().
selectList
(
getStatement
(
"getAllListByPushIds"
),
map
);
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/push/facade/PushFacade.java
View file @
b92a415c
...
@@ -105,6 +105,7 @@ public interface PushFacade {
...
@@ -105,6 +105,7 @@ public interface PushFacade {
ResponseDto
<?>
getPushGroupList
(
ResponseDto
<?>
getPushGroupList
(
@RequestHeader
(
"token"
)
@ApiParam
(
"token信息"
)
String
token
,
@RequestHeader
(
"token"
)
@ApiParam
(
"token信息"
)
String
token
,
@RequestParam
(
"pushId"
)
@ApiParam
(
"群发id"
)
Long
pushId
,
@RequestParam
(
"pushId"
)
@ApiParam
(
"群发id"
)
Long
pushId
,
@RequestParam
(
value
=
"isRecord"
,
required
=
false
)
@ApiParam
(
"是否记录"
)
Boolean
isRecord
,
@RequestParam
(
"currentPage"
)
@ApiParam
(
"当前页"
)
Integer
currentPage
,
@RequestParam
(
"currentPage"
)
@ApiParam
(
"当前页"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
@ApiParam
(
"每页条数"
)
Integer
numPerPage
@RequestParam
(
"numPerPage"
)
@ApiParam
(
"每页条数"
)
Integer
numPerPage
)
throws
BizException
,
PermissionException
;
)
throws
BizException
,
PermissionException
;
...
...
pcloud-service-book/src/main/java/com/pcloud/book/push/facade/impl/PushFacadeImpl.java
View file @
b92a415c
...
@@ -191,6 +191,7 @@ public class PushFacadeImpl implements PushFacade {
...
@@ -191,6 +191,7 @@ public class PushFacadeImpl implements PushFacade {
public
ResponseDto
<?>
getPushGroupList
(
public
ResponseDto
<?>
getPushGroupList
(
@RequestHeader
(
"token"
)
@ApiParam
(
"token信息"
)
String
token
,
@RequestHeader
(
"token"
)
@ApiParam
(
"token信息"
)
String
token
,
@RequestParam
(
"pushId"
)
@ApiParam
(
"群发id"
)
Long
pushId
,
@RequestParam
(
"pushId"
)
@ApiParam
(
"群发id"
)
Long
pushId
,
@RequestParam
(
value
=
"isRecord"
,
required
=
false
)
@ApiParam
(
"是否记录"
)
Boolean
isRecord
,
@RequestParam
(
"currentPage"
)
@ApiParam
(
"当前页"
)
Integer
currentPage
,
@RequestParam
(
"currentPage"
)
@ApiParam
(
"当前页"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
@ApiParam
(
"每页条数"
)
Integer
numPerPage
@RequestParam
(
"numPerPage"
)
@ApiParam
(
"每页条数"
)
Integer
numPerPage
)
throws
BizException
,
PermissionException
{
)
throws
BizException
,
PermissionException
{
...
@@ -204,7 +205,7 @@ public class PushFacadeImpl implements PushFacade {
...
@@ -204,7 +205,7 @@ public class PushFacadeImpl implements PushFacade {
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"群发id不能为空!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"群发id不能为空!"
);
}
}
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
return
new
ResponseDto
<>(
pushBiz
.
getPushGroupList
(
pushId
,
currentPage
,
numPerPage
));
return
new
ResponseDto
<>(
pushBiz
.
getPushGroupList
(
pushId
,
isRecord
,
currentPage
,
numPerPage
));
}
}
@ApiOperation
(
"获取群发记录列表"
)
@ApiOperation
(
"获取群发记录列表"
)
...
...
pcloud-service-book/src/main/resources/mapper/push/PushGroupMapper.xml
View file @
b92a415c
...
@@ -186,8 +186,10 @@
...
@@ -186,8 +186,10 @@
push_group t1
push_group t1
LEFT JOIN book t2 ON t1.book_id = t2.BOOK_ID
LEFT JOIN book t2 ON t1.book_id = t2.BOOK_ID
LEFT JOIN book_group_qrcode t3 ON t1.book_group_qrcode_id = t3.id
LEFT JOIN book_group_qrcode t3 ON t1.book_group_qrcode_id = t3.id
WHERE
WHERE 1=1
t1.is_delete = 0
<if
test=
"isRecord==null or isRecord==false"
>
AND t1.is_delete = 0
</if>
AND t1.push_id = #{pushId}
AND t1.push_id = #{pushId}
</select>
</select>
...
...
pcloud-service-book/src/main/resources/mapper/push/PushItemMapper.xml
View file @
b92a415c
...
@@ -248,4 +248,15 @@
...
@@ -248,4 +248,15 @@
where is_delete=0
where is_delete=0
and push_id =#{pushId}
and push_id =#{pushId}
</select>
</select>
<!--根据群发id集合查询所有(包括删除了的)-->
<select
id=
"getAllListByPushIds"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from push_item
where
push_id in
<foreach
collection=
"pushIds"
item=
"pushId"
open=
"("
separator=
","
close=
")"
>
#{pushId}
</foreach>
order by push_id asc, seq_num asc
</select>
</mapper>
</mapper>
\ No newline at end of file
pcloud-service-book/src/main/resources/mapper/push/PushRecordMapper.xml
View file @
b92a415c
...
@@ -119,7 +119,6 @@
...
@@ -119,7 +119,6 @@
LEFT JOIN push_group t1 ON t.push_id = t1.push_id
LEFT JOIN push_group t1 ON t.push_id = t1.push_id
WHERE
WHERE
t.is_delete = 0
t.is_delete = 0
AND t1.is_delete = 0
AND t.create_user = #{partyId}
AND t.create_user = #{partyId}
GROUP BY
GROUP BY
t.id
t.id
...
...
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