search

Home  >  Q&A  >  body text

How to standardize the operation of two fields in laravel5.5 where condition?

laravel5.5 How to standardize the operation of two fields of where condition?


微信截图_20180914163942.png

天问天问2295 days ago1359

reply all(3)I'll reply

  • 风行者

    风行者2018-09-17 03:31:48

    I don’t know what your checktime is like, but there is something wrong with your logic.

    Assuming that the logic is correct and the writing is strong, write a.checktime after time() as a string, and a.checktime>time()/2 is the correct solution.

    reply
    0
  • 秋香姐家的小书童

    秋香姐家的小书童2018-09-15 11:37:54

    Operation? ? ? ?

    reply
    0
  • 天问

    Timestamp minus numeric field.

    天问 · 2018-09-15 11:53:27
    秋香姐家的小书童

    It is recommended to find out and then subtract and then execute SQL for the best effect.

    秋香姐家的小书童 · 2018-09-15 11:56:30
  • Cancelreply