@ -144,10 +144,6 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
public TableDataInfo < BusinessAlert > pageBusinessAlertAll ( BusinessAlertBo bo , PageQuery pageQuery ) {
public TableDataInfo < BusinessAlert > pageBusinessAlertAll ( BusinessAlertBo bo , PageQuery pageQuery ) {
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
if ( ObjectUtil . isEmpty ( wrapper ) ) {
return new TableDataInfo < > ( ) ;
}
Page < BusinessAlert > page = this . baseMapper . pageBusinessAlert ( pageQuery . build ( ) , wrapper ) ;
Page < BusinessAlert > page = this . baseMapper . pageBusinessAlert ( pageQuery . build ( ) , wrapper ) ;
return TableDataInfo . build ( page ) ;
return TableDataInfo . build ( page ) ;
@ -164,10 +160,6 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
bo . setHandleType ( BusinessStatusEnum . INVALID . getStatus ( ) ) ;
bo . setHandleType ( BusinessStatusEnum . INVALID . getStatus ( ) ) ;
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
if ( ObjectUtil . isEmpty ( wrapper ) ) {
return new TableDataInfo < > ( ) ;
}
wrapper . in ( "t.flowStatus" , BusinessStatusEnum . INVALID . getStatus ( ) ) ;
wrapper . in ( "t.flowStatus" , BusinessStatusEnum . INVALID . getStatus ( ) ) ;
Page < BusinessAlert > page = this . baseMapper . pageBusinessAlertCancel ( pageQuery . build ( ) , wrapper ) ;
Page < BusinessAlert > page = this . baseMapper . pageBusinessAlertCancel ( pageQuery . build ( ) , wrapper ) ;
@ -186,10 +178,6 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
public TableDataInfo < BusinessAlert > pageBusinessAlertFinish ( BusinessAlertBo bo , PageQuery pageQuery ) {
public TableDataInfo < BusinessAlert > pageBusinessAlertFinish ( BusinessAlertBo bo , PageQuery pageQuery ) {
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
if ( ObjectUtil . isEmpty ( wrapper ) ) {
return new TableDataInfo < > ( ) ;
}
wrapper . apply ( " EXISTS(select * from dk_workflow.flow_his_task ht where ht.approver ='" + LoginHelper . getUserId ( ) + "' and ht.instance_id = t.instanceId)" ) ;
wrapper . apply ( " EXISTS(select * from dk_workflow.flow_his_task ht where ht.approver ='" + LoginHelper . getUserId ( ) + "' and ht.instance_id = t.instanceId)" ) ;
Page < BusinessAlert > page = this . baseMapper . pageAlertFinish ( pageQuery . build ( ) , wrapper ) ;
Page < BusinessAlert > page = this . baseMapper . pageAlertFinish ( pageQuery . build ( ) , wrapper ) ;
@ -208,10 +196,6 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
public TableDataInfo < BusinessAlert > pageBusinessAlertTodo ( BusinessAlertBo bo , PageQuery pageQuery ) {
public TableDataInfo < BusinessAlert > pageBusinessAlertTodo ( BusinessAlertBo bo , PageQuery pageQuery ) {
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
QueryWrapper < BusinessAlert > wrapper = buildQueryWrapper ( bo ) ;
if ( ObjectUtil . isEmpty ( wrapper ) ) {
return new TableDataInfo < > ( ) ;
}
wrapper . eq ( "t.node_type" , 1 ) ;
wrapper . eq ( "t.node_type" , 1 ) ;
wrapper . in ( "t.approver" , remoteWorkflowService . getPermissions ( ) ) ;
wrapper . in ( "t.approver" , remoteWorkflowService . getPermissions ( ) ) ;
wrapper . in ( "t.flow_status" , BusinessStatusEnum . WAITING . getStatus ( ) ) ;
wrapper . in ( "t.flow_status" , BusinessStatusEnum . WAITING . getStatus ( ) ) ;
@ -246,11 +230,10 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService {
//根据当前用户职能获取识别类型
//根据当前用户职能获取识别类型
List < RemoteAiLabelPostVo > postVoList = remoteLablePostService . selectLabelByList ( bo . getPostCode ( ) , LoginHelper . getDeptId ( ) ) ;
List < RemoteAiLabelPostVo > postVoList = remoteLablePostService . selectLabelByList ( bo . getPostCode ( ) , LoginHelper . getDeptId ( ) ) ;
if ( ObjectUtil . isEmpty ( postVoList ) ) {
return null ;
}
wrapper . in ( "t.label_en" , StreamUtils . toList ( postVoList , RemoteAiLabelPostVo : : getLabelEn ) ) ;
if ( ObjectUtil . isNotEmpty ( postVoList ) ) {
wrapper . in ( "t.label_en" , StreamUtils . toList ( postVoList , RemoteAiLabelPostVo : : getLabelEn ) ) ;
}
//排除状态为验证状态预警
//排除状态为验证状态预警
wrapper . ne ( "t.handle_type" , BusinessStatusEnum . VERIFY . getStatus ( ) ) ;
wrapper . ne ( "t.handle_type" , BusinessStatusEnum . VERIFY . getStatus ( ) ) ;