Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
operate-customer-service
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
沈振路
operate-customer-service
Commits
7582910f
提交
7582910f
authored
11月 01, 2022
作者:
沈振路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
获取书城名调整
上级
ea73777a
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
28 行增加
和
23 行删除
+28
-23
KanbanCommonMapper.java
...java/com/yaoyaozw/customer/mapper/KanbanCommonMapper.java
+0
-5
MaterialCommonMapper.java
...va/com/yaoyaozw/customer/mapper/MaterialCommonMapper.java
+6
-0
CustomerDelayTextServiceImpl.java
...w/customer/service/impl/CustomerDelayTextServiceImpl.java
+4
-3
CustomerGraphicsDelayServiceImpl.java
...stomer/service/impl/CustomerGraphicsDelayServiceImpl.java
+5
-3
KanbanCommonMapper.xml
src/main/resources/mapper/KanbanCommonMapper.xml
+0
-12
MaterialCommonMapper.xml
src/main/resources/mapper/MaterialCommonMapper.xml
+13
-0
没有找到文件。
src/main/java/com/yaoyaozw/customer/mapper/KanbanCommonMapper.java
浏览文件 @
7582910f
...
@@ -51,11 +51,6 @@ public interface KanbanCommonMapper {
...
@@ -51,11 +51,6 @@ public interface KanbanCommonMapper {
*/
*/
List
<
CommonOptionResponseVO
>
getStoreTypeEntity
(
@Param
(
"storeKeySet"
)
Set
<
String
>
storeKeySet
);
List
<
CommonOptionResponseVO
>
getStoreTypeEntity
(
@Param
(
"storeKeySet"
)
Set
<
String
>
storeKeySet
);
/**
* @param appId 应用程序id
* @return {@link String}
*/
String
getStoreTypeNameByAppId
(
@Param
(
"appId"
)
String
appId
);
...
...
src/main/java/com/yaoyaozw/customer/mapper/MaterialCommonMapper.java
浏览文件 @
7582910f
...
@@ -57,4 +57,10 @@ public interface MaterialCommonMapper {
...
@@ -57,4 +57,10 @@ public interface MaterialCommonMapper {
*/
*/
List
<
CustomerCommonLink
>
getCommonLinkMapping
(
@Param
(
"currentKey"
)
String
currentKey
);
List
<
CustomerCommonLink
>
getCommonLinkMapping
(
@Param
(
"currentKey"
)
String
currentKey
);
/**
* @param appId 应用程序id
* @return {@link String}
*/
String
getStoreTypeNameByAppId
(
@Param
(
"appId"
)
String
appId
);
}
}
src/main/java/com/yaoyaozw/customer/service/impl/CustomerDelayTextServiceImpl.java
浏览文件 @
7582910f
...
@@ -18,6 +18,7 @@ import com.yaoyaozw.customer.entity.CustomerGraphicsDelay;
...
@@ -18,6 +18,7 @@ import com.yaoyaozw.customer.entity.CustomerGraphicsDelay;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.mapper.KanbanCommonMapper
;
import
com.yaoyaozw.customer.mapper.KanbanCommonMapper
;
import
com.yaoyaozw.customer.mapper.MaterialCommonMapper
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
...
@@ -56,9 +57,9 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
...
@@ -56,9 +57,9 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
@Autowired
@Autowired
private
CustomerServiceCommonAsyncComponent
commonAsyncComponent
;
private
CustomerServiceCommonAsyncComponent
commonAsyncComponent
;
@Autowired
@Autowired
private
KanbanCommonMapper
kanbanCommonMapper
;
@Autowired
private
CustomerGraphicsDelayService
graphicsDelayService
;
private
CustomerGraphicsDelayService
graphicsDelayService
;
@Autowired
private
MaterialCommonMapper
materialCommonMapper
;
@Override
@Override
public
GenericsResult
<
String
>
insertCustomerDelay
(
CustomerDelayTextSaveDTO
saveDto
)
{
public
GenericsResult
<
String
>
insertCustomerDelay
(
CustomerDelayTextSaveDTO
saveDto
)
{
...
@@ -113,7 +114,7 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
...
@@ -113,7 +114,7 @@ public class CustomerDelayTextServiceImpl extends ServiceImpl<CustomerGraphicsDe
referralEntity
.
setName
(
nameModel
);
referralEntity
.
setName
(
nameModel
);
}
}
String
storeTypeName
=
kanban
CommonMapper
.
getStoreTypeNameByAppId
(
referralDto
.
getAppId
());
String
storeTypeName
=
material
CommonMapper
.
getStoreTypeNameByAppId
(
referralDto
.
getAppId
());
referralEntity
.
setStoreTypeName
(
storeTypeName
);
referralEntity
.
setStoreTypeName
(
storeTypeName
);
// 获取链接
// 获取链接
// 日期
// 日期
...
...
src/main/java/com/yaoyaozw/customer/service/impl/CustomerGraphicsDelayServiceImpl.java
浏览文件 @
7582910f
...
@@ -21,6 +21,7 @@ import com.yaoyaozw.customer.entity.CustomerGraphicsDelay;
...
@@ -21,6 +21,7 @@ import com.yaoyaozw.customer.entity.CustomerGraphicsDelay;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.entity.ReferralEntity
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.mapper.CustomerGraphicsDelayMapper
;
import
com.yaoyaozw.customer.mapper.KanbanCommonMapper
;
import
com.yaoyaozw.customer.mapper.KanbanCommonMapper
;
import
com.yaoyaozw.customer.mapper.MaterialCommonMapper
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.AuthorizerInfoService
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
import
com.yaoyaozw.customer.service.CustomerDelayTextService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
import
com.yaoyaozw.customer.service.CustomerGraphicsDelayService
;
...
@@ -66,6 +67,8 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
...
@@ -66,6 +67,8 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
private
KanbanCommonMapper
kanbanCommonMapper
;
private
KanbanCommonMapper
kanbanCommonMapper
;
@Autowired
@Autowired
private
CustomerServiceCommonAsyncComponent
commonAsyncComponent
;
private
CustomerServiceCommonAsyncComponent
commonAsyncComponent
;
@Autowired
private
MaterialCommonMapper
materialCommonMapper
;
@Override
@Override
...
@@ -122,6 +125,8 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
...
@@ -122,6 +125,8 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
localLog
.
info
(
"获取链接name模板: {}"
,
linkNameModel
);
localLog
.
info
(
"获取链接name模板: {}"
,
linkNameModel
);
referralEntity
.
setName
(
linkNameModel
);
referralEntity
.
setName
(
linkNameModel
);
}
}
String
storeTypeName
=
materialCommonMapper
.
getStoreTypeNameByAppId
(
customerGraphicsDelay
.
getAppId
());
referralEntity
.
setStoreTypeName
(
storeTypeName
);
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy/MM/dd"
);
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy/MM/dd"
);
String
dateStr
=
dateFormat
.
format
(
new
Date
());
String
dateStr
=
dateFormat
.
format
(
new
Date
());
...
@@ -138,9 +143,6 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
...
@@ -138,9 +143,6 @@ public class CustomerGraphicsDelayServiceImpl extends ServiceImpl<CustomerGraphi
}
}
try
{
try
{
customerGraphicsDelay
.
setSourceUrl
(
referralEntity
.
getReferral
());
customerGraphicsDelay
.
setSourceUrl
(
referralEntity
.
getReferral
());
String
storeTypeName
=
kanbanCommonMapper
.
getStoreTypeNameByAppId
(
customerGraphicsDelay
.
getAppId
());
referralEntity
.
setStoreTypeName
(
storeTypeName
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
new
BaseResult
().
error
(
e
.
getMessage
());
return
new
BaseResult
().
error
(
e
.
getMessage
());
}
}
...
...
src/main/resources/mapper/KanbanCommonMapper.xml
浏览文件 @
7582910f
...
@@ -51,15 +51,4 @@
...
@@ -51,15 +51,4 @@
</select>
</select>
<select
id=
"getStoreTypeNameByAppId"
resultType=
"java.lang.String"
>
select
se.store_name
from account_entity ae
left join store_entity se
on ae.store_id = se.id
where ae.app_id = #{appId}
and is_active = 1
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mapper/MaterialCommonMapper.xml
浏览文件 @
7582910f
...
@@ -51,4 +51,16 @@
...
@@ -51,4 +51,16 @@
where dict_current_key = #{currentKey}
where dict_current_key = #{currentKey}
</if>
</if>
</select>
</select>
<select
id=
"getStoreTypeNameByAppId"
resultType=
"java.lang.String"
>
select
b.explanation
from authorizer_info a
left join account_dictionary b
on b.type = 'StoreType'
and a.store_type = b.`value`
where a.appid = #{appId}
limit 1
</select>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论