修改his视图的sql入参,医嘱开单的相关接口。

This commit is contained in:
Elliott
2024-04-07 18:17:11 +08:00
parent fcb6040609
commit 2afd990b78
5 changed files with 256 additions and 35 deletions

View File

@@ -131,10 +131,10 @@ public class HisViewSearchServiceImpl implements HisViewSearchService {
log.info("打印链接状态:" + conn);
// 3.通过数据库的连接操作数据库实现增删改查使用Statement类
String today = DateUtil.today();
String todayString = today + "00:00:00";
String todayString = today + " 00:00:00";
DateTime tomorrow = DateUtil.tomorrow();
String s = DateUtil.formatDate(tomorrow);
String tomorrowString = s + "00:00:00";
String tomorrowString = s + " 00:00:00";
// SELECT * FROM HIS_WJFHZCFXX WHERE lrrq BETWEEN '2024-04-02 00:00:00' AND '2024-04-03 00:00:00 '
String sql = " SELECT * FROM HIS_WJFHZCFXX WHERE lrrq BETWEEN '" + todayString + "' AND '" + tomorrowString + "'";
log.info("打印sql" + sql);