执行质检方案后,没有创建质检任务。
问题描述:
执行了质检方案后,查看样本库发现里面没有产生质检任务。
解决方案:
后台查询符合条件的SQL如下,一般是质检的共享任务不满足规则导致的。需要排查
(1)共享任务是否为终审任务,只有终审任务才可以被质检。FISLASTLEVEL 要为1
(2)当天完成的任务无法被质检
(3)共享任务不能被质检或者抽检中。即FCHECKTYPE 不能为2或者3
(4)共享任务不能是自动审核过的任务,即FautoApproved要为0
SELECT
DISTINCT JH.FBILLID FBILLID
FROM
T_SSC_JOBHIS JH
INNER JOIN
T_SSC_BUSSINESSATTRIBUTE BA
ON JH.FBUSSATTRIDID = BA.FID
WHERE
(
JH.FJOBSTATE = '3'
OR JH.FJOBSTATE = '10'
)
AND BA.FBILLTYPEID = 'lfxczl2rQnSU5ueRRrVad3IA2pE='
AND (
JH.FCHECKTYPE is null
OR JH.FCHECKTYPE != '3'
)
AND (
JH.FCHECKTYPE is null
OR JH.FCHECKTYPE != '2'
)
AND JH.FISLASTLEVEL = 1
AND JH.FshareCenterId='FCsAAAAAAATM567U'
AND (
(
JH.FAUTOAPPROVE <> 1
AND JH.FCompleteTme BETWEEN ? AND ?
)
or (
JH.FAUTOAPPROVE = 1
and JH.FPhotoCopyFlag = 1
AND JH.FImageUploadTime BETWEEN ? AND ?
)
)
select ru.fuseridid as userId,u.fuserId as erpUserId,(select count(1) from T_SSC_SampleLibraryQualityTask task where task.FExaminerID=ru.fuseridid and task.FTaskState='2') personTaskCount from t_ssc_roletype rt inner join (select role.fid roleid ,role.FRoleTypeIDID roleTypeIDID,rb.fbillnameid billnameid from t_ssc_role role inner join T_SSC_RoleBussattr rb on role.fid=rb.fparentid) tem on rt.fid=tem.roleTypeIDID inner join t_ssc_roleuser ru on tem.roleid=ru.FRoleIDID inner join t_ssc_user u on ru.FUSERIDID=u.fid inner join t_ssc_billtype bly on tem.billnameid=bly.fid where rt.fid=? and bly.fid=? --if(null!=roleInfo&&!"".equals(roleInfo.getId().toString())&&!(roleInfo.getId().toString().isEmpty())){ and tem.roleid =? --} and u.fshareCenterId= ?and u.FISENABLED=1 and u.FIsStopAssign =0 order by personTaskCount 这个查质检抽检用户任务数
自动审批的时间取值取自于FIMAGEUPLOADTIME,但是人工审批的时间取值来源于FCOMPLETETME,
执行质检方案后,没有创建质检任务。
本文2024-09-16 22:08:05发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-46143.html