feat:分账
This commit is contained in:
@@ -78,4 +78,21 @@ public class PreAllocationRecordDAO {
|
||||
}
|
||||
return preAllocationRecordMapper.deleteByIdsNotPaid(ids) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 软删除
|
||||
*/
|
||||
public boolean softDeleteById(Long id) {
|
||||
return preAllocationRecordMapper.softDeleteById(id) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量软删除
|
||||
*/
|
||||
public boolean softDeleteByIds(List<Long> ids) {
|
||||
if (ids == null || ids.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return preAllocationRecordMapper.softDeleteByIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -33,4 +33,14 @@ public interface PreAllocationRecordMapper extends Mapper<PreAllocationRecordDO>
|
||||
int deleteByIdsNotPaid(@Param("ids") List<Long> ids);
|
||||
|
||||
Integer updateByPayNoList(@Param("payNoList") List<String> payNoList, @Param("status") Integer status);
|
||||
|
||||
/**
|
||||
* 软删除
|
||||
*/
|
||||
int softDeleteById(@Param("id") Long id);
|
||||
|
||||
/**
|
||||
* 批量软删除
|
||||
*/
|
||||
int softDeleteByIds(@Param("ids") List<Long> ids);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user