hellokittyer
V2EX  ›  问与答

提问一个分红提现问题的二次实现

  •  
  •   hellokittyer · Mar 1, 2019 · 1176 views
    This topic created in 2641 days ago, the information mentioned may be changed or developed.
    分红表
    id money[分红数额] cdate[创建时间] rs_id[关联单子编码...]
    1 0.35  2018-01-01...
    2 10.12 2018-01-01...
    3 5.20  2018-01-02...
    
    提现表
    id money[提现数额]
    
    
    现在需要一天以前的可以提现,假如现在是 2018-01-02
    用户界面显示:
       总额度:15.67 [sum(money)]
       可提现:10.47 [sum(money) where cdate < 2018-01-02]
       输入此次提现金额: ( 9.20 ) # 假如此次用户输入 9.2
    
    
    原本想在分红表加 是否已提现之类的过滤条件字段,但在用户端让用户随意输入金额后,[分红表数据多了之后,而且提取金额正好卡在一条数据上,拆分了好多次...]有点脑壳疼
    
    求打开脑壳
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2675 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:57 · PVG 18:57 · LAX 03:57 · JFK 06:57
    ♥ Do have faith in what you're doing.