Commit 8d3649fe authored by 姜登's avatar 姜登

add

parent fd241f9d
Pipeline #22289 passed with stage
in 6 seconds
......@@ -95,6 +95,17 @@ class UserDetailService extends Service {
})
const listMap = new Map();
while (start_date <= end_date) {
if (!listMap.has(start_date)) {
listMap.set(start_date, { money: 0, amount: 0 });
}
if (start_date.length === 7) {
start_date = moment(start_date + '-01').add(1, 'month').format('YYYY-MM');
} else {
start_date = moment(start_date).add(1, 'day').format('YYYY-MM-DD');
}
}
for (let i = 0; i < detail.length; i++) {
if (listMap.has(detail[i].day)) {
let obj = listMap.get(detail[i].day);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment