|
@@ -83,15 +83,15 @@ public interface FlowExampleService extends BaseService<FlowExample> {
|
|
|
|
|
|
* 赋值流程id
|
|
|
*/
|
|
|
- default <T extends BaseIdPo> void setFlowId(T list, BiConsumer<T, Long> setFun) {
|
|
|
- setFlowId(Collections.singletonList(list), BaseIdPo::getId, setFun);
|
|
|
+ default <T extends BaseIdPo> void setFlowId(T entity, BiConsumer<T, Long> setFun) {
|
|
|
+ setFlowId(Collections.singletonList(entity), BaseIdPo::getId, setFun);
|
|
|
}
|
|
|
|
|
|
|
|
|
* 赋值流程id
|
|
|
*/
|
|
|
- default <T> void setFlowId(T list, Function<T, Long> getIdFun, BiConsumer<T, Long> setFun) {
|
|
|
- setFlowId(Collections.singletonList(list), getIdFun, setFun);
|
|
|
+ default <T> void setFlowId(T entity, Function<T, Long> getIdFun, BiConsumer<T, Long> setFun) {
|
|
|
+ setFlowId(Collections.singletonList(entity), getIdFun, setFun);
|
|
|
}
|
|
|
|
|
|
}
|