Commit d158e5ef by songyinghui

feat: 销售线索通知

parent 8a71371d
......@@ -248,10 +248,10 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
* @param now
* @return
*/
int hour_sec = 30 * 60 + 1;
int hour_sec = 30 * 60;
private boolean checkIsTodayFirst(Date now) {
DateTime temp = cn.hutool.core.date.DateUtil.offsetSecond(now, -(hour_sec + 1));
DateTime temp = cn.hutool.core.date.DateUtil.offsetSecond(now, -(hour_sec));
return cn.hutool.core.date.DateUtil.hour(temp, true) < 8;
}
}
......@@ -73,4 +73,13 @@ public class test {
System.out.println(s1.length());
}
@Test
public void timeTest(){
DateTime now = DateUtil.parse("2023-04-09 08:00:00", "yyyy-MM-dd HH:mm:ss");
int hour_sec = 30 * 60;
DateTime temp = cn.hutool.core.date.DateUtil.offsetSecond(now, -(hour_sec));
int hour = DateUtil.hour(temp, true);
System.out.println(hour);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment