|
|
@ -27,6 +27,7 @@ import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
import java.sql.Timestamp; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Service |
|
|
@ -134,7 +135,9 @@ public class UserService { |
|
|
|
|
|
|
|
public List<CashRecord> getCashRecord(Integer uid) { |
|
|
|
List<MatrixMoneyRecord> list = moneyRecordMapper.queryByUserId(uid); |
|
|
|
return list.stream().map(CashRecord::new).toList(); |
|
|
|
List<CashRecord> res = new java.util.ArrayList<>(list.stream().map(CashRecord::new).toList()); |
|
|
|
Collections.reverse(res); |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
public void applyMoney(Integer uid, Integer cent) { |
|
|
|