|
@@ -1,6 +1,7 @@
|
|
|
package com.qmth.distributed.print.business.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
|
import com.qmth.distributed.print.business.entity.TFFlowJoin;
|
|
@@ -118,4 +119,14 @@ public class TFFlowJoinServiceImpl extends ServiceImpl<TFFlowJoinMapper, TFFlowJ
|
|
|
public List<TFFlowJoin> findByFlowEntityId(Long flowEntityId) {
|
|
|
return this.list(new QueryWrapper<TFFlowJoin>().lambda().eq(TFFlowJoin::getFlowEntityId, flowEntityId));
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void deleteByObjectIdAndFlowId(Long objectId, Long flowId) {
|
|
|
+ UpdateWrapper<TFFlowJoin> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.lambda().eq(TFFlowJoin::getObjectId, objectId);
|
|
|
+ if (flowId != null) {
|
|
|
+ updateWrapper.lambda().eq(TFFlowJoin::getFlowId, flowId);
|
|
|
+ }
|
|
|
+ this.remove(updateWrapper);
|
|
|
+ }
|
|
|
}
|