请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
nxwzqy1(uid:182921)
职业资格认证:尚未取得认证
  • 通过定时调度,实现每天提交当天的,
  • 这里根据“起始时间”查询请假统计(事假病假等),查询的结果不准确,是不是因为时间的格式,应该怎么改?select 请假人,单位,count(*) as 请假次数,sum(请假天数) as 请假天数 ,(select count(*) from 请假申请 a where 请假人=请假申请.请假人 and 审核结果='通过' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}) as 通过次数,(select count(*) from 请假申请 a where 请假人=请假申请.请假人 and 审核结果='驳回' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}' ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")} ) as 驳回次数,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='事假' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}) as 事假,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='病假' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}) as 病假,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='婚假' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}) as 婚假,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='产假' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")} ) as 产假,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='丧假' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")} ) as 丧假,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='会假' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}) as 会假,(select sum(请假天数) from 请假申请 a where 请假人=请假申请.请假人 and 请假类型='其他' and 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}) as 其他from 请假申请 where 起始时间>='${dateEditor0}' and 起始时间 <='${dateEditor1}'  ${if(len(单位_c)=="",""," and 单位 like '%"+单位_c+"%'")}group by 请假人,单位 
  • 报表设置了每周一到五,每天固定时间填报,出现周五的数据没有填报
  • 在下面的考勤打卡里,关联了外出和请假,但是查询不到?if(sql("jiaoxei","select 1 from 外出申请 where '"+(F4+" 10:00:00")+"' between 外出时间 and 回校时间 and 姓名='"+D4+"'",1,1)=1,"外出",nvl(SQL("jiaoxei","select 请假类型 from 请假申请 where '"+(F4+" 10:00:00")+"' between 起始时间 and 销假时间 and 请假人='"+D4+"'",1,1),if(len(G4) = 0, "缺卡", IF(G4 <= "07:37:59", "正常", "迟到"))))
  • SQL如何将datetime转化成time
  • 在下面的报表里,使用了下面的查询填充返回时间。具体操作中,临时请假中因为平时有人出去后就没返回,导致临时请假没法算出外出时长,能否针对外出没有返回的人(比如上午11点30、下午16:30没有返回),设置回来时间默认上午11:30,下午16:30,系统自动对没有回校的当天数据自动填充。 如何在这段查询里加入?select    personid,  personname,  danwei,  stime  from   (  select   personid,  personname,  danwei,  convert(varchar(19),cast(left(eventtime,19) as datetime),120) stime  from 考勤 where doorIndexCode='16dc84fdd48643c48f90fb0d08e93031'    )t  where 1=1    group by  personid,  personname,  danwei,  stime 
  • 现在定时调度设置为“每隔30分钟填报一次”,参数为“检查时间”,检查时间的格式为datetime,运行监控为成功,但是数据没有填报成功
  • 下面的查询,结果如何把同一个班级同一天的汇总成一条结果,SELECT 单位,年级,班级,报告类型,报告人,报告日期,缺勤原因,处置情况, stuff((select ','+缺勤学生 from 晨午检 b where a.缺勤原因=b.缺勤原因 for xml path('')),1,1,'') as 缺勤姓名,stuff((select ','+异常学生 from 晨午检 b where a.处置情况=b.处置情况 for xml path('')),1,1,'') as 异常姓名 FROM 晨午检 a group by a.单位,年级,班级,报告人,报告类型,报告日期,缺勤原因,处置情况
  • 现在Tomcat9.0按照部署finereport9.0的方法(将webapps文件夹拷贝),连接不成功,如何解决?

53

2

53

10

个人成就
内容被浏览21,265
加入社区6年351天
返回顶部