Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 82ea0f67
authored
Dec 11, 2025
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
定时任务处理历史数据
1 parent
46f2182b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
295 additions
and
9 deletions
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/config/BeanConfig.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerExceptionDataJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerHistoryDataJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerSelfDailyDataJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/UpdateMerchantJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/mapper/BusinessIntelligenceMapper.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/remote/UsedCarDataStatsRemoteImpl.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessIntelligenceService.java
rpc-dj-pe-analysis/src/main/resources/META-INF/orm/BusinessIntelligenceMapper.xml
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/config/BeanConfig.java
View file @
82ea0f6
...
@@ -24,10 +24,10 @@ public class BeanConfig {
...
@@ -24,10 +24,10 @@ public class BeanConfig {
@Primary
@Primary
public
TaskExecutor
taskExecutor
()
{
public
TaskExecutor
taskExecutor
()
{
ThreadPoolTaskExecutor
taskExecutor
=
new
ThreadPoolTaskExecutor
();
ThreadPoolTaskExecutor
taskExecutor
=
new
ThreadPoolTaskExecutor
();
taskExecutor
.
setCorePoolSize
(
200
);
taskExecutor
.
setCorePoolSize
(
Runtime
.
getRuntime
().
availableProcessors
()
);
taskExecutor
.
setMaxPoolSize
(
400
);
taskExecutor
.
setMaxPoolSize
(
Runtime
.
getRuntime
().
availableProcessors
()
*
2
);
taskExecutor
.
setQueueCapacity
(
1000
2
);
taskExecutor
.
setQueueCapacity
(
1000
);
taskExecutor
.
setKeepAliveSeconds
(
3
00
);
taskExecutor
.
setKeepAliveSeconds
(
6
00
);
return
taskExecutor
;
return
taskExecutor
;
}
}
...
...
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerExceptionDataJob.java
0 → 100644
View file @
82ea0f6
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
job
;
import
cn.com.glsx.dj.peanalysis.service.BusinessIntelligenceService
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
lombok.extern.slf4j.Slf4j
;
import
org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf
;
import
javax.annotation.Resource
;
@Slf4j
@ElasticJobConf
(
name
=
"HandlerExceptionDataJob"
,
cron
=
"0 0 0 1 1 ? 2100"
,
description
=
"处理4s店业务历史数据"
,
overwrite
=
false
)
public
class
HandlerExceptionDataJob
implements
SimpleJob
{
@Resource
private
BusinessIntelligenceService
businessIntelligenceService
;
@Override
public
void
execute
(
ShardingContext
shardingContext
)
{
log
.
info
(
"----------------处理4s店业务历史数据开始-----------------"
);
try
{
businessIntelligenceService
.
retryDBFailedRecords
();
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
log
.
info
(
"----------------处理4s店业务历史数据结束-----------------"
);
}
}
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerHistoryDataJob.java
0 → 100644
View file @
82ea0f6
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
job
;
import
cn.com.glsx.dj.peanalysis.service.BusinessIntelligenceService
;
import
cn.hutool.core.util.StrUtil
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
lombok.extern.slf4j.Slf4j
;
import
org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf
;
import
javax.annotation.Resource
;
@Slf4j
@ElasticJobConf
(
name
=
"HandlerHistoryDataJob"
,
cron
=
"0 0 0 1 1 ? 2100"
,
description
=
"处理4s店业务异常数据"
,
overwrite
=
false
)
public
class
HandlerHistoryDataJob
implements
SimpleJob
{
@Resource
private
BusinessIntelligenceService
businessIntelligenceService
;
@Override
public
void
execute
(
ShardingContext
shardingContext
)
{
log
.
info
(
"----------------处理4s店业务异常数据开始-----------------"
);
try
{
String
parameters
=
shardingContext
.
getJobParameter
();
if
(
StrUtil
.
isBlank
(
parameters
))
{
businessIntelligenceService
.
retryDBFailedRecords
();
}
else
{
// 按逗号分隔层 merchantId,statDate
String
[]
split
=
parameters
.
split
(
","
);
Integer
merchantId
=
Integer
.
valueOf
(
split
[
0
].
trim
());
String
statDate
=
split
[
1
].
trim
();
businessIntelligenceService
.
retryRecordsForWrite
(
merchantId
,
statDate
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
log
.
info
(
"----------------处理4s店业务异常数据结束-----------------"
);
}
}
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/HandlerSelfDailyDataJob.java
0 → 100644
View file @
82ea0f6
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
job
;
import
cn.com.glsx.dj.peanalysis.service.BusinessIntelligenceService
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
lombok.extern.slf4j.Slf4j
;
import
org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf
;
import
javax.annotation.Resource
;
import
java.util.Date
;
@Slf4j
@ElasticJobConf
(
name
=
"HandlerSelfDailyDataJob"
,
cron
=
"0 30 1 * * ?"
,
description
=
"处理4s店业务自定义返回数据,默认前一天"
,
overwrite
=
false
)
public
class
HandlerSelfDailyDataJob
implements
SimpleJob
{
@Resource
private
BusinessIntelligenceService
businessIntelligenceService
;
@Override
public
void
execute
(
ShardingContext
shardingContext
)
{
log
.
info
(
"----------------处理4s店业务自定义返回数据,默认前一天-开始-----------------"
);
try
{
String
parameters
=
shardingContext
.
getJobParameter
();
if
(
StrUtil
.
isBlank
(
parameters
))
{
businessIntelligenceService
.
selfDailyDataHandle
(
null
,
null
);
}
else
{
String
[]
split
=
parameters
.
split
(
","
);
String
startDateStr
=
split
[
0
].
trim
();
String
endDateStr
=
split
[
1
].
trim
();
// hutool 判断两个时间是否合法 startDate要小于等于endDate 并且endDate小于等于昨天
Date
startDate
=
DateUtil
.
parse
(
startDateStr
,
"yyyy-MM-dd"
);
Date
endDate
=
DateUtil
.
parse
(
endDateStr
,
"yyyy-MM-dd"
);
// startDate <= endDate
if
(
DateUtil
.
compare
(
startDate
,
endDate
)
>
0
)
{
log
.
error
(
"参数错误,startDate要小于等于endDate"
);
return
;
}
// endDate <= yesterday
Date
yesterday
=
DateUtil
.
parse
(
DateUtil
.
format
(
DateUtil
.
yesterday
(),
"yyyy-MM-dd"
));
if
(
DateUtil
.
compare
(
endDate
,
yesterday
)
>
0
)
{
log
.
error
(
"参数错误,endDate要小于等于昨天"
);
return
;
}
businessIntelligenceService
.
selfDailyDataHandle
(
startDateStr
,
endDateStr
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
log
.
info
(
"----------------处理4s店业务自定义返回数据,默认前一天-结束-----------------"
);
}
}
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/UpdateMerchantJob.java
View file @
82ea0f6
...
@@ -18,13 +18,13 @@ public class UpdateMerchantJob implements SimpleJob {
...
@@ -18,13 +18,13 @@ public class UpdateMerchantJob implements SimpleJob {
@Override
@Override
public
void
execute
(
ShardingContext
shardingContext
)
{
public
void
execute
(
ShardingContext
shardingContext
)
{
log
.
info
(
"----------------更新不同业务第一笔订单时间-----------------"
);
log
.
info
(
"----------------更新不同业务第一笔订单时间
开始
-----------------"
);
try
{
try
{
updateMerchantService
.
updateFirstOrderTime
(
shardingContext
.
getJobParameter
());
updateMerchantService
.
updateFirstOrderTime
(
shardingContext
.
getJobParameter
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
}
}
log
.
info
(
"----------------更新不同业务第一笔订单时间-----------------"
);
log
.
info
(
"----------------更新不同业务第一笔订单时间
结束
-----------------"
);
}
}
}
}
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/mapper/BusinessIntelligenceMapper.java
View file @
82ea0f6
...
@@ -49,6 +49,18 @@ public interface BusinessIntelligenceMapper {
...
@@ -49,6 +49,18 @@ public interface BusinessIntelligenceMapper {
List
<
BusinessOrderStatusEntity
>
getBusinessOrders
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
,
@Param
(
"statDates"
)
List
<
Date
>
statDates
);
List
<
BusinessOrderStatusEntity
>
getBusinessOrders
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
,
@Param
(
"statDates"
)
List
<
Date
>
statDates
);
/**
/**
* 批量获取指定商户列表在指定日期范围内的业务订单状态
*
* @param merchantIds 商户ID列表
* @param startDate 开始统计日期
* @param endDate 结束统计日期
* @return 业务订单状态实体列表
*/
List
<
BusinessOrderStatusEntity
>
getBusinessOrdersDateRange
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
/**
* 单条插入BI记录
* 单条插入BI记录
*
*
* @param record BI记录
* @param record BI记录
...
...
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/remote/UsedCarDataStatsRemoteImpl.java
View file @
82ea0f6
...
@@ -9,6 +9,7 @@ import cn.com.glsx.dj.peanalysis.service.UpdateMerchantService;
...
@@ -9,6 +9,7 @@ import cn.com.glsx.dj.peanalysis.service.UpdateMerchantService;
import
cn.com.glsx.dj.peanalysis.service.UsedCarDataStatsService
;
import
cn.com.glsx.dj.peanalysis.service.UsedCarDataStatsService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.hutool.core.util.StrUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.dubbo.config.annotation.DubboService
;
import
org.apache.dubbo.config.annotation.DubboService
;
...
@@ -149,13 +150,31 @@ public class UsedCarDataStatsRemoteImpl implements UsedCarDataStatsRemote {
...
@@ -149,13 +150,31 @@ public class UsedCarDataStatsRemoteImpl implements UsedCarDataStatsRemote {
}
}
/**
/**
* 处理
历史
数据
* 处理
业务
数据
*/
*/
@Override
@Override
public
RpcResponse
<
Boolean
>
generateBusinessIntelligenceData
()
{
public
RpcResponse
<
Boolean
>
generateBusinessIntelligenceData
()
{
try
{
try
{
businessIntelligenceService
.
totalDataHandle
();
// 全量数据处理
// businessIntelligenceService.dailyDataHandle();
// businessIntelligenceService.totalDataHandle();
// 按天数据处理
// String parameters = "2023-04-28,2024-04-28";
String
parameters
=
""
;
if
(
StrUtil
.
isBlank
(
parameters
))
{
businessIntelligenceService
.
selfDailyDataHandle
(
null
,
null
);
}
else
{
String
[]
split
=
parameters
.
split
(
","
);
businessIntelligenceService
.
selfDailyDataHandle
(
split
[
0
],
split
[
1
]);
}
// 重试库中异常记录
// businessIntelligenceService.retryDBFailedRecords();
// 指定商户指定日期重试
// String parameters = "44217659,2024-04-28";
// if (StrUtil.isNotBlank(parameters)) {
// // 按逗号分隔层 merchantId,statDate
// String[] split = parameters.split(",");
// businessIntelligenceService.retryRecordsForWrite(Integer.valueOf(split[0]), split[1]);
// }
return
RpcResponse
.
success
(
true
);
return
RpcResponse
.
success
(
true
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
...
...
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessIntelligenceService.java
View file @
82ea0f6
This diff is collapsed.
Click to expand it.
rpc-dj-pe-analysis/src/main/resources/META-INF/orm/BusinessIntelligenceMapper.xml
View file @
82ea0f6
...
@@ -22,10 +22,13 @@
...
@@ -22,10 +22,13 @@
FROM dj_car_life_goods_order go
FROM dj_car_life_goods_order go
LEFT JOIN dj_car_life_pay_order po
LEFT JOIN dj_car_life_pay_order po
ON go.order_code = po.order_code AND po.success_date IS NOT NULL AND po.deleted_flag = 'N'
ON go.order_code = po.order_code AND po.success_date IS NOT NULL AND po.deleted_flag = 'N'
LEFT JOIN dj_car_life_service_merchant sm ON go.merchant_id = sm.merchant_id AND sm.deleted_flag = 'N'
WHERE
WHERE
go.scene_type = 0
go.scene_type = 0
AND go.business_type = 1
AND go.business_type = 1
AND go.deleted_flag = 'N'
AND go.deleted_flag = 'N'
AND sm.merchant_id IS NOT NULL
AND po.success_date IS NOT NULL
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
AND go.merchant_id IN
AND go.merchant_id IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
...
@@ -43,10 +46,13 @@
...
@@ -43,10 +46,13 @@
FROM dj_car_life_goods_order go
FROM dj_car_life_goods_order go
LEFT JOIN dj_car_life_pay_order po
LEFT JOIN dj_car_life_pay_order po
ON go.order_code = po.order_code AND po.success_date IS NOT NULL AND po.deleted_flag = 'N'
ON go.order_code = po.order_code AND po.success_date IS NOT NULL AND po.deleted_flag = 'N'
LEFT JOIN dj_car_life_service_merchant sm ON go.merchant_id = sm.merchant_id AND sm.deleted_flag = 'N'
WHERE
WHERE
go.scene_type = 0
go.scene_type = 0
AND go.business_type = 2
AND go.business_type = 2
AND go.deleted_flag = 'N'
AND go.deleted_flag = 'N'
AND sm.merchant_id IS NOT NULL
AND po.success_date IS NOT NULL
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
AND go.merchant_id IN
AND go.merchant_id IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
...
@@ -64,9 +70,12 @@
...
@@ -64,9 +70,12 @@
FROM dj_car_life_goods_order go
FROM dj_car_life_goods_order go
LEFT JOIN dj_car_life_pay_order po
LEFT JOIN dj_car_life_pay_order po
ON go.order_code = po.order_code AND po.success_date IS NOT NULL AND po.deleted_flag = 'N'
ON go.order_code = po.order_code AND po.success_date IS NOT NULL AND po.deleted_flag = 'N'
LEFT JOIN dj_car_life_service_merchant sm ON go.merchant_id = sm.merchant_id AND sm.deleted_flag = 'N'
WHERE
WHERE
go.scene_type = 1
go.scene_type = 1
AND go.deleted_flag = 'N'
AND go.deleted_flag = 'N'
AND sm.merchant_id IS NOT NULL
AND po.success_date IS NOT NULL
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
AND go.merchant_id IN
AND go.merchant_id IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
...
@@ -83,6 +92,7 @@
...
@@ -83,6 +92,7 @@
v.source_store AS merchant_id,
v.source_store AS merchant_id,
MIN(v.purchase_time) AS first_order_date
MIN(v.purchase_time) AS first_order_date
FROM vcp_car_manage_info v
FROM vcp_car_manage_info v
LEFT JOIN dj_car_life_service_merchant sm ON v.source_store = sm.merchant_id AND sm.deleted_flag = 'N'
WHERE
WHERE
v.deleted_flag = 'N'
v.deleted_flag = 'N'
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
<if
test =
"merchantIds != null and merchantIds.size() > 0"
>
...
@@ -92,6 +102,7 @@
...
@@ -92,6 +102,7 @@
</foreach>
</foreach>
</if>
</if>
and v.purchase_time is not null
and v.purchase_time is not null
AND sm.merchant_id IS NOT NULL
GROUP BY v.source_store
GROUP BY v.source_store
) AS combined
) AS combined
GROUP BY merchant_id
GROUP BY merchant_id
...
@@ -305,6 +316,124 @@
...
@@ -305,6 +316,124 @@
) AS result
) AS result
</select>
</select>
<select
id=
"getBusinessOrdersDateRange"
resultType=
"cn.com.glsx.dj.peanalysis.dto.job.BusinessOrderStatusEntity"
>
SELECT
merchant_id as merchantId,
stat_date as statDate,
benefits_order AS hasBenefits,
ext_warranty_order AS hasExtWarranty,
light_mod_order AS hasLightMod,
used_car_order AS hasUsedCar
FROM (
SELECT
merchant_id,
stat_date,
MAX(CASE WHEN business_type = 'BENEFITS' THEN has_order END) AS benefits_order,
MAX(CASE WHEN business_type = 'EXT_WARRANTY' THEN has_order END) AS ext_warranty_order,
MAX(CASE WHEN business_type = 'LIGHT_MOD' THEN has_order END) AS light_mod_order,
MAX(CASE WHEN business_type = 'USED_CAR' THEN has_order END) AS used_car_order
FROM (
<!-- 权益业务 -->
SELECT
go.merchant_id,
DATE(po.success_date) AS stat_date,
'BENEFITS' AS business_type,
1 AS has_order
FROM dj_car_life_goods_order go
JOIN dj_car_life_pay_order po
ON go.order_code = po.order_code
WHERE
go.scene_type = 0
AND go.business_type = 1
AND go.deleted_flag = 'N'
AND po.deleted_flag = 'N'
AND go.merchant_id IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
<!-- 修改:使用时间范围查询代替IN子句 -->
<![CDATA[
AND DATE(po.success_date) >
= #{startDate}
AND DATE(po.success_date)
<
= #{endDate}
]]>
UNION ALL
<!-- 延保业务 -->
SELECT
go.merchant_id,
DATE(po.success_date) AS stat_date,
'EXT_WARRANTY' AS business_type,
1 AS has_order
FROM dj_car_life_goods_order go
JOIN dj_car_life_pay_order po
ON go.order_code = po.order_code
WHERE
go.scene_type = 0
AND go.business_type = 2
AND go.deleted_flag = 'N'
AND po.deleted_flag = 'N'
AND go.merchant_id IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
<!-- 修改:使用时间范围查询代替IN子句 -->
<![CDATA[
AND DATE(po.success_date) >
= #{startDate}
AND DATE(po.success_date)
<
= #{endDate}
]]>
UNION ALL
<!-- 轻改业务 -->
SELECT
go.merchant_id,
DATE(po.success_date) AS stat_date,
'LIGHT_MOD' AS business_type,
1 AS has_order
FROM dj_car_life_goods_order go
JOIN dj_car_life_pay_order po
ON go.order_code = po.order_code
WHERE
go.scene_type = 1
AND go.deleted_flag = 'N'
AND po.deleted_flag = 'N'
AND go.merchant_id IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
<!-- 修改:使用时间范围查询代替IN子句 -->
<![CDATA[
AND DATE(po.success_date) >
= #{startDate}
AND DATE(po.success_date)
<
= #{endDate}
]]>
UNION ALL
<!-- 二手车业务 -->
SELECT
v.source_store AS merchant_id,
DATE(v.purchase_time) AS stat_date,
'USED_CAR' AS business_type,
1 AS has_order
FROM vcp_car_manage_info v
WHERE
v.deleted_flag = 'N'
AND v.source_store IN
<foreach
item=
"id"
collection=
"merchantIds"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
<!-- 修改:使用时间范围查询代替IN子句 -->
<![CDATA[
AND DATE(v.purchase_time) >
= #{startDate}
AND DATE(v.purchase_time)
<
= #{endDate}
]]>
) AS combined
GROUP BY merchant_id, stat_date
) AS result
</select>
<insert
id=
"insertBiRecord"
parameterType=
"cn.com.glsx.dj.peanalysis.dto.job.BiRecord"
>
<insert
id=
"insertBiRecord"
parameterType=
"cn.com.glsx.dj.peanalysis.dto.job.BiRecord"
>
INSERT INTO dj_car_life_service_merchant_bi (
INSERT INTO dj_car_life_service_merchant_bi (
merchant_id,
merchant_id,
...
...
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