Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
4fd9dd92
Commit
4fd9dd92
authored
Apr 21, 2023
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-content2' into developer
parents
01c4d7e9
739c5280
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
58 deletions
+5
-58
pom.xml
haoban-manage3-service/pom.xml
+0
-6
NoticeMessageApiServiceImpl.java
...rvice/service/notify/out/NoticeMessageApiServiceImpl.java
+4
-1
applicationContext-conf.xml
...e3-service/src/main/resources/applicationContext-conf.xml
+0
-2
jdbc-haoban-manage-service-sharding.xml
...rc/main/resources/jdbc-haoban-manage-service-sharding.xml
+0
-48
kafka-setting.xml
haoban-manage3-service/src/main/resources/kafka-setting.xml
+1
-1
No files found.
haoban-manage3-service/pom.xml
View file @
4fd9dd92
...
...
@@ -177,12 +177,6 @@
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-sharding-sdk
</artifactId>
<version>
4.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-store-goods-api
</artifactId>
<version>
${gic-store-goods-api}
</version>
</dependency>
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/NoticeMessageApiServiceImpl.java
View file @
4fd9dd92
...
...
@@ -19,6 +19,7 @@ import com.gic.haoban.manage.api.dto.notify.qdto.NotifyMessageBatchQDTO;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.service.WxEnterpriseRelatedService
;
import
com.gic.wechat.api.dto.qywx.QywxTemplateCardSendMessageDTO
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -170,6 +171,8 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
logger
.
info
(
"商户未关联好办或都已停用enterpriseId={}"
,
enterpriseId
);
return
ServiceResponse
.
success
();
}
List
<
TabHaobanWxEnterprise
>
wxEnterpriseList
=
wxEnterpriseRelatedService
.
listByEnterpriseId
(
enterpriseId
);
List
<
String
>
wxEnterpriseIdList
=
wxEnterpriseList
.
stream
().
map
(
TabHaobanWxEnterprise:
:
getWxEnterpriseId
).
collect
(
Collectors
.
toList
());
List
<
String
>
clerkIdList
=
clerkService
.
getclerkListByStoreIds
(
storeIdList
);
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
logger
.
info
(
"门店导购列表为空"
);
...
...
@@ -186,7 +189,7 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
return
ServiceResponse
.
success
();
}
notifyMessageBatchQDTO
.
setTemplateCode
(
messageTypeEnum
.
getTemplateCode
());
Map
<
String
,
List
<
StaffClerkRelationDTO
>>
map
=
relationList
.
stream
().
collect
(
Collectors
.
groupingBy
(
StaffClerkRelationDTO:
:
getWxEnterpriseId
));
Map
<
String
,
List
<
StaffClerkRelationDTO
>>
map
=
relationList
.
stream
().
filter
(
x
->
wxEnterpriseIdList
.
contains
(
x
.
getWxEnterpriseId
())).
collect
(
Collectors
.
groupingBy
(
StaffClerkRelationDTO:
:
getWxEnterpriseId
));
map
.
forEach
((
wxEnterpriseId
,
v
)->{
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
if
(
qwDTO
==
null
)
{
...
...
haoban-manage3-service/src/main/resources/applicationContext-conf.xml
View file @
4fd9dd92
...
...
@@ -9,7 +9,6 @@
<import
resource=
"classpath:dubbo-haoban-manage-service.xml"
/>
<import
resource=
"classpath:dubbo-setting-test.xml"
/>
<import
resource=
"classpath:jdbc-haoban-manage-service.xml"
/>
<!-- <import resource="classpath*:jdbc-haoban-manage-service-sharding.xml" />-->
<import
resource=
"classpath*:log-record-init.xml"
/>
<import
resource=
"classpath*:kafka-setting-data.xml"
/>
</beans>
\ No newline at end of file
haoban-manage3-service/src/main/resources/jdbc-haoban-manage-service-sharding.xml
deleted
100644 → 0
View file @
01c4d7e9
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd"
>
<context:annotation-config
/>
<!-- <import resource="classpath*:applicationContext-db-only-with-emoji.xml"/>-->
<import
resource=
"classpath*:applicationContext-sharding-db.xml"
/>
<bean
class=
"com.gic.haoban.common.init.HaobanSqlSessionFactoryBean"
id=
"sqlSessionFactory"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
<property
name=
"typeAliasesPackage"
value=
"com.gic.haoban.**.entity,com.gic.haoban.*.entity"
/>
<property
name=
"mapperLocations"
value=
"classpath*:mapper/**/*.xml"
/>
<property
name=
"plugins"
>
<array>
<bean
class=
"com.github.pagehelper.PageHelper"
>
<property
name=
"properties"
>
<value>
dialect=mysql
</value>
</property>
</bean>
</array>
</property>
</bean>
<bean
class=
"org.mybatis.spring.mapper.MapperScannerConfigurer"
>
<property
name=
"basePackage"
value=
"com.gic.haoban.**.dao.mapper,com.gic.haoban.*.mapper"
/>
<property
name=
"sqlSessionFactoryBeanName"
value=
"sqlSessionFactory"
/>
</bean>
<bean
class=
"org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
</bean>
<!-- 事务管理器 -->
<bean
id=
"txManager"
class=
"org.springframework.jdbc.datasource.DataSourceTransactionManager"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
</bean>
<tx:annotation-driven
transaction-manager=
"txManager"
/>
</beans>
\ No newline at end of file
haoban-manage3-service/src/main/resources/kafka-setting.xml
View file @
4fd9dd92
...
...
@@ -39,7 +39,7 @@
<value>
haoban_gic_clerk
</value>
<value>
haoban_gic_store
</value>
<value>
haoban_gic_store_group
</value>
<value>
tab_haoban_member_order_event
</value>
<value>
tab_haoban_member_order_event
_prod
</value>
<value>
haoban_gic_order
</value>
</list>
</constructor-arg>
...
...
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