回答:是不是数据库 设置了时区啊
回答:创建一个函数:测试:
回答:修改报表访问网址中的Servlet路径名-https://help.finereport.com/doc-view-823.html
回答:网上找的 试试。
回答:[图片]
回答:报表查询脚本设置一个id in (${id}) 的参数再开发一个自定义导出按钮,点击事件里面写获取选中行的 id 这个“id”是数据行在数据库中的唯一值var ids= ;var $span = $('.fr-checkbox-checkon'); //获取选中的复选框var $tds = $("td").has($span); //定义选中复选框的单元格 var $trs = $("tr").has($tds);for (var i = 0; i < $trs.length; i++) { var widgetID = $($tds).attr("widget-control"); if (widgetID && widgetID != 'A3') { var id= $("td:eq(1)", $($trs)).html() ; ids.push(id); }}var url=servletURL+"?viewlet="+reportName+"&id="+ids;url+="&format=excel&extype=simple&__filename__="+exportName;window.location=(FR.cjkEncode(url));
回答:update的地方修改下:begin if EXISTS ( select 1 from t_martarget2 A ,inserted B where A.plants=B.plants and A.mattype=B.mattype and A.steps=B.steps )--检查插入或更新的数据在DIC_DATAupdate表中是否存在,有则更新,无则添加beginupdate a set enddate=GETDATE() from t_martarget2 as a inner join inserted Bon a.plants=B.plants and a.mattype=B.mattype and a.steps=B.steps end else begin --为记录数据插入或更新时间,增加时间(lasttime)字段. insert into t_martarget2 select ,,,,getdate(),'2100-01-01' from insertedend end
回答:用convert和substring结合比较方便https://www.w3school.com.cn/sql/func_convert.asp
回答:sql server数据的写法case when a < getdate() and b is null then getdate()when a > getdate() then bend
回答:[图片]
220
220
25
10