Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eeb97d25
authored
Dec 10, 2025
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into 'v5.5.0'
反合master到当前开发分支v5.5.0 See merge request
!2
2 parents
ae6dc725
250f2ee6
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
121 additions
and
38 deletions
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/constant/DigitalManagementConstants.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/job/digitalmanagement/MonthlyTrainingStatisticsJob.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/mapper/digitalmanagement/DigitalManagementStaffRecordItemMapper.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/mapper/script/ExtractSourceMapper.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/digitalmanagement/DigitalManagementStaffRecordService.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/script/ExtractSourceService.java
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/DigitalManagementStaffRecordItemMapper.xml
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/ExtractSourceMapper.xml
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/constant/DigitalManagementConstants.java
View file @
eeb97d2
package
cn
.
com
.
glsx
.
dj
.
mindworkplate
.
constant
;
package
cn
.
com
.
glsx
.
dj
.
mindworkplate
.
constant
;
import
com.alibaba.metrics.StringUtils
;
import
java.util.Objects
;
/**
/**
* 数字化管理-日报管理相关常量
* 数字化管理-日报管理相关常量
*/
*/
...
@@ -26,16 +30,24 @@ public class DigitalManagementConstants {
...
@@ -26,16 +30,24 @@ public class DigitalManagementConstants {
public
static
final
String
RECORD_ITEM_KEY_IS_TRAINING_ORGANIZED
=
"isTrainingOrganized"
;
// 是否组织培训
public
static
final
String
RECORD_ITEM_KEY_IS_TRAINING_ORGANIZED
=
"isTrainingOrganized"
;
// 是否组织培训
public
static
final
String
RECORD_ITEM_KEY_ASSESSMENT_RESULT
=
"assessmentResult"
;
// 考核结果
public
static
final
String
RECORD_ITEM_KEY_ASSESSMENT_RESULT
=
"assessmentResult"
;
// 考核结果
public
static
final
String
RECORD_ITEM_KEY_TOMORROW_PLAN
=
"tomorrowPlan"
;
// 明日计划
public
static
final
String
RECORD_ITEM_KEY_TODAY_SUMMARY
=
"todaySummary"
;
// 今日总结
// 布尔值是/否
// 布尔值是/否
public
static
final
String
BOOL_VALUE_TRUE
=
"是"
;
public
static
final
String
BOOL_VALUE_TRUE
=
"是"
;
public
static
final
String
BOOL_VALUE_FALSE
=
"否"
;
public
static
final
String
BOOL_VALUE_FALSE
=
"否"
;
public
static
final
String
HIDE_VALUE
=
"
0
"
;
public
static
final
String
HIDE_VALUE
=
"
"
;
// 定制推送标题
// 定制推送标题
public
static
final
String
PUSH_TITLE_MONTHLY_TOTAL_TRAINING
=
"本月累计培训次数:"
;
public
static
final
String
PUSH_TITLE_MONTHLY_TOTAL_TRAINING
=
"本月累计培训次数:"
;
public
static
final
String
PUSH_TITLE_VALUE_UN_TRAIN
=
"未培训"
;
public
static
final
String
PUSH_TITLE_VALUE_UN_TRAIN
=
"未培训"
;
public
static
boolean
isHideValue
(
String
val
){
if
(
StringUtils
.
isBlank
(
val
))
{
return
true
;
}
return
Objects
.
equals
(
HIDE_VALUE
,
val
);
}
}
}
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/job/digitalmanagement/MonthlyTrainingStatisticsJob.java
View file @
eeb97d2
...
@@ -28,7 +28,7 @@ import java.util.stream.Collectors;
...
@@ -28,7 +28,7 @@ import java.util.stream.Collectors;
* @Version 1.0
* @Version 1.0
*/
*/
@Slf4j
@Slf4j
@ElasticJobConf
(
name
=
"MonthlyTrainingStatisticsJob"
,
cron
=
"0 0 10 ? * MON"
,
description
=
"运营日报填写每月培训场次统计"
,
overwrite
=
false
)
//
@ElasticJobConf(name = "MonthlyTrainingStatisticsJob", cron = "0 0 10 ? * MON", description = "运营日报填写每月培训场次统计", overwrite = false)
public
class
MonthlyTrainingStatisticsJob
implements
SimpleJob
{
public
class
MonthlyTrainingStatisticsJob
implements
SimpleJob
{
@Autowired
@Autowired
...
...
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/mapper/digitalmanagement/DigitalManagementStaffRecordItemMapper.java
View file @
eeb97d2
...
@@ -22,4 +22,6 @@ public interface DigitalManagementStaffRecordItemMapper extends OreMapper<Digita
...
@@ -22,4 +22,6 @@ public interface DigitalManagementStaffRecordItemMapper extends OreMapper<Digita
void
updateHistoryRate
(
@Param
(
"ids"
)
List
<
Integer
>
ids
,
@Param
(
"rate"
)
String
rate
,
@Param
(
"isMonth"
)
boolean
isMonth
);
void
updateHistoryRate
(
@Param
(
"ids"
)
List
<
Integer
>
ids
,
@Param
(
"rate"
)
String
rate
,
@Param
(
"isMonth"
)
boolean
isMonth
);
List
<
DigitalManagementStaffRecordItemDTO
>
findByRecordId
(
@Param
(
"recordId"
)
Integer
recordId
);
List
<
DigitalManagementStaffRecordItemDTO
>
findByRecordId
(
@Param
(
"recordId"
)
Integer
recordId
);
List
<
DigitalManagementStaffRecordItem
>
selectByRecordId
(
@Param
(
"recordId"
)
Integer
recordId
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/mapper/script/ExtractSourceMapper.java
View file @
eeb97d2
...
@@ -15,4 +15,6 @@ public interface ExtractSourceMapper extends OreMapper<ExtractSource> {
...
@@ -15,4 +15,6 @@ public interface ExtractSourceMapper extends OreMapper<ExtractSource> {
List
<
ExtractSource
>
selectDealOrderSoundRecordingTask
(
@Param
(
"score"
)
BigDecimal
score
);
List
<
ExtractSource
>
selectDealOrderSoundRecordingTask
(
@Param
(
"score"
)
BigDecimal
score
);
List
<
ExtractSource
>
selectDealSoundRecordingTask
(
@Param
(
"score"
)
BigDecimal
score
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/digitalmanagement/DigitalManagementStaffRecordService.java
View file @
eeb97d2
...
@@ -23,6 +23,7 @@ import cn.com.glsx.merchants.remote.MerchantStaffRemote;
...
@@ -23,6 +23,7 @@ import cn.com.glsx.merchants.remote.MerchantStaffRemote;
import
cn.com.glsx.scrm.equity.enums.DeleteFlagEnum
;
import
cn.com.glsx.scrm.equity.enums.DeleteFlagEnum
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
...
@@ -318,19 +319,22 @@ public class DigitalManagementStaffRecordService {
...
@@ -318,19 +319,22 @@ public class DigitalManagementStaffRecordService {
RpcAssert
.
assertNotNull
(
template
,
DefaultErrorEnum
.
VALIDATE_FAILED
,
"您当前无需提交该日报"
);
RpcAssert
.
assertNotNull
(
template
,
DefaultErrorEnum
.
VALIDATE_FAILED
,
"您当前无需提交该日报"
);
DigitalManagementStaffRecord
staffRecord
=
staffRecordMapper
.
myRecordDetail
(
uuid
,
today
);
DigitalManagementStaffRecord
staffRecord
=
staffRecordMapper
.
myRecordDetail
(
uuid
,
today
);
RpcAssert
.
assertIsNull
(
staffRecord
,
DefaultErrorEnum
.
DATA_EXIST
,
"当天日报已填写,无需重复填写。"
);
// 20251208 区域运营支持当日模板进行编辑
boolean
supportEdit
=
StringUtils
.
isNotBlank
(
template
.
getExtendField
())
&&
Optional
.
ofNullable
(
JSON
.
parseObject
(
template
.
getExtendField
())).
map
(
p
->
p
.
getBoolean
(
"supportEdit"
)).
orElse
(
false
);
boolean
nonExist
=
staffRecord
==
null
;
RpcAssert
.
assertIsTrue
(
supportEdit
||
nonExist
,
DefaultErrorEnum
.
DATA_EXIST
,
"当天日报已填写,无需重复填写。"
);
List
<
DigitalManagementStaffRecordItem
>
recordItems
;
if
(
nonExist
)
{
staffRecord
=
new
DigitalManagementStaffRecord
();
staffRecord
=
new
DigitalManagementStaffRecord
();
staffRecord
.
setStaffUuid
(
uuid
);
staffRecord
.
setStaffUuid
(
uuid
);
staffRecord
.
setTemplateCode
(
template
.
getCode
());
staffRecord
.
setTemplateCode
(
template
.
getCode
());
staffRecord
.
setCreatedBy
(
uuid
);
staffRecord
.
setCreatedBy
(
uuid
);
staffRecord
.
setUpdatedBy
(
uuid
);
staffRecord
.
setCreatedDate
(
today
);
staffRecord
.
setCreatedDate
(
today
);
staffRecord
.
setUpdatedDate
(
today
);
staffRecord
.
setDeletedFlag
(
DeleteFlagEnum
.
N
.
getValue
());
staffRecord
.
setDeletedFlag
(
DeleteFlagEnum
.
N
.
getValue
());
List
<
DigitalManagementTemplateItemDTO
>
templateItems
=
templateItemMapper
.
findByCode
(
template
.
getCode
());
List
<
DigitalManagementTemplateItemDTO
>
templateItems
=
templateItemMapper
.
findByCode
(
template
.
getCode
());
List
<
DigitalManagementStaffRecordItem
>
recordItems
=
templateItems
.
stream
().
map
(
item
->
{
recordItems
=
templateItems
.
stream
().
map
(
item
->
{
DigitalManagementStaffRecordItem
recordItem
=
new
DigitalManagementStaffRecordItem
();
DigitalManagementStaffRecordItem
recordItem
=
new
DigitalManagementStaffRecordItem
();
BeanUtils
.
copyProperties
(
item
,
recordItem
);
BeanUtils
.
copyProperties
(
item
,
recordItem
);
recordItem
.
setValue
(
form
.
get
(
item
.
getKey
()));
recordItem
.
setValue
(
form
.
get
(
item
.
getKey
()));
...
@@ -344,6 +348,16 @@ public class DigitalManagementStaffRecordService {
...
@@ -344,6 +348,16 @@ public class DigitalManagementStaffRecordService {
}
}
return
recordItem
;
return
recordItem
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
}
else
{
staffRecord
.
setUpdatedBy
(
uuid
);
staffRecord
.
setUpdatedDate
(
today
);
recordItems
=
staffRecordItemMapper
.
selectByRecordId
(
staffRecord
.
getId
());
recordItems
.
forEach
(
item
->
{
item
.
setValue
(
form
.
get
(
item
.
getKey
()));
item
.
setUpdatedBy
(
uuid
);
item
.
setUpdatedDate
(
today
);
});
}
DigitalManagementStaffRecordDTO
todayRecordDTO
=
new
DigitalManagementStaffRecordDTO
();
DigitalManagementStaffRecordDTO
todayRecordDTO
=
new
DigitalManagementStaffRecordDTO
();
BeanUtils
.
copyProperties
(
staffRecord
,
todayRecordDTO
);
BeanUtils
.
copyProperties
(
staffRecord
,
todayRecordDTO
);
...
@@ -358,16 +372,22 @@ public class DigitalManagementStaffRecordService {
...
@@ -358,16 +372,22 @@ public class DigitalManagementStaffRecordService {
Map
<
String
,
String
>
weekRateMap
=
computeRateAndUpdateHistory
(
todayRecordDTO
,
false
);
Map
<
String
,
String
>
weekRateMap
=
computeRateAndUpdateHistory
(
todayRecordDTO
,
false
);
Map
<
String
,
String
>
monthRateMap
=
computeRateAndUpdateHistory
(
todayRecordDTO
,
true
);
Map
<
String
,
String
>
monthRateMap
=
computeRateAndUpdateHistory
(
todayRecordDTO
,
true
);
staffRecordMapper
.
insertUseGeneratedKeys
(
staffRecord
);
Integer
staffRecordId
=
staffRecord
.
getId
();
recordItems
.
forEach
(
item
->
{
recordItems
.
forEach
(
item
->
{
item
.
setRecordId
(
staffRecordId
);
item
.
setWeekRate
(
weekRateMap
.
get
(
item
.
getKey
()));
item
.
setWeekRate
(
weekRateMap
.
get
(
item
.
getKey
()));
item
.
setMonthRate
(
monthRateMap
.
get
(
item
.
getKey
()));
item
.
setMonthRate
(
monthRateMap
.
get
(
item
.
getKey
()));
});
});
if
(
nonExist
)
{
staffRecordMapper
.
insertUseGeneratedKeys
(
staffRecord
);
Integer
staffRecordId
=
staffRecord
.
getId
();
recordItems
.
forEach
(
item
->
item
.
setRecordId
(
staffRecordId
));
staffRecordItemMapper
.
insertList
(
recordItems
);
staffRecordItemMapper
.
insertList
(
recordItems
);
return
staffRecordId
;
}
else
{
staffRecordMapper
.
updateByPrimaryKey
(
staffRecord
);
recordItems
.
forEach
(
item
->
staffRecordItemMapper
.
updateByPrimaryKey
(
item
));
}
return
staffRecord
.
getId
();
}
}
/**
/**
...
@@ -589,9 +609,9 @@ public class DigitalManagementStaffRecordService {
...
@@ -589,9 +609,9 @@ public class DigitalManagementStaffRecordService {
AtomicBoolean
dayOffStatus
=
new
AtomicBoolean
(
false
);
AtomicBoolean
dayOffStatus
=
new
AtomicBoolean
(
false
);
boolean
isRegionalTemplate
=
isRegionalTemplate
(
recordDTO
.
getTemplateCode
());
boolean
isRegionalTemplate
=
isRegionalTemplate
(
recordDTO
.
getTemplateCode
());
if
(
isRegionalTemplate
)
{
if
(
isRegionalTemplate
)
{
contentBuilder
//
contentBuilder
.
append
(
PUSH_TITLE_MONTHLY_TOTAL_TRAINING
)
//
.append(PUSH_TITLE_MONTHLY_TOTAL_TRAINING)
.
append
(
staffRecordMapper
.
getMonthlyIsTrainingOrganizedCount
(
recordDTO
.
getStaffUuid
())).
append
(
"次\n"
);
//
.append(staffRecordMapper.getMonthlyIsTrainingOrganizedCount(recordDTO.getStaffUuid())).append("次\n");
// 取"业绩报告-当日休假"字段判断,并将其移动到上一层级
// 取"业绩报告-当日休假"字段判断,并将其移动到上一层级
// DigitalManagementStaffRecordItemDTO dayOffStatusItem;
// DigitalManagementStaffRecordItemDTO dayOffStatusItem;
recordDTO
.
getTypes
().
stream
()
recordDTO
.
getTypes
().
stream
()
...
@@ -607,9 +627,9 @@ public class DigitalManagementStaffRecordService {
...
@@ -607,9 +627,9 @@ public class DigitalManagementStaffRecordService {
});
});
});
});
// 休假时,删除"工作总结"
// 休假时,删除"工作总结"
if
(
dayOffStatus
.
get
())
{
//
if (dayOffStatus.get()) {
recordDTO
.
setTypes
(
recordDTO
.
getTypes
().
stream
().
filter
(
p
->
!
RECORD_ITEM_KEY_WORK_SUMMARY
.
equals
(
p
.
getKey
())).
collect
(
Collectors
.
toList
()));
//
recordDTO.setTypes(recordDTO.getTypes().stream().filter(p -> !RECORD_ITEM_KEY_WORK_SUMMARY.equals(p.getKey())).collect(Collectors.toList()));
}
//
}
}
}
return
buildRecordContent
(
contentBuilder
,
recordDTO
,
dayOffStatus
.
get
(),
isRegionalTemplate
);
return
buildRecordContent
(
contentBuilder
,
recordDTO
,
dayOffStatus
.
get
(),
isRegionalTemplate
);
}
}
...
@@ -627,23 +647,23 @@ public class DigitalManagementStaffRecordService {
...
@@ -627,23 +647,23 @@ public class DigitalManagementStaffRecordService {
StringBuilder
subContentBuilder
=
new
StringBuilder
();
StringBuilder
subContentBuilder
=
new
StringBuilder
();
for
(
DigitalManagementStaffRecordItemDTO
type
:
recordDTO
.
getTypes
())
{
for
(
DigitalManagementStaffRecordItemDTO
type
:
recordDTO
.
getTypes
())
{
// 判断"是否组织培训"为否,则上级只须展示"未培训"
// 判断"是否组织培训"为否,则上级只须展示"未培训"
if
(
type
.
getKey
().
startsWith
(
RECORD_ITEM_KEY_ORGANIZE_TRAINING
)
&&
CollectionUtils
.
isNotEmpty
(
type
.
getItems
()))
{
//
if (type.getKey().startsWith(RECORD_ITEM_KEY_ORGANIZE_TRAINING) && CollectionUtils.isNotEmpty(type.getItems())) {
Boolean
isTrainingOrganized
=
type
.
getItems
().
stream
()
//
Boolean isTrainingOrganized = type.getItems().stream()
.
filter
(
item
->
item
.
getKey
().
startsWith
(
RECORD_ITEM_KEY_IS_TRAINING_ORGANIZED
))
//
.filter(item -> item.getKey().startsWith(RECORD_ITEM_KEY_IS_TRAINING_ORGANIZED))
.
map
(
item
->
BOOL_VALUE_TRUE
.
equals
(
item
.
getValue
()))
//
.map(item -> BOOL_VALUE_TRUE.equals(item.getValue()))
.
findFirst
().
orElse
(
false
);
//
.findFirst().orElse(false);
if
(!
isTrainingOrganized
)
{
//
if (!isTrainingOrganized) {
if
(
isRegionalTemplate
)
{
//
if (isRegionalTemplate) {
subContentBuilder
.
append
(
"【"
).
append
(
type
.
getName
()).
append
(
"】\n"
);
//
subContentBuilder.append("【").append(type.getName()).append("】\n");
subContentBuilder
.
append
(
PUSH_TITLE_VALUE_UN_TRAIN
).
append
(
"\n"
);
//
subContentBuilder.append(PUSH_TITLE_VALUE_UN_TRAIN).append("\n");
}
//
}
continue
;
//
continue;
}
//
}
}
//
}
// hideDefaultValue=true时,如果全部都是默认值,则上级都不用展示了
// hideDefaultValue=true时,如果全部都是默认值,则上级都不用展示了
if
(
hideDefaultValue
if
(
hideDefaultValue
&&
type
.
getItems
().
stream
().
allMatch
(
item
->
HIDE_VALUE
.
equals
(
item
.
getValue
())))
{
&&
type
.
getItems
().
stream
().
allMatch
(
item
->
isHideValue
(
item
.
getValue
())))
{
continue
;
continue
;
}
}
...
@@ -651,7 +671,7 @@ public class DigitalManagementStaffRecordService {
...
@@ -651,7 +671,7 @@ public class DigitalManagementStaffRecordService {
for
(
DigitalManagementStaffRecordItemDTO
item
:
type
.
getItems
())
{
for
(
DigitalManagementStaffRecordItemDTO
item
:
type
.
getItems
())
{
String
value
=
item
.
getValue
();
String
value
=
item
.
getValue
();
// 默认值则隐藏此项
// 默认值则隐藏此项
if
(
hideDefaultValue
&&
HIDE_VALUE
.
equals
(
value
))
{
if
(
hideDefaultValue
&&
isHideValue
(
value
))
{
continue
;
continue
;
}
}
...
@@ -665,6 +685,10 @@ public class DigitalManagementStaffRecordService {
...
@@ -665,6 +685,10 @@ public class DigitalManagementStaffRecordService {
if
(
StringUtils
.
isNotBlank
(
suffix
))
{
if
(
StringUtils
.
isNotBlank
(
suffix
))
{
value
=
value
+
suffix
;
value
=
value
+
suffix
;
}
}
// 特殊字段:加换行
if
(
item
.
getKey
().
startsWith
(
RECORD_ITEM_KEY_TODAY_SUMMARY
)
||
item
.
getKey
().
startsWith
(
RECORD_ITEM_KEY_TOMORROW_PLAN
)){
value
=
"\n"
+
value
;
}
}
else
{
}
else
{
value
=
"无"
;
value
=
"无"
;
}
}
...
...
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/script/ExtractSourceService.java
View file @
eeb97d2
...
@@ -448,7 +448,7 @@ public class ExtractSourceService {
...
@@ -448,7 +448,7 @@ public class ExtractSourceService {
public
void
duplicateRemovalRecordResult
()
{
public
void
duplicateRemovalRecordResult
()
{
String
taskId
=
null
;
String
taskId
=
null
;
Integer
id
=
null
;
Integer
id
=
null
;
RemoveDuplicateTask
duplicateTask
=
null
;
RemoveDuplicateTask
duplicateTask
;
try
{
try
{
RemoveDuplicateTask
record
=
new
RemoveDuplicateTask
();
RemoveDuplicateTask
record
=
new
RemoveDuplicateTask
();
record
.
setDelFlag
(
"N"
);
record
.
setDelFlag
(
"N"
);
...
@@ -640,11 +640,23 @@ public class ExtractSourceService {
...
@@ -640,11 +640,23 @@ public class ExtractSourceService {
}
else
{
}
else
{
scenes
=
Collections
.
emptyList
();
scenes
=
Collections
.
emptyList
();
}
}
List
<
ExtractSource
>
saveList
=
extractSourceMapper
.
selectDealOrderSoundRecordingTask
(
score
);
List
<
ExtractSource
>
saveList
=
new
ArrayList
<>();
if
(
saveList
!=
null
&&
!
saveList
.
isEmpty
()
&&
CollectionUtils
.
isNotEmpty
(
scenes
))
{
if
(
scenes
.
contains
(
1
))
{
List
<
ExtractSource
>
extractSources
=
extractSourceMapper
.
selectDealSoundRecordingTask
(
score
);
if
(
extractSources
!=
null
&&
!
extractSources
.
isEmpty
())
{
saveList
.
addAll
(
extractSources
);
}
log
.
info
(
"录音萃取-轻改录音查询结果:{}"
,
saveList
.
size
());
}
List
<
ExtractSource
>
allList
=
extractSourceMapper
.
selectDealOrderSoundRecordingTask
(
score
);
if
(
allList
!=
null
&&
!
allList
.
isEmpty
())
{
allList
=
allList
.
stream
().
filter
(
e
->
e
.
getScene
()
!=
1
).
collect
(
Collectors
.
toList
());
saveList
.
addAll
(
allList
);
}
if
(!
saveList
.
isEmpty
()
&&
CollectionUtils
.
isNotEmpty
(
scenes
))
{
saveList
=
saveList
.
stream
().
filter
(
e
->
e
.
getScene
()
!=
null
&&
scenes
.
contains
(
e
.
getScene
())).
collect
(
Collectors
.
toList
());
saveList
=
saveList
.
stream
().
filter
(
e
->
e
.
getScene
()
!=
null
&&
scenes
.
contains
(
e
.
getScene
())).
collect
(
Collectors
.
toList
());
}
}
if
(
saveList
==
null
||
saveList
.
isEmpty
())
return
;
if
(
saveList
.
isEmpty
())
return
;
// 如果配置了排除品牌,则过滤
// 如果配置了排除品牌,则过滤
if
(
brandFilter
&&
excludeSceneChildBrand
!=
null
if
(
brandFilter
&&
excludeSceneChildBrand
!=
null
&&
excludeSceneChildBrand
.
getSceneChildBrandList
()
!=
null
&&
!
excludeSceneChildBrand
.
getSceneChildBrandList
().
isEmpty
())
{
&&
excludeSceneChildBrand
.
getSceneChildBrandList
()
!=
null
&&
!
excludeSceneChildBrand
.
getSceneChildBrandList
().
isEmpty
())
{
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/DigitalManagementStaffRecordItemMapper.xml
View file @
eeb97d2
...
@@ -82,4 +82,9 @@
...
@@ -82,4 +82,9 @@
where deleted_flag = 'N' and record_id = #{recordId}
where deleted_flag = 'N' and record_id = #{recordId}
</select>
</select>
<select
id=
"selectByRecordId"
resultMap=
"BaseResultMap"
>
select * from digital_management_staff_record_item
where deleted_flag = 'N' and record_id = #{recordId}
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/ExtractSourceMapper.xml
View file @
eeb97d2
...
@@ -87,4 +87,30 @@
...
@@ -87,4 +87,30 @@
AND
t2.score
>
= #{score}
AND
t2.score
>
= #{score}
]]>
]]>
</select>
</select>
<select
id=
"selectDealSoundRecordingTask"
resultType=
"cn.com.glsx.dj.mindworkplate.model.script.ExtractSource"
>
<![CDATA[
SELECT t1.id AS sourceId,
t2.id AS batchId,
t2.che_taskId AS extractTaskId,
t3.staff_uuid AS UUID,
t3.merchant_id AS merchantId,
CASE
WHEN t1.check_type = 2 THEN 1
WHEN t1.check_type = 3 THEN 2
ELSE 0 END AS scene,
'1' AS extractStatus,
t2.score AS "质检分数",
t3.phone_number AS "客户手机号",
t1.recording_start_time AS "录音开始时间"
FROM inspection_badge_recordings t1
INNER JOIN inspection_conversation_batch t2 ON t2.record_id = t1.id
INNER JOIN reception_customer_info t3 ON t3.id = t1.reception_id
WHERE t1.recording_start_time >
= CURRENT_DATE()
AND t1.recording_start_time
< DATE_ADD
(CURRENT_DATE(),
INTERVAL
1
DAY)
AND
t2.score
>
= #{score}
AND t1.check_type = 2
]]>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment