请假单界面中创建请假单时假期类型不显示,且进入界面直接报null
【关键字】:假期管理、请假单、null
【适用版本】:通用
【问题效果图】:
【解决方案】:通过以下语句查找相关的数据看相关的数据是否为null:
select * from t_hr_ats_holidaylimit where
FREEZELIMIT is null or
FREEZELIMIT=‘’
select *from t_hr_ats_holidaylimit where
FUSEDLIMIT is null or FUSEDLIMIT=‘’
select *from t_hr_ats_holidaylimit where
FREMAINLIMIT is null or FREMAINLIMIT=‘’
将相关的数据查询出来后将空的数据变成0即可,变成0指的是这几个为null的字段。
Update t_hr_ats_holidaylimit set FREEZELIMIT=0 where
FREEZELIMIT is null or FREEZELIMIT=‘’
Update t_hr_ats_holidaylimit set FUSEDLIMIT=0 where FUSEDLIMIT
is null or FUSEDLIMIT =‘’
Update t_hr_ats_holidaylimit set FREMAINLIMIT=0 where
FREMAINLIMIT is null or FREMAINLIMIT =‘’
【重要提示】:更新数据前请做好相关数据表的备份,否则数据无法恢复!
【安全警示】: 涉及到update语句和delete
语句,请现场备份好数据再进行操作,否则数据无法修复。若无法确认相关操作,请提单寻求支持。