资料来源:网络整理
时间:2023/2/14 0:17:22 共计:3641 浏览
if (!string.IsNullOrEmpty(model.FROMTIME) && !string.IsNullOrEmpty(model.TOTIME))
{
strWhere = strWhere + string.Format(" and FinishTime between to_date('{0}','yyyy-mm-dd hh24:mi:ss') and to_date('{1}','yyyy-mm-dd hh24:mi:ss') ", model.FROMTIME, model.TOTIME);
}
else if (!string.IsNullOrEmpty(model.FROMTIME))
{
strWhere = strWhere + string.Format(" and (to_char(FinishTime,'yyyy-mm-dd hh24:mi:ss') >='{0}')", model.FROMTIME);
}
else if (!string.IsNullOrEmpty(model.TOTIME))
{
strWhere = strWhere + string.Format(" and (to_char(FinishTime,'yyyy-mm-dd hh24:mi:ss')<='{0}')", model.TOTIME);
}

版权说明:
本网站凡注明“广州京杭 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
欢迎扫描右侧微信二维码与我们联系。