Home > Back-end >  For help, how to design, calculate dealers, after signing the contract a brand service charge
For help, how to design, calculate dealers, after signing the contract a brand service charge

Time:12-16

Such as topic, thought of a dealer class, brand class, the class of the contract, service charge rule class (calculation rules to scattered data in dealer class, class brand and the similar inside), and how to use the concept of polymorphic design, implement dealers every sign a contract of service charge, grateful

CodePudding user response:

Dealer class
Brand
Contract class: contains the dealer ID, brand ID list
Service rule class: contains brand ID, there are many rules for each brand ladder


Calculation of the main brand in according to the contract but mapping rules to calculate fees
  • Related