Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
huhu-partner
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanchen
huhu-partner
Commits
4dab8293
Commit
4dab8293
authored
Dec 25, 2019
by
guanchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复数据 不更新奖励金额
parent
96fa5639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
3 deletions
+33
-3
AgentSettleTask.java
...ava/com/lanren/huhu/partner/schedule/AgentSettleTask.java
+1
-1
sql.log
src/main/resources/static/sql.log
+32
-2
No files found.
src/main/java/com/lanren/huhu/partner/schedule/AgentSettleTask.java
View file @
4dab8293
...
...
@@ -78,7 +78,7 @@ public class AgentSettleTask {
}
private
void
updateAll
(
long
beginTs
,
long
endTs
)
{
updateOrderCommission
(
beginTs
,
endTs
,
0
,
0
);
//
updateOrderCommission(beginTs, endTs, 0, 0);
doSettle
(
beginTs
,
endTs
);
}
...
...
src/main/resources/static/sql.log
View file @
4dab8293
...
...
@@ -381,4 +381,34 @@ SET a.tail_order_sn=b.tail_order_sn,a.deposite_tail_rate=b.deposite_tail_rate;
UPDATE agent_reward a
JOIN update_partner_agent_tail_order_reward b on a.reward_type in (300,750) and a.reference_id=b.order_id
SET a.tail_order_sn=b.tail_order_sn,a.deposite_tail_rate=b.deposite_tail_rate;
\ No newline at end of file
SET a.tail_order_sn=b.tail_order_sn,a.deposite_tail_rate=b.deposite_tail_rate;
update agent_account a
join (
select agent_id,sum(change_num) change_num_
from agent_account_log a
where a.yeartime=2019 and a.monthtime=12 and a.daytime=24
group by 1
) b on a.agent_id=b.agent_id
join agent_account_2019122422 c on a.agent_id=c.agent_id
set a.balance=c.balance;
delete from agent_account_log where yeartime=2019 and monthtime=12 and daytime=24;
delete from agent_salary where yeartime=2019 and monthtime=11;
update agent_reward
set reward_status=100
where settle_time between '2019-11-01 00:00:00' and '2019-11-30 23:59:59' and reward_status=120
and settle_state>0;
update agent_reward
set settle_time=case when recharge_time<'2019-11-01 00:00:00' then '2019-11-01 00:00:00' else recharge_time end
where settle_time is null and recharge_time<'2019-11-30 23:59:59' and settle_state>0
and reward_type in (710,740);
\ No newline at end of file
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