Unlimited distribution, top-to-bottom settlement of distribution commission

< H2 > hierarchical relationship table (processed using baum) < / H2 >

clipboard.png

clipboard.png

  • when the distributor buys, the performance automatically adds up to all his superiors" monthly performance
  • the settlement method determines whether the minimum settlement ratio standard is met according to the total performance of the current month, and the settlement is made from the top level to the next level.

how to deal with this to achieve the optimal (can not frequently operate the database), each settlement of a person, need to save his settlement record; then zero the profit characters of the hierarchical relational table; solve!

Mar.04,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bef40f-31c80.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bef40f-31c80.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?